PDA

View Full Version : Installing both qt3 and qt4 on linux ( Fedora Core )


vermarajeev
10th May 2007, 07:34
Hi guys,
I have qt3 installed on my linux machine by default. I have also installed qt4 on the same machine. Can anyone please write the steps that I should follow to change from qt4 to qt3 or vice versa. I saw the same post but the details are not given.

Also how do I change the path from Qt4 to Qt3 in Kdevelop C/C++....

Presently I have qt4 installed at /usr/local/Trolltech/Qt-4.2.3 and Qt3 at /usr/lib/qt-3.3....

ChristianEhrlicher
10th May 2007, 07:58
Just call the appropriate qmake executable (so either /usr/local/Trolltech/Qt-4.2.3/bin/qmake or /usr/lib/qt-3.3/bin/qmake) and all is fine. KDevelop (>= 3.4) has an option to switch between Qt3 and Qt4. Make sure it's using the correct qmake.

veda
10th May 2007, 08:32
Hello friends,

How can I set the Qt path in KDevelop so that it can use either Qt3 or Qt4 for the perticular session...

I have set the environment variable PATH and QTDIR to Qt3 path but my KDevelop is still using Qt4...
and when i try to compile my Qt3 programs it gives error...

is there any options or settings to be done in KDevelop... if so where????

Thanks,
Veda

marcel
10th May 2007, 18:21
Hi guys,
I have qt3 installed on my linux machine by default. I have also installed qt4 on the same machine. Can anyone please write the steps that I should follow to change from qt4 to qt3 or vice versa. I saw the same post but the details are not given.

Also how do I change the path from Qt4 to Qt3 in Kdevelop C/C++....

Presently I have qt4 installed at /usr/local/Trolltech/Qt-4.2.3 and Qt3 at /usr/lib/qt-3.3....


It all depends by the env vars that you set.
It is better to make a small script( perhaps with a paramter ) that changes the env vars. You should change:
- $QTDIR
- $PATH to point to $QTDIR/bin

Every time you switch, you unset the vars and set them again. You should be careful with the PATH variable, not to break it.

Regards