我正在用安卓开发OpenCV。我试过人脸检测样本。但我总是犯同样的错误,请帮帮忙。
生成命令失败。在执行带有参数的进程C:\Users\Cevdet\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd时出错{ APP_BUILD_SCRIPT=C:\Users\Cevdet\AndroidStudioProjects\face-detection\openCVSamplefacedetection\src\main\jni\Android.mk NDK_APPLICATION_MK=C:\Users\Cevdet\AndroidStudioProjects\face-detection\openCVSamplefacedetection\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=Androd-16_OUT=C:/Users/Cevdet/AndroidStudioProjects/face-detection/openCVSamplefacedetection/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Users\Cevdet\AndroidStudioProjects\face-detection\openCVSamplefacedetection\build\intermediates\ndkBuild\debug\lib C:/Users/Cevdet/AndroidStudioProjects/face-detection/openCVSamplefacedetection/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libdetection_based_tracker.so} armeabi-v7a SharedLibrary : libdetection_based_tracker.so C:/User/Cevdet/AndroidStudioProjects/face-detection/openCVSamplefacedetection/src/main/jni/DetectionBasedTracker_jni.cpp:34:错误:对'DetectionBasedTracker::DetectionBasedTracker(std::__ndk1::basic_string,的未定义引用std::__ndk1::allocator > const&,DetectionBasedTracker::Parameters const&)‘clang++.exe: clang++.exe: linker命令失败,退出代码1(使用-v查看调用) make:*clang++.exe错误1
发布于 2018-10-30 11:10:42
您需要为您的项目设置OpenCV librairies。
您可以按照这里的指示->https://stackoverflow.com/a/22427267/5773037
https://stackoverflow.com/questions/53062866
复制相似问题