0

I am trying to compile OpenCV's sample Android projects, but am facing a difficulty. I get this error: Program "ndk-build.cmd" not found in PATH

The projects that use NDK C/C++ do not compile. All others compile successfully. I tried to fix the issue by editing the C/C++ Build Environment and the GNU C++ Includes. Both of these did not work. I don't think I'm doing this right. I am using Windows 7 for Android Development. An online forum suggested adding a path that includes ../android-ndk-r8/.. but this "android-ndk-r8" directory doesn't exist in OpenCV-2.4.2-android-sdk and I cannot find something thats equivalent.

I've been trying to fix this for a week but to no gain. Its really frustrating to not be able to get down to coding. Any help would be deeply appreciated.

user1210233
  • 2,730
  • 5
  • 24
  • 31

4 Answers4

0

Have u installed the android ndk bundle rom android ??? android-ndk-r8 can be downloaded at the below location

http://developer.android.com/tools/sdk/ndk/index.html

You have download ndk package from android to work with c/c++ code. OpenCv will not contain ndk package.

-Preeya

preeya
  • 159
  • 5
0

i Would like you to take look on the Following Link and Stack Post

Community
  • 1
  • 1
Usman Kurd
  • 7,212
  • 7
  • 57
  • 86
0

Perhaps you haven't specified the PATH. Maybe this answer would help.

Community
  • 1
  • 1
Noha Kareem
  • 1,748
  • 1
  • 22
  • 32
0

Right click on project -> go to project properties -> Go to C/C++ build -> Build Variables -> Add your environment variable named NDKROOT (Name) with the relevant path (Value) (Exactly where your NDK is there). Note that you need to repeat this per NDK project.

Nikita
  • 193
  • 3
  • 10