PDA

View Full Version : Compilation of phonon fails



pospiech
27th January 2010, 23:05
I get this error when compiling


Generating Code...
link /LIBPATH:"c:\Qt\msvc\2005\4.6.1\lib" /LIBPATH:"c:\Qt\msvc\2005\4.6.
1\lib" /NOLOGO /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\phonon_
ds9d.intermediate.manifest" /VERSION:4.61 /OUT:..\..\..\..\plugins\phonon_backen
d\phonon_ds9d4.dll @C:\Users\Matthias\AppData\Local\Temp\nm479A.tmp
Creating library ..\..\..\..\plugins\phonon_backend\phonon_ds9d4.li b and obje
ct ..\..\..\..\plugins\phonon_backend\phonon_ds9d4.ex p
strmiids.lib(strmiids.obj) : fatal error LNK1103: debugging information corrupt;
recompile module


I have used the following script:


call "%PROGRAMFILES%\Microsoft DirectX SDK (March 2009)\Utilities\bin\dx_setenv.cmd"
call "%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.Cmd" /x86 /RELEASE /win7
call "%PROGRAMFILES%\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86

pause

@set QTDIR=C:\Qt\msvc\2005\4.6.1
@cd %QTDIR%
nmake confclean
configure -platform win32-msvc2005 -no-qt3support -phonon
cd %QTDIR%\src\phonon
nmake
cd %QTDIR%\src\plugins\phonon
nmake

dir %QTDIR%\bin\phonon4.dll
dir %QTDIR%\bin\phonond4.dll
dir %QTDIR%\plugins\phonon_backend\phonon_ds94.dll
dir %QTDIR%\plugins\phonon_backend\phonon_ds9d4.dll

with fixed path in 'SetEnv.Cmd', and applied the necessary bug fixes to the SDK, since one gets this error:


C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\medparam.h(180) : error C20
61: syntax error : identifier '__RPC__out'


because the header file '#include "rpcsal.h"' is missing in the files medparam.h and mediaobj.h of the SDK.

What is still going wrong?

pospiech
28th January 2010, 07:44
From what I found on the web it looks as if SDK 7 is only compatible with MSVC 2008 (SP1), so it can not work together with MSVC 2005!


This SDK is compatible with Visual Studio® 2008, including Visual Studio Express Editions, which are available free of charge.