Ask Your Question

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

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

Karl gravatar image

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

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 from this website 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

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

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


@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 -0500 )edit

I suggest you don't use Cygwin.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-11-12 08:22:53 -0500 )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 -0500 )edit

Use the tools mentioned in the Tutorial ( Oracle/Sun Java (JDK 6), Eclipse+ADT, Android SDK & NDK.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-11-12 08:45:20 -0500 )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 -0500 )edit

Question Tools


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

Seen: 2,013 times

Last updated: Nov 12 '12