Ask Your Question

Revision history [back]

OpenCV4Android ndk-build error

Hi,

I am trying to build the examples of the OpenCV SDK for Android.

I could make work the "only Java" examples but I cannot build the examples with native code.

I am under Win7, if I execute ndk-build.cmd in a command window from any of the sample project paths, I get an error like this:

/usr/bin/sh: -c line 2: syntax error: unexpected end of file make: * [obj/local/armeabi-v7a/objs/native_sample/jni_part.o] Error 1

I guess I have some configuration error (maybe some environment variable) but I have no experience with NDK and don't know where to look, can anybody point out where to start?

OpenCV4Android ndk-build error

Hi,

I am trying to build the examples of the OpenCV SDK for Android.

I could make work the "only Java" examples but I cannot build the examples with native code.

I am under Win7, if I execute ndk-build.cmd in a command window from any of the sample project paths, I get an error like this:

/usr/bin/sh: -c line 2: syntax error: unexpected end of file
make: * *** [obj/local/armeabi-v7a/objs/native_sample/jni_part.o] Error 1

1

I guess I have some configuration error (maybe some environment variable) but I have no experience with NDK and don't know where to look, can anybody point out where to start?