LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2013, 05:53 PM   #1
Clementine Jam
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Rep: Reputation: Disabled
Question 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?
 
Old 07-03-2013, 03:29 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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/
 
Old 07-04-2013, 06:34 AM   #3
Clementine Jam
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wildwizard View Post
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
 
Old 07-06-2013, 09:34 PM   #4
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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)

Last edited by wildwizard; 07-06-2013 at 09:46 PM.
 
Old 07-07-2013, 01:22 AM   #5
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Quote:
Originally Posted by wildwizard View Post
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*/.
 
Old 07-07-2013, 01:37 AM   #6
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by larryhaja View Post
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.
 
Old 07-07-2013, 03:18 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,060

Rep: Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139
thanks wildwizard

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

Last edited by ponce; 07-07-2013 at 03:22 AM.
 
Old 07-07-2013, 05:12 AM   #8
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by ponce View Post
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.
 
Old 07-13-2013, 07:32 PM   #9
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by ponce View Post
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
 
1 members found this post helpful.
Old 12-04-2013, 04:47 AM   #10
haxwithaxe
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Rep: Reputation: Disabled
the qt4 slackbuild has the tarball extension as ".xz" and not ".gz" i replaced it with ".?z*" to fix that.
 
Old 12-21-2013, 05:34 PM   #11
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
  


Reply

Tags
qt, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Making Slackware and Slackware Derivative Linux Distros Speak Your Language LXer Syndicated Linux News 0 01-29-2009 12:30 AM
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration