Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-29-2013, 09:56 PM   #1
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 867

Rep: Reputation: 264Reputation: 264Reputation: 264
REQ Changes to qt packaging and addition of qtchooser

After much stuffing around with building Qt 5.1 I have learnt quite q few things including what is and is not required for Qt packaging as well as how a parallel install of Qt 5 and Qt 4 is supposed to work.

For Slackware's current Qt packaging the following needs to change
1. The symlinks in /usr/bin to the various Qt binaries need to all go
2. The path to the Qt binaries that is set in should not be set

Those symlinks are then replaced by the use of qtchooser which creates it's own symlinks with the added advantage that you can then specify the required Qt version with a command line switch.

My SlackBuild of qtchooser for testing :-

Qt5 can then be installed using /usr/lib/qt5 as a base directory leaving the Qt4 installation alone in /usr/lib/qt and without harming any Qt4 applications.

Some other notes that I made along the way.

1. There is a version specific symlink created in /usr/lib/qt-x.x.x > /usr/lib/qt I'm not sure if this is still used as other SlackBuilds that use Qt all seem to go out of their way to avoid using it.

2. The symlinks in /usr/lib/libQt* to /usr/lib/qt/lib/libQt* are a mess but if something is compiled with disable-rpath then they would not be found at runtime (Eric's vlc is such a case, while KDE is not)

3. Qt 5.1 can be compiled with
  -prefix /usr \
  -datadir /usr/share/qt5 \
  -libdir /usr/lib${LIBDIRSUFFIX} \
  -archdatadir /usr/lib${LIBDIRSUFFIX}/qt5 \
  -bindir /usr/lib${LIBDIRSUFFIX}/qt5/bin \
Which results in the libs landing in /usr/lib and without creating a mess of /usr as Qt 4 does. (FYI Qt 5 has added the version number into the library name so this method is safe even with Qt4 libs symlinked into /usr/lib)

4. Qt 4.8.5 is currently in the RC phase


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
XFS FS Access issue grants access for req 1, denies for req 2 rsheikh Linux - Server 0 06-28-2011 03:03 PM
calculation addition ted_chou12 Linux - Newbie 1 02-02-2011 10:31 PM
C - Base 4 addition charlitos Programming 2 04-16-2009 09:48 PM
Links Addition(s) MasterC LQ Suggestions & Feedback 2 03-24-2003 01:42 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:42 AM.

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