标题:请教:Qt源代码中的mediaplayer怎么运行不了?
作者:wyu_yantu
日期:2009-05-14 13:21
内容:
在Qt源代码中的mediaplayer怎么运行不了?
提示信息如下:
Running build steps for project mediaplayer...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `C:/Qt/2009.02/qt/demos/mediaplayer'
C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `C:/Qt/2009.02/qt/demos/mediaplayer'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/mediaplayer.exe debug/main.o debug/mediaplayer.o debug/moc_mediaplayer.o debug/qrc_mediaplayer.o -L'c:/Qt/2009.02/qt/lib' -lmingw32 -lqtmaind -lphonond -lQtGuid4 -lQtCored4
mingw32-make.exe[1]: Leaving directory `C:/Qt/2009.02/qt/demos/mediaplayer'
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Qt/2009.02/qt/demos/mediaplayer'
C:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lphonond
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** Error 1
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** Error 2
Exited with code 2.
Error while building project mediaplayer
When executing build step 'Make'
请问怎么解决?
#1 [jzj139 05-14 17:09]
link出错 cannot find -lphonond
没有启动lphonond模块 故不能支持
#2 [onlyonegod 10-18 20:14]
参考了一下文档,是不是应该在运行Qt script之前,要确保在你的系统上Phonon已经支持。
例如:如果是windows,就需要DirectX, DirectShow version 9或更高版本(安装windows sdk)
如果是linux,就需要 GStreamer 。
详细信息可以看一下Installing phonon