PDA

View Full Version : I have a problem about qmake


wsinw
29th May 2007, 12:13
I use fedora core 6, At first I use add/remove software to install Qt3.
And yesterday I use add/remove again to install Qt4.
But my command qmake still call qmake from /usr/lib/qt-3.3/bin/qmake.

Please give me an advice to modify shell to call qmake from Qt4 (]/usr/lib/qt4/bin/qmake).

Thank you very much.

high_flyer
29th May 2007, 12:16
probably your PATH system variable points to the Qt3 bin directory before the Qt4 one.
You can either call the Qt4 qmake directly, or, change PATH so that the Qt4 biin directory will come before the Qt3 bin directory.

wsinw
29th May 2007, 12:51
Thank you.

but how to change defualt PATH in linux.

marcel
29th May 2007, 13:04
If your shell is bash, find the startup scrip in your home dir and add
QTDIR=path to your qt dir
export QTDIR
PATH=$QTDIR/bin:$PATH
export PATH