Installing PhononWhen running the Qt configure script, you will be notified whether Phonon support is available on your system. As mentioned previously, to use develop and run Phonon applications, you also need to link to a backend, which provides the multimedia functionality.
Note that Phonon applications will compile and run without a working backend, but will, of course, not work as expected.
The following sections explains requirements for each backend.
WindowsOn Windows, building Phonon requires DirectX and DirectShow version 9 or higher. You'll need additional SDKs you can download from Microsoft.
Windows XP and later Windows versions
If you develop for Windows XP and up, you should download the Windows SDK here. Before building Qt, just call the script: C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\setenv.cmd
Note: Visual C++ 2008 already contains the Windows SDK and doesn't need that package and has already the environment set up for a smooth compilation of phonon.
Earlier Windows versions than Windows XP
If you want to support previous Windows versions, you should download and install the Platform SDK. You find it here.
Note: The platform SDK provided with Visual C++ is not complete and you'll need this one to have DirectShow 9.0 support. You can download the DirectX SDK here.
Setting up the environment
Once the SDKs are installed, please make sure to set your environment variables LIB and INCLUDE correctly. The paths to the include and lib directory of the SDKs should appear first. Typically, to setup your environment, you would execute the following script:
Set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)
%DXSDK_DIR%\utilities\bin\dx_setenv.cmd
C:\program files\Microsoft Platform SDK\setenv.cmdIf your environment is setup correctly, executing configure.exe on your Qt installation should automatically activate Phonon.
Warning: The MinGW version of Qt does not support building the Qt backend.