Qt4Compilation
From wiki
- Read this page entirely before doing anything
- On Linux:
- Download Qt source code from this page (last version is available here) or here for older versions
- Create a new folder in /devel/linux/Qt4 called Qt4{version_number}: eg: mkdir /devel/linux/Qt4/Qt4.8.1
- Copy the downloaded file in the newly created folder
- Go in that directory: eg: cd /devel/linux/Qt4/Qt4.8.1
- Extract the downloaded archive: eg: tar -xvzf qt-everywhere-opensource-src-4.8.1.tar.gz
- Go in the extracted folder: eg: cd qt-everywhere-opensource-src-4.8.1
- Configure Qt and select the directory in which Qt has to be installed: eg: ./configure -prefix /devel/linux/Qt4/Qt4.8.1/Qt4.8.1_linux64
- During the configuration, select 'o' to compile Qt open-source version
- Read the licenses if you want, and if you agree with them, type 'yes'. Otherwise don't compile Qt
- Compile Qt: eg: make -j 4
- Install Qt: make install
- Verify that everything went well and that the installation directory (eg: /devel/linux/Qt4/Qt4.8.1/Qt4.8.1_linux64) was created and populated with the library files.
- You should now be able to removed the source code directory and the downloaded archive from the system.
- On Windows:
- Download qt-everywhere-opensource-src-4.7.4.zip
- Unzip file
- Open Visual Studio Prompt (Start menu->All Programs->Miccrosoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt)
- Go in Qt source directory
- Type: configure.exe -release -opensource