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

Unfortunately 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 multi core 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 environment variables part 2

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

Setting environment variables part 2

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

Setting environment variables part 3

Add the Visual Studio Specification Variable QMAKESPEC = win32-msvc2010

Compile the source code as shared libraries.

Clone this wiki locally