2
我正在使用Android + NDK + OpenCV。Android + android-ndk-r10d + OpenCV-2.4.10構建錯誤
我不斷收到以下生成錯誤
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)
我不明白你的答案。 –
有什麼區別。有沒有什麼特別的原因。 –
由於格式原因,我的一半答案缺失,對此抱歉。另一個問題也是由於'APP_ABI:= armeabi armeabi-v7a arm64-v8a x86 x86_64 mips mips64'。在我的情況下,我不能用ARM64-V8A編譯lib庫archi – Imrahil