LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-29-2013, 10:56 PM   #1
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 227Reputation: 227Reputation: 227
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 qt4.sh/qt4.csh 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 :-
http://wildwizard.abnormalpenguin.co...are/qtchooser/

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
Code:
  -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 http://lists.qt-project.org/pipermai...ne/011221.html
http://download.qt-project.org/snaps...4.8/4.8.5-rc2/
 
  


Reply


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 04:03 PM
calculation addition ted_chou12 Linux - Newbie 1 02-02-2011 11:31 PM
C - Base 4 addition charlitos Programming 2 04-16-2009 10:48 PM
Links Addition(s) MasterC LQ Suggestions & Feedback 2 03-24-2003 02:42 PM


All times are GMT -5. The time now is 04:53 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration