Ask Your Question
0

FaceDetection with loading Native Library --- Android Problem

asked 2013-08-02 00:55:06 -0500

JamesChain gravatar image

updated 2013-08-02 06:51:18 -0500

I meet the problem when I want to load the native library, but it failed to load. Here is my Android.mk:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

#OPENCV_CAMERA_MODULES:=off
#OPENCV_INSTALL_MODULES:=off
#OPENCV_LIB_TYPE:=SHARED
include ../../sdk/native/jni/OpenCV.mk

LOCAL_SRC_FILES  := DetectionBasedTracker_jni.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_LDLIBS     += -llog -ldl

LOCAL_MODULE     := detection_based_tracker

include $(BUILD_SHARED_LIBRARY)

And my Application.mk:

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a
APP_PLATFORM := android-8

Plz tell me how to solve this problem... Thanks guys!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-02 06:56:17 -0500

What king of error or exception do you get? It looks like you forgot to initialize OpenCV library. See this tutorial to initialize OpenCV correctly.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-08-02 00:55:06 -0500

Seen: 372 times

Last updated: Aug 02 '13