Ask Your Question
1

Need help on ndk-build.cmd in Android-ndk-r4-crystax

asked 2012-11-12 04:47:23 -0600

Karl gravatar image

updated 2012-11-12 08:39:17 -0600

Andrey Pavlenko gravatar image

Hello again! I imported the OpenCV samples in Eclipse and encountered errors like "C:/.../android-ndk-r4-crystax/ndk-build.cmd" is not found in PATH.

How can I resolve these errors?

I downloaded android-ndk-r4-windows-crystax-4.zip from this website http://www.crystax.net/android/ndk-r4.php but I can't find ndk-build.cmd . Screenshot of my directory. image description

Screenshot of the errors.image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-11-12 05:36:46 -0600

Andrey Pavlenko gravatar image

You're trying to use an outdated NDK, please download the official version 8b from Google and the problem should disappear.

edit flag offensive delete link more

Comments

@Andrey Pavlenko. I downloaded the new Android ndk called android-ndk-r8b-windows. I extracted the file to C:\android-ndk-r8b and added it to the PATH (System Properties->Advanced System Settings->Environment Variables) . This gives me the error "C:/android-ndk-r8b/ndk-build.cmd" is not found in PATH". I can see the ndk-build.cmd in the directory but Eclipse didn't detect it.

Karl gravatar imageKarl ( 2012-11-12 06:24:31 -0600 )edit

I suggest you don't use Cygwin.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-11-12 08:22:53 -0600 )edit

Then what will I use? How did you manage to install your opencv in eclipse? Please.

Karl gravatar imageKarl ( 2012-11-12 08:38:25 -0600 )edit

Use the tools mentioned in the Tutorial (http://docs.opencv.org/trunk/doc/tutorials/introduction/android_binary_package/android_dev_intro.html#manual-environment-setup-for-android-development): Oracle/Sun Java (JDK 6), Eclipse+ADT, Android SDK & NDK.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-11-12 08:45:20 -0600 )edit

I installed the tools and followed the instructions. But there's a problem in Building application native part from Eclipse (CDT Builder). I've encountered errors on ndk-build.cmd. It's in my directory but Eclipse doesn't recognize it. I really need to proceed. How did you installed your opencv Sir?

Karl gravatar imageKarl ( 2012-11-12 09:02:39 -0600 )edit

Question Tools

Stats

Asked: 2012-11-12 04:47:23 -0600

Seen: 2,141 times

Last updated: Nov 12 '12