Skip to content

Compile the Qt Source Code

mad-engineer edited this page Jan 13, 2012 · 1 revision

Compile the Qt Source Code

Start Visual Studio Command Prompt

Follow

  1. Start

  2. All Programs

  3. Microsoft Visual Studio 2010

  4. Visual Studio Tools

  5. Visual Studio Command Prompt (2010) Do not use the x64 version

Now you should see the command prompt

Visual Studio 2010 Command Prompt

Test you have set the proper settings for the Environment Variables QMAKESPEC and QTDIR while entering two commands

echo %QTDIR%
echo %QMAKESPEC%

You should see the right directory C:\Qt\4.7.4 and win32-msvc2010

Visual Studio Command Prompt Part 2

If you do not see the right response repeat this steps

Now switch to the proper Qt directory

c:
cd \
cd C:\Qt\4.7.4

Visual Studio Command Prompt Part 3

Now configure Qt while entering the following command

configure -debug-and-release -opensource -platform win32-msvc2010

The compilation process can take several minutes. When finished, start to compile Qt with jom. Use the parameter "-j N" to indicate how many processors "N" your machine has.

..\jom\jom.exe -j 4

The compilation process can take up to several hours depending on your machine.

Clone this wiki locally