Thursday, January 6, 2011

Running Qt Autotests with Intel Compiler (ICC) on Windows

0) Requirements

- Microsoft Visual Studio 2008
- Check whether cl.exe is in PATH

1) Download and Install "Intel (r) Parallel Studio XE 2011 for Windows"

- Install parallel_studio_xe_2011_setup.exe
- Choose "Evaluate this product (no serial number required)"
- Full installation (recommended)

2) Setup Environment

- Run "Intel Parallel Studio XE 2011->Command Prompt->Parallel Studio XE with Intel Compiler->IA-32 Visual Studio 2008 mode"
# cd bin
# compilervars.bat ia32 vs2008

3) Build Qt

# cd C:\
# mkdir source
# cd source
# git clone git://qt.gitorious.org/qt/qt.git qt-master
# cd qt-master
# configure -nomake examples -nomake demos -developer-build -opensource -platform win32-msvc2008 -xplatform win32-icc -no-webkit -release
# nmake /nologo

4) Run autotests

# set PATH=c:\source\qt-master\bin;%PATH%
# cd C:\source\qt-master
# cd tests/auto && qmake -r auto.pro
# nmake /nologo /k check TESTARGS="-xml -o testlib.xml"