using ndk r8e with Opencv2.4.5 problem

asked 2013-05-11 07:09:03 -0500

Lee gravatar image

Hi, I'm trying to use opencv2.4.5 library in my project. As it is mentioned here But when i compile my project i get this warming, and i can't use opencv function any more in java parts.

C:/Development/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/pre‌​built/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-lin‌​ux-androideabi/bin/ld.exe: 
warning: hidden symbol '__aeabi_atexit' in C:/Development/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/li‌​bgnustl_static.a(atexit_arm.o) 
is referenced by DSO ./obj/local/armeabi/libQCAR.so

I have changed the android.mk file to use opencv function in the jni part :

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := QCAR-prebuilt
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include
include $(PREBUILT_SHARED_LIBRARY)

 include $(CLEAR_VARS)
 LOCAL_PRELINK_MODULE := false
 OPENCV_LIB_TYPE:=STATIC
 include $(LOCAL_PATH)/../../../OpenCV-2.4.5-android-sdk/sdk/native/jni/OpenCV.mk
 LOCAL_MODULE := ImageTargets
 USE_OPENGL_ES_1_1 := false
 ifeq ($(USE_OPENGL_ES_1_1), true)
 OPENGLES_LIB  := -lGLESv1_CM
 OPENGLES_DEF  := -DUSE_OPENGL_ES_1_1
 else
 OPENGLES_LIB  := -lGLESv2
 OPENGLES_DEF  := -DUSE_OPENGL_ES_2_0
 endif

LOCAL_CFLAGS := -Wno-write-strings -Wno-psabi $(OPENGLES_DEF)
LOCAL_LDLIBS += \
-llog $(OPENGLES_LIB)
LOCAL_SHARED_LIBRARIES += QCAR-prebuilt
LOCAL_SRC_FILES := ImageTargets.cpp SampleUtils.cpp Texture.cpp SampleMath.cpp 
LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)

I still can't figure out the problem.Any idea?

edit retag flag offensive close merge delete

Comments

please any idea will be appriciated.I still can't figure out the problem!

Lee gravatar imageLee ( 2013-05-12 09:50:20 -0500 )edit