LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Qt5 on Slackware-14.1 (http://www.linuxquestions.org/questions/slackware-14/qt5-on-slackware-14-1-a-4175468237/)

Clementine Jam 07-02-2013 06:53 PM

Qt5 on Slackware-14.1
 
Hi! I'd like to know if Qt 5.x will be included in next Slackware release and/or probability of multichoice between Qt4 and Qt5. Does anyone know?

wildwizard 07-03-2013 04:29 AM

The possible addition of Qt 5 to Slackware is the reason I requested some changes to the existing Qt packaging.

http://www.linuxquestions.org/questi...er-4175467866/

Clementine Jam 07-04-2013 07:34 AM

Quote:

Originally Posted by wildwizard (Post 4983250)
The possible addition of Qt 5 to Slackware is the reason I requested some changes to the existing Qt packaging.

http://www.linuxquestions.org/questi...er-4175467866/

thnx

wildwizard 07-06-2013 10:34 PM

Further to my previous post I now have done some testing on the Qt 5.1.0 (single source package) build system and have a SlackBuild setup you might want to test.

It does require that you fix the issues with qt4 first and install qtchooser but it will allow you to develop with qt5 while keeping things like KDE4 working.

You need all the files including the subdirectory (it contains the qtchooser config for qt5)
http://wildwizard.abnormalpenguin.co...slackware/qt5/

Qt 5.1.0 source can be had from here :-
http://download.qt-project.org/offic...c-5.1.0.tar.xz

EDIT If anyone downloaded before this edit you'll need to download again as it was not 32/64 bit capable (only 64bit)

larryhaja 07-07-2013 02:22 AM

Quote:

Originally Posted by wildwizard (Post 4985462)
You need all the files including the subdirectory (it contains the qtchooser config for qt5)
http://wildwizard.abnormalpenguin.co...slackware/qt5/

Thanks. Slight correction in the qt.SlackBuild. The sed statement for the $CWD/qtchooser/5.1.conf file doesn't work on the second line.
Eg.
Code:

$ sed -e "s#usr/lib/#usr/lib64/#g" 5.1.conf
/usr/lib64/qt5/bin
/usr/lib

Just need to remove the ending slash on usr/lib*/.

wildwizard 07-07-2013 02:37 AM

Quote:

Originally Posted by larryhaja (Post 4985524)
Thanks. Slight correction in the qt.SlackBuild. The sed statement for the $CWD/qtchooser/5.1.conf file doesn't work on the second line.

Oops, that's what you get when you copy/paste something from one file to another without looking at what your doing.

Should be right now.

ponce 07-07-2013 04:18 AM

thanks wildwizard :)

just a small thing: maybe the package should be renamed qt5 ;)

wildwizard 07-07-2013 06:12 AM

Quote:

Originally Posted by ponce (Post 4985565)
thanks wildwizard :)

just a small thing: maybe the package should be renamed qt5 ;)

If we go with a dual install then your probably right.

The reason I haven't yet is I have also been working with the new modular packaging that Qt is moving towards which avoids the naming conflict as there would be no qt-* package.

wildwizard 07-13-2013 08:32 PM

Quote:

Originally Posted by ponce (Post 4985565)
renamed qt5 ;)

Have now done this.

Have also gone through the qt4 SlackBuild some more and have now posted my version of it up ready for 4.8.5 which has also been released.

So if anyone wants to development work with Qt 5.1 on Slackware I have got the following available. This should all work on either 14.0 or -current as Qt 4.8.5 is only a minor point release and everything here is source only.

http://wildwizard.abnormalpenguin.co...are/qtchooser/
This is qtchooser that allows multiple versions of Qt to be installed and selected by using the -qt=x switch to the various Qt tools. (Source code included)

http://wildwizard.abnormalpenguin.co...slackware/qt4/
This is my version of the SlackBuild for Qt 4 designed for Qt 4.8.5 (Source from [1]) with some changes to the packaging see the CHANGES file for what I've done.

http://wildwizard.abnormalpenguin.co...slackware/qt5/
This is the SlackBuild for Qt 5.1 (Source from [2]) configured as per the Qt devs recommended options to enable a cleaner install (ie the libs go in the right place) (also creates a qt5 package now to avoid pkgtools naming conflicts)

[1] http://download.qt-project.org/offic...c-4.8.5.tar.gz
[2] http://download.qt-project.org/offic...c-5.1.0.tar.xz

haxwithaxe 12-04-2013 05:47 AM

the qt4 slackbuild has the tarball extension as ".xz" and not ".gz" i replaced it with ".?z*" to fix that.

wildwizard 12-21-2013 06:34 PM

I've now updated the build scripts (including haxwithave's change for other compression formats)

Notable changes

qt5
Fixed include install path to avoid conflicts with qt4 apps (now under /usr/include/qt5)
Updated for Qt 5.2

qt4
Symlink all the pkgconfig files into the system pkgconfig path so we don't need to modify the pkgconfig path
Moved the qtchooser default config to the qt4 package (was in qtchooser itself)

Neither 4 nor 5 include a script to modify environment variables as none should be required


All times are GMT -5. The time now is 07:13 AM.