无法建立OpenCV Android范例专案 [英] Could not build OpenCV Android sample project

查看:73
本文介绍了无法建立OpenCV Android范例专案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建OpenCV Android示例项目.我添加了"OpenCV库-2.4.8"作为Eclipse的项目,并尝试构建"OpenCV示例-15难题"示例项目.当我构建lsample项目时,它给了我以下错误.

I'm trying to build the OpenCV Android sample projects. I added the "OpenCV Library - 2.4.8" as a project to eclipse and trying to build "OpenCV Sample - 15 Puzzle" sample project. When I build the lsample project It gives me the following error.

make: *** Android NDK: Aborting...

它将在控制台中打印以下内容.

It prints the following in the console.

**** Clean-only build of configuration Default for project OpenCV Sample - 15 puzzle ****

D:\ProgramFiles\android-ndk-r9c\ndk-build.cmd clean 
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 14 in ./AndroidManifest.xml    
D:/ProgramFiles/android-ndk-r9c/build/core/add-application.mk:187: *** Android NDK: Aborting...    .  Stop.
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk   

在导入的示例项目中,我没有Android.mk文件.我是否必须在此示例项目中包括这样的文件?有人可以帮我解决这个问题吗?我正在使用Windows 8,ADT捆绑包中提供的Eclipse Juno,这些都是OpenCV 2.4.8示例项目.

In the imported sample project I do not have a Android.mk file. Do I have to include such a file in this sample project? Could somebody please help me to fix this issue? I'm using Windows 8, Eclipse Juno provided in ADT bundle and these are the OpenCV 2.4.8 sample projects.

推荐答案

您将必须创建 Android.mk Application.mk 文件.请参阅样本随附的 tutorial-2-mixedprocessing .

You will have to create Android.mk and Application.mk file. Refer to tutorial-2-mixedprocessing which comes along with the samples.

我建议从最简单的示例代码(即tutorial1)开始.

I would suggest starting from the easiest sample code, ie, tutorial1.

Android.mk中提供了要编译的文件的详细信息

The details of files that are to be compiled are present in Android.mk

这篇关于无法建立OpenCV Android范例专案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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