0

我正在尝试为黑莓 10 构建一个基于 pjsip 的项目,但在编译时出现错误:

../src/navigator.cpp:63:6: warning: unused parameter 'type' [-Wunused-parameter]
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: skipping incompatible /root/blackberry/fiume/lib/upnp/libminiupnpc.a when searching for -lminiupnpc
qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,/opt/bbndk/target_10_1_0_1020/qnx6/x86/lib -Wl,-rpath-link,/opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib -Wl,-rpath-link,/opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/qt4/lib -o o-g/fiume o-g/.obj/AddressBook.o o-g/.obj/AudioManager.o o-g/.obj/BpsPlatform.o o-g/.obj/ContactEditor.o o-g/.obj/ContactViewer.o o-g/.obj/Fiume.o o-g/.obj/PjCallback.o o-g/.obj/buddy.o o-g/.obj/callhistory.o o-g/.obj/callhistoryrecord.o o-g/.obj/debugger.o o-g/.obj/kuzaranda.o o-g/.obj/main.o o-g/.obj/navigator.o o-g/.obj/moc_AddressBook.o o-g/.obj/moc_AudioManager.o o-g/.obj/moc_BpsPlatform.o o-g/.obj/moc_ContactEditor.o o-g/.obj/moc_ContactViewer.o o-g/.obj/moc_Fiume.o o-g/.obj/moc_PjCallback.o o-g/.obj/moc_buddy.o o-g/.obj/moc_callhistory.o o-g/.obj/moc_callhistoryrecord.o o-g/.obj/moc_debugger.o o-g/.obj/moc_kuzaranda.o o-g/.obj/moc_navigator.o    -L/opt/bbndk/target_10_1_0_1020/qnx6/x86/lib -L/opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib -L/opt/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/qt4/lib -L/opt/bbndk/target_10_1_0_1020/qnx6//usr/lib/qt4/lib -L/root/blackberry/fiume/lib -L/root/blackberry/fiume/lib/upnp -lpjsua-i486-pc-nto-qnx8.0.0 -lpjsip-ua-i486-pc-nto-qnx8.0.0 -lpjsip-simple-i486-pc-nto-qnx8.0.0 -lpjsip-i486-pc-nto-qnx8.0.0 -lpjmedia-codec-i486-pc-nto-qnx8.0.0 -lpjmedia-videodev-i486-pc-nto-qnx8.0.0 -lpjmedia-i486-pc-nto-qnx8.0.0 -lpjmedia-audiodev-i486-pc-nto-qnx8.0.0 -lspeex-i486-pc-nto-qnx8.0.0 -lopencore-amrnb -lgsmcodec-i486-pc-nto-qnx8.0.0 -lilbccodec-i486-pc-nto-qnx8.0.0 -lg7221codec-i486-pc-nto-qnx8.0.0 -lpjnath-i486-pc-nto-qnx8.0.0 -lpjlib-util-i486-pc-nto-qnx8.0.0 -lresample-i486-pc-nto-qnx8.0.0 -lmilenage-i486-pc-nto-qnx8.0.0 -lsrtp-i486-pc-nto-qnx8.0.0 -lportaudio-i486-pc-nto-qnx8.0.0 -lpj-i486-pc-nto-qnx8.0.0 -lpjsdp-i486-pc-nto-qnx8.0.0 -lasound -lcrypto -lssl -lminiupnpc -lbbpim -laudio_manager -lbb -lbbsystem -lbbplatform -lscreen -L/opt/bbndk/target_10_1_0_1020/qnx6/usr/share/qt4/lib -lQtSensors -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps 
make[2]: Leaving directory `/root/blackberry/fiume/x86'
make[1]: Leaving directory `/root/blackberry/fiume/x86'
/opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld: cannot find -lminiupnpc
cc: /opt/bbndk/host_10_1_0_132/linux/x86/usr/bin/ntox86-ld error 1
make[2]: *** [o-g/fiume] Error 1
make[1]: *** [debug] Error 2
make: *** [Simulator-Debug] Error 2``

**** Build Finished ****`

为什么被libminiupnpc.a认为是“不兼容的”,我该怎么办?

4

1 回答 1

0

它可能libminiupnpc.a是为 ARM 架构编译的,而不是你想要的(x86)。尝试使用重新编译它qcc -Vgcc_ntox86

于 2013-06-24T13:38:14.807 回答