To build Qt with Phonon you need to have MSVC 2005/2008, Windows SDK and DirectX SDK.
It's vary useful to have command line script, that setting up needed envirement.
For example (MSVC 2008 + Windows 7 SDK + DirectX SDK):
@echo off
@set DEV=C:\Development
@set PATH=%SystemRoot%;%SystemRoot%\system32
@set QTDIR=%DEV%\Qt
@echo Setting OpenSSL Env.
@set PATH=%DEV%\OpenSSL\bin;%PATH%
@set LIB=%DEV%\OpenSSL\lib
@set INCLUDE=%DEV%\OpenSSL\include
@echo Setting DirectX Env.
@set LIB=%DEV%\DirectX SDK\Lib\x86;%LIB%
@set INCLUDE=%DEV%\DirectX SDK\Include;%INCLUDE%
@echo Setting Windows SDK Env.
@set WindowsSdkDir=%DEV%\Windows 7 SDK
@set PATH=%WindowsSdkDir%\Bin;%PATH%
@set LIB=%WindowsSdkDir%\Lib;%LIB%
@set INCLUDE=%WindowsSdkDir%\Include;%INCLUDE%
@set CPU=i386
@set TARGET_CPU=x86
@set TARGET_DEBUGTYPE=RELEASE
@echo Setting MSVC2008 Env.
@set VSINSTALLDIR=%DEV%\MSVC
@set VCINSTALLDIR=%DEV%\MSVC\VC
@set DevEnvDir=%VSINSTALLDIR%\Common7\IDE
@set PATH=%VCINSTALLDIR%\bin;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\IDE;%VCINSTALLDIR%\VCPackages;%PATH%
@set INCLUDE=%VCINSTALLDIR%\include;%INCLUDE%
@set LIB=%VCINSTALLDIR%\lib;%LIB%
@set LIBPATH=%VCINSTALLDIR%\lib
@echo Setting Framework Env.
@set FrameworkVersion=v2.0.50727
@set Framework35Version=v3.5
@set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
@set LIBPATH=%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%LIBPATH%
@set PATH=%LIBPATH%;%PATH%
@echo Setting Qt Env.
@set PATH=%QTDIR%\bin;%PATH%
@title Qt Framework 4.6.1 Development Kit.
cd %DEV%
@echo off
@set DEV=C:\Development
@set PATH=%SystemRoot%;%SystemRoot%\system32
@set QTDIR=%DEV%\Qt
@echo Setting OpenSSL Env.
@set PATH=%DEV%\OpenSSL\bin;%PATH%
@set LIB=%DEV%\OpenSSL\lib
@set INCLUDE=%DEV%\OpenSSL\include
@echo Setting DirectX Env.
@set LIB=%DEV%\DirectX SDK\Lib\x86;%LIB%
@set INCLUDE=%DEV%\DirectX SDK\Include;%INCLUDE%
@echo Setting Windows SDK Env.
@set WindowsSdkDir=%DEV%\Windows 7 SDK
@set PATH=%WindowsSdkDir%\Bin;%PATH%
@set LIB=%WindowsSdkDir%\Lib;%LIB%
@set INCLUDE=%WindowsSdkDir%\Include;%INCLUDE%
@set CPU=i386
@set TARGET_CPU=x86
@set TARGET_DEBUGTYPE=RELEASE
@echo Setting MSVC2008 Env.
@set VSINSTALLDIR=%DEV%\MSVC
@set VCINSTALLDIR=%DEV%\MSVC\VC
@set DevEnvDir=%VSINSTALLDIR%\Common7\IDE
@set PATH=%VCINSTALLDIR%\bin;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\IDE;%VCINSTALLDIR%\VCPackages;%PATH%
@set INCLUDE=%VCINSTALLDIR%\include;%INCLUDE%
@set LIB=%VCINSTALLDIR%\lib;%LIB%
@set LIBPATH=%VCINSTALLDIR%\lib
@echo Setting Framework Env.
@set FrameworkVersion=v2.0.50727
@set Framework35Version=v3.5
@set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
@set LIBPATH=%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%LIBPATH%
@set PATH=%LIBPATH%;%PATH%
@echo Setting Qt Env.
@set PATH=%QTDIR%\bin;%PATH%
@title Qt Framework 4.6.1 Development Kit.
cd %DEV%
To copy to clipboard, switch view to plain text mode
This script was created by discovering setenv scripts of MSVC and SDKs by me.
Bookmarks