[Qt-creator] Installing Qt 4.6
Christophe Meessen
christophe at meessen.net
Fri May 7 22:12:38 CEST 2010
Hello,
I had some problem to install Qt properly so it worked right out of the
box. Some required steps are missing on the download page.
Here are the missing steps in case someone cares.
1. Assume you downloaded the latest version of Qt, set it to executable
and sudo run it.
2. I then define a symbolic link for easy upgrade : ln -s
/opt/qtsdk-xxx /opt/qt
3. Some environment variables need to be set. I use the system wide
profile to share it with other users:
sudo -s
cat > /etc/profile.d/qtconfig.sh << EOF
if [-d /opt/qt ]; then
export QTDIR="/opt/qt"
export PATH="$QTDIR/bin:$QTDIR/qt/bin:$PATH"
export QMAKESPEC="linux-g++"
export CC="gcc"
fi
EOF
It may be required to logout and login for the profile to be taken
in account.
These instructions could be as well stored in the user .profile for
user specific setup.
4. The debugger wont work if the following instructions are not applied.
LD_LIBRARY_PATH is deprecated :
sudo -s
echo "/opt/qt/lib" > /etc/ld.so.conf.d/qtlibs.conf
ldconfig
This requires administrator priviledges. Don't know how to setup
library path for user specific environment.
The ldconfig command can be called with the -v option and a grep Qt
to check if the Qt libraries are found.
I spend two days sorting this out. The qt installation process
description is laking these steps with the consequence that it won't be
possible to compile anything if step 3 is missing and it won't be
possible to debug anything if step 4 is missing. I hope this help people
enjoying discovering Qt impessive IDE and SDK.
--
Bien cordialement,
Ch. Meessen
More information about the Qt-creator-old
mailing list