Skip to content

Download an Compile Qt Libraries

mad-engineer edited this page Jan 13, 2012 · 5 revisions

Download and Compile Qt Libraries

Following this tutorial you should:

Download the Qt Source-Code

Unfortunally Qt 4.8.0 has introduced several [bugs](https://bugreports.qt.nokia.com/browse1. /QTBUG/fixforversion/11905) in combination with visual studio. So we have to compile the most recent 4.7.X version. The reason for the manual compilation is that no official 4.7.X libraries are offered for visual studio 2010. Only for 2008. The source code for qt 4.7.X can be downloaded here. Download jom jom which offers a easy way to accelerate the compilation process on multicore machines.

Extract jom and Qt

Extract qt and jom in the same directories. For Example into: C:\Qt\4.7.4 and C:\Qt\jom

Set the path and toolset environment variables

**Windows7**

Start -> Right Mouse Click on Computer -> Choose Properties in the Context menu -> Properties

![Setting evironment variables part 2](http://img233.imageshack.us/img233/513/envvar.png)

Advanced system settings -> Environment Variables ... -> New ...

![Setting evironment variables part 2](http://img15.imageshack.us/img15/2772/envvar2.png)

Add the Path Variable **QTDIR** = C:\Qt\4.7.4

![Setting evironment variables part 3](http://img84.imageshack.us/img84/4019/envvar3.png)

Add the Visual Studio Specification Variable **QMAKESPEC** = win32-msvc2010

Compile the source code as shared libraries.

Clone this wiki locally