LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-15-2008, 07:57 AM   #1
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Rep: Reputation: 31
Qt4


Hi all.
Is there a smart way to install qt4 and keep qt3 safe? I would like to install some qt4 based apps and it would be cool to keep qt3 untouched.
 
Old 09-15-2008, 08:26 AM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by STARHARVEST View Post
Hi all.
Is there a smart way to install qt4 and keep qt3 safe? I would like to install some qt4 based apps and it would be cool to keep qt3 untouched.
They don't conflict by default. I.e. installing Qt4 shouldn't kill Qt3 libraries. That's of course, unless you use slackbuild written by person without any clue of what he is doing. Also, if you are installing qt 4 package with upgradepkg, and package name is in form qt-4.4.2-xxx-xxx.tgz (same format as for qt 3 package), it will probably remove qt3 libraries, so don't use upgradepkg.

Install Qt 4 from source, and you shouldn't have any problem (it installs into /usr/local/Trolltech/Qt-4.x.x by default).
 
Old 09-15-2008, 10:02 AM   #3
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Original Poster
Rep: Reputation: 31
So, if I install a qt4 package from slacky.eu it will be safe as I understand, right?
And then, installing, say, Qbittorrent, will it see right path to the libs?
 
Old 09-15-2008, 10:09 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I have a package at http://www.slackware.com/~alien/slackbuilds/qt4/ (rather, it will be there shortly... it seems I had forgotten to add it to the repository) which installs alongside Qt3 and does not mess up your Qt3 based applications (such as: all of KDE3).
I use this package with VLC 0.9.x which has a Qt4 based interface, and it works fine.

Eric
 
Old 09-15-2008, 10:28 AM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by STARHARVEST View Post
So, if I install a qt4 package from slacky.eu it will be safe as I understand, right?
It depends on slackbuild contents. I never used one, just installed Qt 4 from source and made package from it. Easy, because default installation puts everything into single folder - /usr/local/Trolltech/Qt-4.x.x.

Quote:
Originally Posted by STARHARVEST View Post
And then, installing, say, Qbittorrent, will it see right path to the libs?
If you are talking about precompiled version, then it depends on how Qbittorrent is compiled. If the path of installed libs will be same, it will work right after installation. If path of libs are different, then you'll have to either add symlinks for required locations, or modify LD_LIBRARY_PATH.
 
Old 09-15-2008, 11:57 AM   #6
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by STARHARVEST View Post
Hi all.
Is there a smart way to install qt4 and keep qt3 safe? I would like to install some qt4 based apps and it would be cool to keep qt3 untouched.
The slackbuild script for QT4 at Slackbuilds.org installs QT 4 so that it does not conflict with QT3. I've used it successfully to build and run QGIS.

Regards,

-Drew
 
Old 09-15-2008, 05:26 PM   #7
giberg
Member
 
Registered: Aug 2008
Location: Italy
Distribution: Slackware 13.0
Posts: 34

Rep: Reputation: 16
Quote:
Originally Posted by STARHARVEST View Post
So, if I install a qt4 package from slacky.eu it will be safe as I understand, right?
I have qt4 from slacky.eu.
According to the ./configure in the slackbuild:
Code:
[...]
./configure -prefix /opt/qt4 [...]
Quote:
Originally Posted by STARHARVEST View Post
And then, installing, say, Qbittorrent, will it see right path to the libs?
Yes. From the qbittorrent.SlackBuild (Slacky.eu):

Code:
[...]
./configure --prefix=$PKG/usr \
--qtdir=/opt/qt4 \
[...]
Bye
 
Old 10-08-2008, 08:56 AM   #8
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Original Poster
Rep: Reputation: 31
hmm.. now it's asking for libQtXml.
 
  


Reply



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
QT4 and QT3.3 spaceballs Slackware 7 04-28-2008 08:18 AM
Does slackware 12 come with Qt4? Tux-Slack Slackware 1 07-14-2007 01:28 PM
Upgrade to QT4 jsebastian Ubuntu 1 03-03-2007 06:25 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM
qt3 or qt4 crAckZ Programming 1 09-06-2005 05:08 PM

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

All times are GMT -5. The time now is 05:05 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
Open Source Consulting | Domain Registration