
Originally Posted by
nimes
sorry, i don't understand. my qt directory:
/usr/qt/3/ and /usr/qt/4/
how to configure .bash.profile ??
If you want to compile Qt 4 applications there are several ways :
- If you want to be able to compile both Qt 3 (so KDE) and Qt 4 based apps the best way is probably to use scripts to setup env vars in your shell session. In this case, each time you will need to use Qt 4 instead of Qt 3 you will be forced to run a shell script by hand.
- If you're only interested in Qt 4 it is probably easier to embed these settings in ~/.bash_profile (if you're using bash as a shell, overwise you'll have to find what file is used by your shell to store such a configuration...) Note that such an embedding require your session to be restarted and even in some cases a reboot
In your case the script will look like this :
#! /bin/sh
# This header is useless when embedding in ~/.bash_profile
export QTDIR=/usr/qt/4
export PATH=$QTDIR/bin:$PATH
#! /bin/sh
# This header is useless when embedding in ~/.bash_profile
export QTDIR=/usr/qt/4
export PATH=$QTDIR/bin:$PATH
To copy to clipboard, switch view to plain text mode
Once your environment is set up, compilation should work smoothly.
Bookmarks