问题描述
我正在同时建设以下错误 PJSIP
在此提到的
I am getting following error while building pjsip
as mentioned in this link
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#
这可能是什么原因?
What could be the reason ?
推荐答案
这是因为默认情况下不会对一般建设产生pjsua应用(更具体地说, pjsua:
目标不包含在所有:在PJSIP-应用
目标/建设/ Makefile文件)。为了解决这个问题只需到PJSIP-应用程序/生成和运行:
This is because pjsua-app is not generated by default on the general build (more specifically, pjsua:
target is not included on all:
target at pjsip-apps/build/Makefile). To fix this just go to pjsip-apps/build and run:
请pjsua
这将创建正确的对象文件在:PJSIP-应用/建造/输出/ pjsua臂未知-Linux的androideabi /(需要建筑机器人样本时)。
This would create proper object files at: pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/ (needed when building android sample).
一旦你所有对应的目标文件,可以运行在PJSIP-应用/ src目录/ pjsua / Android的NDK再次,建立
Once you've all corresponding object files, you can run ndk-build again at pjsip-apps/src/pjsua/android
这篇关于同时建立PJSIP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!