我用
/home/jd808/pro/android-ndk-r10d/ndk-build
编译
~/桌面/pjsip2.x/pjsip-apps/src/pjsua/android 的代码出现下面的错误(linux下编译的),请问要咋么弄?
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...
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
jni/pjsua_wrap.cpp: In constructor 'Swig::Director::JNIEnvWrapper::JNIEnvWrapper(const Swig::Director*)':
jni/pjsua_wrap.cpp:335:73: error: invalid conversion from 'void**' to 'JNIEnv** {aka _JNIEnv**}' [-fpermissive]
director_->swig_jvm_->AttachCurrentThread((void **) &jenv_, NULL);
^
In file included from jni/pjsua_wrap.cpp:160:0:
/home/jd808/pro/android-ndk-r10d/platforms/android-21/arch-arm/usr/include/jni.h:1090:10: error: initializing argument 1 of 'jint _JavaVM::AttachCurrentThread(JNIEnv**, void*)' [-fpermissive]
jint AttachCurrentThread(JNIEnv** p_env, void* thr_args)
^
make: *** [obj/local/armeabi/objs/pjsua/pjsua_wrap.o] Error 1
/home/jd808/pro/android-ndk-r10d/ndk-build
编译
~/桌面/pjsip2.x/pjsip-apps/src/pjsua/android 的代码出现下面的错误(linux下编译的),请问要咋么弄?
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...
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
jni/pjsua_wrap.cpp: In constructor 'Swig::Director::JNIEnvWrapper::JNIEnvWrapper(const Swig::Director*)':
jni/pjsua_wrap.cpp:335:73: error: invalid conversion from 'void**' to 'JNIEnv** {aka _JNIEnv**}' [-fpermissive]
director_->swig_jvm_->AttachCurrentThread((void **) &jenv_, NULL);
^
In file included from jni/pjsua_wrap.cpp:160:0:
/home/jd808/pro/android-ndk-r10d/platforms/android-21/arch-arm/usr/include/jni.h:1090:10: error: initializing argument 1 of 'jint _JavaVM::AttachCurrentThread(JNIEnv**, void*)' [-fpermissive]
jint AttachCurrentThread(JNIEnv** p_env, void* thr_args)
^
make: *** [obj/local/armeabi/objs/pjsua/pjsua_wrap.o] Error 1