简体   繁体   English

Android NDK。 Eclipse项目属性中没有C / C ++部分

[英]Android NDK. No C/C++ section in Eclipse project properties

I am trying to follow the instructions specified here to install OpenCV for Wlipse. 我试图按照此处指定的说明为Wlipse安装OpenCV。

The instructions state: 说明指出:

Open Project Properties -> C/C++ Build, and replace “Build command” text to "${NDKROOT}/ndk-build" 打开项目属性 - > C / C ++ Build,并将“Build command”文本替换为“$ {NDKROOT} / ndk-build”

However, if I open my Project Properties I have no C/C++ section. 但是,如果我打开我的项目属性,我没有C / C ++部分。

I am using Android SDK ADT Bundle for OSX 我正在使用Android SDK ADT Bundle for OSX

I have downloaded the NDK 我已经下载了NDK

I have set the NDK location under ADT->Properties->Android->NDK 我在NDT-> Properties-> Android-> NDK下设置了NDK位置

I have validated that the Android Native Dev Tools and C/C++ Dev Tools are installed 我已经验证安装了Android Native Dev Tools和C / C ++ Dev Tools

I have imported the project correctly 我已正确导入项目

Why don't I have a C/C++ section under Project->Properties 为什么我在Project-> Properties下没有C / C ++部分

Next problem. 下一个问题。

Ok I have found how to add the c/c++ build command thanks to srikanth gr 好的,我已经找到了如何通过srikanth gr添加c / c ++ build命令

Now when i try and build the OpenCV Library I get the following error 现在,当我尝试构建OpenCV库时,我收到以下错误

OpenCV.mk: No such file or directory OpenCV.mk:没有这样的文件或目录

the current reference in the jni/Android.mk is jni / Android.mk中的当前引用是

include OpenCV.mk 包括OpenCV.mk

I did a search on my system and no OpenCV.mk file exists. 我对我的系统进行了搜索,并且没有OpenCV.mk文件存在。 There is a OpenCV.mk.in. 有一个OpenCV.mk.in。 Do i need to build that to create the OpenCV.mk? 我需要构建它来创建OpenCV.mk吗? If so how? 如果是这样的话?

Thanks 谢谢

您的描述缺少右键点击项目,“Android工具” - >“添加NativeSupport ...”

我已经在这里回答了检查设置NDK Android NDK和OpenCV Android-NDK的步骤

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM