构建NDK应用程序(ip camera)

时间:2012-01-25 12:09:52

标签: android

  1. 我下载了Svn Code IPcamera,这是一个用于直播媒体的Android应用程序从Android相机到浏览器的链接ipcamera-for-android/source/checkout
  2. 然后我从svn co http://libjingle.googlecode.com/svn/trunk/talk talk -r103
  3. 下载了相关的图书馆谈话
  4. Linux终端我改变了我的路径 - 到源路径/Downloads/ipcamera/trunk/droidipcam
  5. 我使用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
    

    我做错了什么?

2 个答案:

答案 0 :(得分:0)

您需要从http://libjingle.googlecode.com/svn/trunk/talk

下载其余资源

例如,您需要talk / base / sigslot.h和其他类进行完整编译。

答案 1 :(得分:0)

将talk文件夹放在JNI文件夹中。 然后执行:Documents / android-ndk-r7 / ndk-build