Debug with GUI C++ Apps on Linux with QtCreator
Qt 4.8
Get the latest Qt 4.8 source code from Qt-Project website, e.g. v. 4.8.7 :
http://download.qt-project.org/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
Some additional packages need to be installed before building Qt :
sudo yum install libX11-devel libXext-devel mesa-libGL-devel openssl-devel pulseaudio pulseaudio-libs-glib2 gstreamer gstreamer-devel gstreamer-plugins-base phonon-backend-gstreamer
To build and install Qt :
./configure -no-webkit -fontconfig -opensource
gmake
sudo gmake install
To add newly installed Qt bin directory path to PATH environment variable and define QTDIR, add the following to your ~/.bash_profile :
PATH=/usr/local/Trolltech/Qt-4.8.7/bin:$PATH
export PATH
QTDIR=/usr/local/Trolltech/Qt-4.8.7
export QTDIR
Install Qt Creator
Get the latest version of Qt Creator source code from Qt-Project website, e.g. v. 2.8.1 :
http://download.qt-project.org/official_releases/qtcreator/2.8/2.8.1/qt-creator-2.8.1-src.tar.gz
To build and install Qt Creator :
qmake -r
make
su -c 'make install INSTALL_ROOT=/opt/trolltech/qtcreator-2.8.1'
If qmake -r fails with "", it is likely because your PATH is not including Qt from the above steps. Verify with echo $PATH
Recent Comments