LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Qt4 (https://www.linuxquestions.org/questions/slackware-14/qt4-670025/)

STARHARVEST 09-15-2008 07:57 AM

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.

ErV 09-15-2008 08:26 AM

Quote:

Originally Posted by STARHARVEST (Post 3280904)
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).

STARHARVEST 09-15-2008 10:02 AM

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?

Alien Bob 09-15-2008 10:09 AM

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

ErV 09-15-2008 10:28 AM

Quote:

Originally Posted by STARHARVEST (Post 3280997)
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 (Post 3280997)
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.

Lufbery 09-15-2008 11:57 AM

Quote:

Originally Posted by STARHARVEST (Post 3280904)
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

giberg 09-15-2008 05:26 PM

Quote:

Originally Posted by STARHARVEST (Post 3280997)
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 (Post 3280997)
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

STARHARVEST 10-08-2008 08:56 AM

hmm.. now it's asking for libQtXml.


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