安装Android的OpenCV中无法找到的错误,同时建立 [英] installing android OpenCV unable to locate error while building

查看:894
本文介绍了安装Android的OpenCV中无法找到的错误,同时建立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装Android OpenCV的下蚀使用它。要做到这一点,我第一次安装NDK,ADT和Eclipse插件。我使用的Windows8和Eclipse朱诺。

有了这个,我成功打造并跑离NDK样本项目。

在我进口 OpenCV库 - 2.4.6 项目到Eclipse中,并试图建立它。它失败了。我试图清理它也失败项目。当我尝试建立我得到显示的问题是:

  ***的Andr​​oid NDK:请更正错误。中止。停止。

和没有关于它失败或者为什么细节。然而控制台给了我这样的输出:

  ****配置默认项目OpenCV库的构建 -  2.4.6 ****C:\\工作区\\ Android的NDK-R9 \\ NDK-build.cmd所有
Android的NDK:警告:APP_PLATFORM Android的9比Android大:8的minSdkVersion在./AndroidManifest.xml
Android的NDK:在JNI / Android.mk LOCAL_MODULE定义一定不能包含空格C:/workspace/android-ndk-r9/build/core/build-shared-library.mk:23:***的Andr​​oid NDK:请更正错误。中止。停止。
****建立成品****

注意 C:\\ workspace下不是我的 OpenCV库活动工作区 - 2.4.6 项目。

我如何收集有关错误的详细信息?而且我怎么解决?


解决方案

我OpenCV4Android SDK时有同样的问题

。其实,我走进我的Eclipse项目的JNI文件夹和编辑文件Android.mk取出来的空间。然后,我不得不改变.cpp文件在同一文件夹以匹配名称。之后,该项目建成。

此外,对于其他任何人正在与日食同样的SDK,我有一个问题,我必须也包括手动的JRE为每个项目。 Eclipse中无法找到系统库本身。这是不相关的问题,但可能会帮助其他人谁过这个页面寻找答案绊倒。

I am trying to install Android OpenCV to work with it under eclipse. To do this I first installed NDK, ADT and the eclipse plugins. I am using Windows8 and Eclipse Juno.

With this I successfully build and ran the sample projects from NDK.

After that I imported the openCV Library - 2.4.6 Project into Eclipse and tried to build it. It failed. I tried to Clean the project it also fails. The Problem I get displayed when I try building is:

*** Android NDK: Please correct error. Aborting    .  Stop.

And no detail about where it failed or why. However the console gives me this output:

**** Build of configuration Default for project OpenCV Library - 2.4.6 ****

C:\workspace\android-ndk-r9\ndk-build.cmd all 
Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml    
Android NDK: LOCAL_MODULE definition in jni/Android.mk must not contain space        

C:/workspace/android-ndk-r9/build/core/build-shared-library.mk:23: *** Android NDK: Please correct     error. Aborting    .  Stop.
**** Build Finished ****

Note that C:\workspace is not my active workspace for the openCV Library - 2.4.6 project.

How can I gather more Information about the error? And how do I resolve it?

解决方案

I had this same problem when working with OpenCV4Android SDK. I actually went into the jni folder of my project in eclipse and edited the Android.mk file to take out the spaces. I then had to change the .cpp file in that same folder to match the name. After that the project built.

Also, for anyone else that is working with this same sdk in eclipse, I had another problem where I had to also manually include the JRE for each project. Eclipse couldn't find the system libraries itself. This isn't related to your question but might help others who stumble across this page looking for answers.

这篇关于安装Android的OpenCV中无法找到的错误,同时建立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆