Ask Your Question

linuxhippy's profile - activity

2015-08-19 04:29:05 -0600 asked a question How to include opencv inside an Android NDK project (relative paths)

Hi,

I would like to include the opencv-3 android SDK directly into my NDK project, to avoid absolute paths in Android.mk. So what I did was to move the "sdk"-folder to the project's directory, and instead of including "\native\jni\OpenCV.mk" using an absolute path, I used a relative one.

However, ndk-build then complains with:

C:\Users\User\AndroidStudioProjects\OpenCV3Native>C:\ndk\ndk-build V=1 Android NDK: ERROR:jni/Android.mk:opencv_shape: LOCAL_SRC_FILES points to a missing file Android NDK: Check that /../opencv3-sdk//native//jni//../libs/armeabi-v7a/libopencv_shape.a exists or that its path is correct C:/ndk/build/core/prebuilt-library.mk:45: * Android NDK: Aborting . Stop.*

I am quite new to android native development, so it is unclear to me what is going wrong here. Is there any way to include opencv-3 using a project relative path?

Thank you in advance, Clemens

2015-06-18 09:00:07 -0600 answered a question Enable neon acceleration for OpenCV 3 on Android

There do not seem to be special NEON-optimized binaries available for the native OpenCV SDK (compared to the OpenCV4Android Java Wrapper / native library manager). Is NEON detected at runtime, or is it required to build OpenCV myself, setting ANDROID_ABI to "armeabi-v7a with NEON"?