Ask Your Question

native opencv for android project

asked 2013-03-23 01:58:17 -0500

pocahentez gravatar image

updated 2013-03-23 01:59:22 -0500

I tried to integrate opencv library in my android project so i followed this link:

but now i still have these errors:

jni/DetectionBasedTracker.cpp:5:23: error: opencv/cv.h: No such file or directory jni/DetectionBasedTracker.cpp:6:28: error: opencv/highgui.h: No such file or directory

should i change the

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-23 03:17:13 -0500

Marwen Z gravatar image

no , is your reference to ? LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

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

LOCAL_MODULE := Xxx LOCAL_SRC_FILES := Xxxx.cpp LOCAL_LDLIBS += -llog -ldl


and do you add

${NDKROOT}/platforms/android-9/arch-arm/usr/include ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/include ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include ${ProjDirPath}/../../sdk/native/jni/include

( Open Project Properties -> C/C++ General -> Paths and Symbols and add the following Include paths for C++: )

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-03-23 01:58:17 -0500

Seen: 1,450 times

Last updated: Mar 23 '13