我是 Android 上的 OpenCV 新手。现在,我正在尝试在我的 MacOSX 上配置它。
我遵循这些说明: http: //www.stanford.edu/class/ee368/Android/Tutorial-2-OpenCV-for-Android-Setup-Macintosh.pdf
当我使用此命令到达此步骤(将 JNI 构建到 OpenCV 库)时:
sh ./project_create.sh
控制台显示此错误报告。
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
如何设置目标。它是否与 local.env.mk 文件有关。如果是这样,这就是里面的内容:
#location of android-opencv.mk file that was generated by the cmake build
#of opencv for android
OPENCV_CONFIG=../build/android-opencv.mk
#the root directory of the crystax r4 ndk - ndk-build should be in this dir
#you can download the ndk from http://www.crystax.net/android/ndk-r4.php
#ANDROID_NDK_ROOT=$(HOME)/android-ndk-r4-crystax
ANDROID_NDK_ROOT=/Users/farissyariati/android-ndk-r4-crystax/
#define only armeabi-v7a to make the final apk smaller or armeabi
ARM_TARGETS="armeabi armeabi-v7a"
谢谢你。