Ask Your Question

achilles_xu's profile - activity

2019-06-20 11:19:15 -0600 received badge  Famous Question (source)
2015-10-31 03:46:01 -0600 received badge  Notable Question (source)
2014-11-25 20:05:16 -0600 received badge  Self-Learner (source)
2014-11-25 19:52:14 -0600 received badge  Popular Question (source)
2013-10-29 21:04:11 -0600 commented answer WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

OPENCV_CAMERA_MODULES:=off OPENCV_INSTALL_MODULES:=on OPENCV_LIB_TYPE:=SHARED include D:\OpenCV4Android\OpenCV-2.4.6-android-sdk\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)

2013-10-18 03:17:38 -0600 answered a question WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java

The answer is below, add three lines after "include $(CLEAR_VARS)" OPENCV_CAMERA_MODULES:=off OPENCV_INSTALL_MODULES:=on OPENCV_LIB_TYPE:=SHARED

the next line "include ../../sdk/native/jni/OpenCV.mk"

then press menu "Project----clear"

finally,get it!!!

now, i cannot still understand the android.mk,so i should be serious to read the docs in "android-ndk-r9\docs"

2013-10-08 00:34:36 -0600 commented question Android NDK bulid error non-system libraries in linker flags: -lopencv_java

my NDK is newest android-ndk-r9-windows-x86, i use the OpenCV-2.4.6-android-sdk\samples\face-detection in my workspace, and have the same warning with you. how can you solve the warning?

2013-10-07 09:27:49 -0600 asked a question WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java

build the opencv example "OpenCV-2.4.6-android-sdk\samples\face-detection",no error,but a warning "Android NDK: WARNING:jni/Android.mk:detection_based_tracker: non-system libraries in linker flags: -lopencv_java
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so"

i can not solve the problem,need a help!!!image description