我正在使用 Android+NDK+OpenCV。
我不断收到以下构建错误
Android NDK: Check that ../../OpenCV-2.4.10-android-sdk/sdk/native/jni/../libs/arm64-v8a/libopencv_java.so exists or that its path is correct
../../android-ndk-r10d/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
我的 Application.mk 文件是:
APP_PLATFORM := android-8
APP_ABI := armeabi armeabi-v7a arm64-v8a x86 x86_64 mips mips64
APP_OPTIM := debug
NDK_DEBUG := 1
NDK_TOOLCHAIN_VERSION := 4.6
APP_STL := gnustl_shared
APP_CPPFLAGS := -fexceptions -frtti
我的 Android.mk 文件是:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_INSTALL_MODULES := on
include ../../OpenCV-2.4.10-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_MODULE := document_scanner
LOCAL_SRC_FILES := jni_part.cpp
LOCAL_C_INCLUDES :=../../OpenCV-2.4.10-android-sdk/sdk/native/jni/include
LOCAL_LDLIBS += -llog
include $(BUILD_SHARED_LIBRARY)