4

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

Harshad Pansuriya
  • 20,189
  • 8
  • 67
  • 95
user2872885
  • 75
  • 1
  • 10

2 Answers2

5

Your description lacks right click on project, "Android Tools" -> "Add NativeSupport..."

Alex Cohn
  • 56,089
  • 9
  • 113
  • 307
  • Thank you that helped a lot. Any chance you could have a look at my new question. – user2872885 Nov 12 '13 at 12:05
  • It costs nothing to start a new question, or to accept an answer. But if you keep questions mixed, nobody else can reuse your experience, which has been the principal idea of SO. Please undo your edit and open a separate question. – Alex Cohn Nov 12 '13 at 21:10
2

I have already answered here check the steps to setup NDK Android NDK and OpenCV Android-NDK

Community
  • 1
  • 1
Srikanth Roopa
  • 1,782
  • 2
  • 13
  • 19