I have all the prebuilt Open CV .so
files in the jniLibs
directory while I have some C++
files which use the OpenCV as well.I have the following Android.mk
and Application.mk
scripts .
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= opencv-prebuilt
LOCAL_SRC_FILES:= ../jniLibs/$(TARGET_ARCH_ABI)/libopencv_java.so
LOCAL_EXPORT_C_INCLUDES:= $(LOCAL_PATH)/build/include
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := AN
LOCAL_SRC_FILES := A.cpp B.cpp
LOCAL_SHARED_LIBRARIES := opencv-prebuilt
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_LDLIBS += -llog -ldl
include $(BUILD_SHARED_LIBRARY)
Application.mk
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a
APP_PLATFORM := android-8
Why does it keep giving me error no such directory or file found
and points to #include <opencv2/opencv.hpp>
statement in my jni
directory when I try to compile?
I have looked at another similar question here but I was unable to solve it via the solution