Ask Your Question

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

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

include ../../sdk/native/jni/

LOCAL_SRC_FILES  := DetectionBasedTracker_jni.cpp
LOCAL_LDLIBS     += -llog -ldl

LOCAL_MODULE     := detection_based_tracker


And my

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

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


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

Seen: 399 times

Last updated: Aug 02 '13