nav-left cat-right
cat-right
Matthias Pospiech > Programming > C++ > Qt > Compilation of Qt 4.6.3 under Windows 7 with phonon

Compilation of Qt 4.6.3 under Windows 7 with phonon

Note: this is only usefull if you are using msvc 2005. For 2008 the dlls come with the installation, and with 2010 Qt 4.6.x does not compile anyway.

In previous posts I have already described problems and solutions for the compilation of Qt with phonon. Here is my latest approach:

First one needs to install the SDK. Though I am working with windows 7 the correct version is still v6.1 (Windows SDK for Windows Server 2008 and .NET Framework 3.5). The directx SDK is not required.

Next we need to patch the SDK code because it is buggy. This was aleady described in Compilation of Phonon under Windows XP.

For the compilation I am using this script to configure everything:
call "%PROGRAMFILES%\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd" /x86 /RELEASE /xp 
call "%PROGRAMFILES%\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
REM call "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
 
pause
 
configure -platform win32-msvc2005 -qt-gif -qt-sql-odbc -qt-sql-sqlite -phonon -no-qt3support

The Compiler is not found within ‚v6.1\Bin\SetEnv.Cmd‘ which is a bug in the script (described in Windows SDK messed up). Nevertheless with the configuration settings the script finishes and sets up the environment.

If you are using 64 bit, then you require the 3rd line instead of the second. I did not find a solution to handle 32 and 64 bit environments with the same script.

Compilation can then be done with nmake or if you do not want the examples and demos with nmake sub-src

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

*

This blog is kept spam free by WP-SpamFree.