I am trying to follow the instructions specified here to install OpenCV for Wlipse.
The instructions state:
Open Project Properties -> C/C++ Build, and replace “Build command” text to "${NDKROOT}/ndk-build"
However, if I open my Project Properties I have no C/C++ section.
I am using Android SDK ADT Bundle for OSX
I have downloaded the NDK
I have set the NDK location under ADT->Properties->Android->NDK
I have validated that the Android Native Dev Tools and C/C++ Dev Tools are installed
I have imported the project correctly
Why don't I have a C/C++ section under Project->Properties
Next problem.
Ok I have found how to add the c/c++ build command thanks to srikanth gr
Now when i try and build the OpenCV Library I get the following error
OpenCV.mk: No such file or directory
the current reference in the jni/Android.mk is
include OpenCV.mk
I did a search on my system and no OpenCV.mk file exists. There is a OpenCV.mk.in. Do i need to build that to create the OpenCV.mk? If so how?
Thanks
您的描述缺少右键点击项目,“Android工具” - >“添加NativeSupport ...”
我已经在这里回答了检查设置NDK Android NDK和OpenCV Android-NDK的步骤
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.