我正在使用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)
答案 0 :(得分:-1)
尝试将function PaymentCtrl($scope) {
$scope.hasCalledBack = 'Nope';
braintree.setup('BRAINTREE_KEY',
'dropin', {
container: 'dropin',
onPaymentMethodReceived: function (obj) {
$scope.hasCalledBack = 'YEP!';
alert('Did the scope variable change? No? Well it should have....');
}
});
}
移到include ../../OpenCV-2.4.10-android-sdk/sdk/native/jni/OpenCV.mk