构建pjsip时出错

时间:2013-12-03 17:45:20

标签: android sip voip pjsip

我在构建pjsip

中提到的mypc-Mac-mini:android root# /Users/mypc/Documents/FMC/android-ndk-r9b/ndk-build Android NDK: WARNING: APP_PLATFORM android-16 is larger than android:minSdkVersion 15 in ./AndroidManifest.xml Android NDK: WARNING:jni/Android.mk:pjsua: non-system libraries in linker flags: -lpjsua-arm-unknown-linux-androideabi -lpjsip-ua-arm-unknown-linux- androideabi -lpjsip- simple-arm-unknown-linux-androideabi -lpjsip-arm-unknown-linux-androideabi -lpjmedia-codec-arm-unknown-linux-androideabi -lpjmedia-arm-unknown-linux-androideabi -lpjmedia-videodev-arm-unknown-linux-androideabi -lpjmedia-audiodev-arm-unknown-linux-androideabi -lpjnath-arm-unknown-linux-androideabi -lpjlib-util-arm-unknown-linux-androideabi -lmilenage-arm-unknown-linux-androideabi -lsrtp-arm-unknown-linux-androideabi -lresample-arm-unknown-linux-androideabi -lgsmcodec-arm-unknown-linux-androideabi -lspeex-arm-unknown-linux-androideabi -lilbccodec-arm-unknown-linux-androideabi -lg7221codec-arm-unknown-linux-androideabi -lpj-arm-unknown-linux-androideabi -lgcc -lgcc Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module Invoking SWIG... /usr/local/bin/swig -c++ -o jni/pjsua_wrap.cpp -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java jni/pjsua.i [armeabi] Compile++ thumb: pjsua <= pjsua_wrap.cpp [armeabi] SharedLibrary : libpjsua.so arm-linux-androideabi-g++: error: /Users/mypc/Documents/pjsip/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app.o: No such file or directory arm-linux-androideabi-g++: error: /Users/mypc/Documents/pjsip/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_cli.o: No such file or directory arm-linux-androideabi-g++: error: /Users/mypc/Documents/pjsip/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_common.o: No such file or directory arm-linux-androideabi-g++: error: /Users/mypc/Documents/pjsip/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_config.o: No such file or directory arm-linux-androideabi-g++: error: /Users/mypc/Documents/pjsip/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_legacy.o: No such file or directory make: *** [obj/local/armeabi/libpjsua.so] Error 1 mypc-Mac-mini:android root# 时遇到以下错误
{{1}}

可能是什么原因?

1 个答案:

答案 0 :(得分:4)

这是因为默认情况下不会在一般构建中生成pjsua-app(更具体地说,pjsua:目标不包含在pjsip-apps / build / Makefile的all:目标上。要解决这个问题,请转到pjsip-apps / build并运行:

制作pjsua

这将在以下位置创建正确的目标文件:pjsip-apps / build / output / pjsua-arm-unknown-linux-androideabi /(构建android示例时需要)。

一旦你拥有了所有相应的目标文件,你就可以在pjsip-apps / src / pjsua / android

再次运行ndk-build