- Download Qt SDK Development Environment.
- Install Qt SDK. Launch Terminal, go to the folder where you downloaded Qt SDK distribution, and run:
chmod +x qt-sdk-linux-x86-opensource-2010.01.bin ./qt-sdk-linux-x86-opensource-2010.01.bin
Apart from a C++ compiler, a number of development libraries need to be present to enable Qt Creator to build your Qt applications. On Debian and Ubuntu, use the following command in a terminal to make sure they are installed:So just do what it tells you to:
sudo apt-get install libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-devIf you're using QtOpenGL, you'll also need OpenGL development files. You can use the following command to find out which packages to install:
sudo apt-get install libgl-dev libglu-dev
sudo apt-get install libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-dev sudo apt-get install libgl-dev libglu-devMake sure you add Qt bin folder to your PATH environment. Edit $HOME/.profile and add:
export PATH=/opt/qtsdk-2010.01/qt/bin/:$PATHNow you can build and run Qt applications.
To build Qt Mobility apps, continue to Installing Qt Mobility libraries.