Sunday, 15 July 2012

android ndk CDT build error for using OpenCV, OpenCL, OpenGL -


I'm developing the real-time FaceDetection app.

Basically, read this app OpenGL / type image and OpenCL for parallel process with JNI and this app was operated properly. Currently, I want to import OpenCV to use several OpenCiv functions and the matte data type. Yes, set up OpenCV lib in your project.

However, this project can not create .so file.


./ obj / local / armeabi-v7a / objs / JNIGLCL / JNIpr.o: in the function cv :: mat :: release () ': C: / Users / CVLAB /Desktop/adt-bundle-windows-x86_64-20140702/OpenCV-2.4.9-android-sdk/sdk/native/jni/include/opencv2/core/mat.hpp:367: CV :: Mat: : Undefined reference for reallocation () ./obj/local/armeabi-v7a/objs/JNIGLCL/JNIpr.o: mat in the function ': C: / Users / CVLAB / Desktop / adt-bundle-windows -x86_64-20140702 / OpenCV-2.4.9-android-sdk / sdk / native / jni / include / opencv2 / core / mat.hpp: 278: CV :: fastFree (zero *) 'undetermined reference to collect2 : Made exit status of ld 1: *** [obj / local / armeabi-v7a / libJNIGLCL.so] error 1

**** Building Finish ****


OpenCV.mk file

  LOCAL_PATH: $ $ OPENCV_INSTALL_MODULES: OPENCV_LIB_TYPE = at: = Fixed C Includes: /Users/CVLAB/Desktop/adt-bundle-windows-x86_64-20140702/OpenCV-2.4.9-android-sdk/sdk/native/jni/OpenCV Mk LOCAL_MODULE: = JNIGLCL LOCAL_CXXFLAGS + = -fno-exception LOCAL_C_INCLUDES + = $ (LOCAL_PATH) LOCAL_LDLIBS: = -lGLESv2 -lEGL -ldl -log -landroid -l OpenCL LOCAL_SRC_FILES: = JNIpr.cpp $ (BUILD_SHARED_LIBRARY)  

I include OpenCV library

Property - Android - Library

I have set the property - C / C ++ General - Path And Signal - GNU C ++ Add this full path: C: / User / CV LAB / Desktop / ATT-Bundle-Windows- x86_64-20140702 / OpenCV-2.4.9-Android-SDK / SDK / Basic / GN / Include

Instead of < / P>

  LOCAL_LDLIBS + = -lGLESv2 -lEGL -ldl -log -landroid -lOpenCL  

No comments:

Post a Comment