本文介绍了NDK构建应用程序(IPCAMERA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 我下载的Svn code IP摄像机从链接的。

  2. 然后我从网上下载相关库谈话的svn合作的http://libjingle.google$c$c.com/svn/trunk/talk谈-r103

  3. Linux终端我改变了我的路了,到源路径 /下载/ IPCAMERA /主干/ droidipcam

  1. I Downloaded Svn Code IPcamera which an Android application for Live Streaming Media From Android camera to Browser from the link ipcamera-for-android/source/checkout.
  2. Then I downloaded related library talk from svn co http://libjingle.googlecode.com/svn/trunk/talk talk -r103
  3. Linux Terminal I changed my path up-to the source path /Downloads/ipcamera/trunk/droidipcam.

我建立使用NDK-build命令:

I build using ndk-build command :

Documents/android-ndk-r7/ndk-build

我得到了以下错误:

I got following Errors :

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谈话库中的路径 /下载/ IPCAMERA /主干/ droidipcam

不过我得到了以下错误:

Still I got following error:

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

我在做什么错了?

What am I doing wrong?

推荐答案

您需要从的

例如,你需要一个完整的编译通话/基/ sigslot.h和其他类。

For example you need talk/base/sigslot.h and other class for a complete compilation.

这篇关于NDK构建应用程序(IPCAMERA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-22 18:06