Trouble setting up OpenCV with NDK in Android Studio
Hi, I would like to use OpenCV with the NDK in my Android Project. I am using Android Studio. I can't get it to compile properly. I am getting error while including opencv2 in my cpp file..... **
I followed all the steps. i copied all the native libs to my jniLibs
My gradle looks like this
THIS IS MY Android.mk file
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on
#OPENCV_LIB_TYPE:=STATIC
include F:/PULKIT/Resources/Android OpenCV/OpenCV-2.4.11-android-sdk/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk
LOCALE_MODULE := ndkLib
LOCAL_SRC_FILES := helloJNI.cpp
LOCAL_C_INCLUDES += F:/PULKIT/Resources/Android OpenCV/OpenCV-2.4.11-android-sdk/OpenCV-android-sdk/sdk/native/jni/include
LOCAL_LDLIBS += -llog -ldl
include $(BUILD_SHARED_LIBRARIES)
This is my Application.mk file
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a
APP_PLATFORM := android-17
did you figure it out?
did you figure it out? I also am compiling from github to android-studio
@cellurl, please stop posting answers, if you have a comment or question.