svn co http://libjingle.googlecode.com/svn/trunk/talk talk -r103
/Downloads/ipcamera/trunk/droidipcam
。我使用ndk-build命令构建:
Documents/android-ndk-r7/ndk-build
我遇到了以下错误:
Compile++ thumb : ipcamera <= ipcamera.cpp
Compile++ thumb : ipcamera <= mediacheck.cpp
Compile++ thumb : ipcamera <= mediapak.cpp
Compile++ thumb : ipcamera <= mediabuffer.cpp
In file included from jni/mediabuffer.cpp:3:
jni/mediabuffer.h:6:31: error: talk/base/sigslot.h: No such file or directory
jni/mediabuffer.h:7:39: error: talk/base/criticalsection.h: No such file or directory
In file included from jni/mediabuffer.cpp:3:
jni/mediabuffer.h:36: error: 'sigslot' has not been declared
jni/mediabuffer.h:36: error: expected '{' before 'has_slots'
jni/mediabuffer.h:36: error: expected initializer before '<' token
make: *** [obj/local/armeabi/objs/ipcamera/mediabuffer.o] Error 1
4)在此之后,我将Downloded talk库放在路径/Downloads/ipcamera/trunk/droidipcam
中。
我仍然遇到以下错误:
Invalid attribute name:
package
make: *** No rule to make target `jni/talk/base/common.cc', needed by `obj/local/armeabi/objs/teaonly/talk/base/common.o'. Stop.
shilpa@shilpa-Vostro-260s:~/Downloads/ipcamera/trunk/droidipcam$ /home/teaonly/opt/android-ndk-r7/ndk-build
bash: /home/teaonly/opt/android-ndk-r7/ndk-build: No such file or directory
我做错了什么?
答案 0 :(得分:0)
您需要从http://libjingle.googlecode.com/svn/trunk/talk
下载其余资源例如,您需要talk / base / sigslot.h和其他类进行完整编译。
答案 1 :(得分:0)
将talk文件夹放在JNI文件夹中。 然后执行:Documents / android-ndk-r7 / ndk-build