安装Android的OpenCV中无法找到的错误,同时建立 [英] installing android OpenCV unable to locate error while building
问题描述
我试图安装Android OpenCV的下蚀使用它。要做到这一点,我第一次安装NDK,ADT和Eclipse插件。我使用的Windows8和Eclipse朱诺。
有了这个,我成功打造并跑离NDK样本项目。
在我进口 OpenCV库 - 2.4.6
项目到Eclipse中,并试图建立它。它失败了。我试图清理它也失败项目。当我尝试建立我得到显示的问题是:
***的Android 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:***的Android NDK:请更正错误。中止。停止。
****建立成品****
注意 C:\\ workspace下
不是我的 OpenCV库活动工作区 - 2.4.6
项目。
我如何收集有关错误的详细信息?而且我怎么解决?
解决方案
我OpenCV4Android SDK时有同样的问题
此外,对于其他任何人正在与日食同样的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屋!