OpenCV 2.4.3rc Samples do not run in NDK r8b

asked 2012-11-02 18:00:46 -0500

Chayan gravatar image

I am using windows and trying to build OpenCV Tutorial 3 - Add Native OpenCV in OpenCV4Android 2.4.3. I have followed all the instructions in the following two tutorials http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_dev_intro.html#cdt-builder http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#native-c

I am trying to build the tutorial 3 in Eclipse and getting the following in console,

17:45:42 * Auto Build of configuration Default for project OpenCV Tutorial 3 - Add Native OpenCV * "C:\android-ndk-r8b\ndk-build.cmd" "Compile++ thumb : native_sample <= jni_part.cpp

In file included from jni/jni_part.cpp:1:0: C:/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4 SharedLibrary : libnative_sample.so

Install : libnative_sample.so => libs/armeabi-v7a/libnative_sample.so

17:45:44 Build Finished (took 2s.247ms)

The libnative_sample.so file has been correctly produced. Still, I am getting error that "There is error in the project". Then I've gone to jni_part.cpp and it is showing that it is not getting the header "vector". and it is not understanding the namespace "std". It is also not being able to find FastFeatureDetector. How can I compile it and run it?

edit retag flag offensive close merge delete

Comments

Hello @Chayan, I am also in OpenCV Tutorial 3 and produced lot of errors. I know you can help me about my problem. How did you resolve the error "Cannot run the program ndk-build.cmd: The system cannot find the file specified" in Tutorial 3? Please help. My original post http://answers.opencv.org/question/4137/error-cannot-run-program-ndk-buildcmd/

Karl gravatar imageKarl ( 2012-11-13 14:55:48 -0500 )edit