由于需要,想把libffmpeg给裁剪掉,不编译这个东东。在src文件夹下建了个local.pri,文件内容是
APP_PROJECTS-=\
applications/addressbook
APP_PROJECTS-=\
games/minesweep
APP_PROJECTS-=\
settings/buttoneditor
APP_PROJECTS-=\
settings/qipkg
APP_PROJECTS-=\
applications/mediarecorder
PLUGIN_PROJECTS-=\
plugins/codecs/libffmpeg
LIBRARY_PROJECTS-=\
3rdparty/libraries/libavcodec\
3rdparty/libraries/libavformat
可是貌似没有起作用,还是编译了,还出了错。
g++ -shared -Wl,-soname,libffmpegplugin.so.2 -o libffmpegplugin.so.2.1.1 .obj/release-shared/yuv2rgb.o .obj/release-shared/videocodeccontext.o .obj/release-shared/audiocodeccontext.o .obj/release-shared/mediapacketbuffer.o .obj/release-shared/libffmpegplugin.o .obj/release-shared/libffmpegpluginimpl.o -lpthread -lm -lavcodec -lavformat -L/home/huang/workspace/Qt/qtopia-2.1.1-host/lib -L/home/huang/workspace/Qt/qt-2.3.10-host/lib -lqte
/usr/bin/ld: cannot find -lavcodec
collect2: ld 返回 1
make[5]: *** [libffmpegplugin.so.2.1.1] 错误 1
make[5]: Leaving directory `/home/huang/workspace/Qt/qtopia-2.1.1-host/src/3rdparty/plugins/codecs/libffmpeg'
make[4]: *** [all] 错误 2
make[4]: Leaving directory `/home/huang/workspace/Qt/qtopia-2.1.1-host/src/3rdparty/plugins/codecs/libffmpeg'
make[3]: *** [sub-3rdparty-plugins-codecs-libffmpeg] 错误 2
make[3]: Leaving directory `/home/huang/workspace/Qt/qtopia-2.1.1-host/src'
make[2]: *** [sub-src-components_pro] 错误 2
make[2]: Leaving directory `/home/huang/workspace/Qt/qtopia-2.1.1-host/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/huang/workspace/Qt/qtopia-2.1.1-host/src'
make: *** [all] 错误 2
系统是fc9 x86, qtoipa 版本是2.1.1。我哪里做错了,请指点。先谢过了
[ 此贴被riverside在2008-08-12 22:43重新编辑 ]