我正在尝试使用OpenCV为iOS构建面部识别的stasm。
我正在做的步骤是:
- 为iOS构建OpenCV(python OpenCV/platforms/iOS/Build_framework.py iOS)
- 从这里下载构建脚本:https://github.com/juan-cardelino/stasm,并将CMakeCache.txt编辑为:OpenCV_DIR:PATH=/Users/xxx/occv-2.4.9/ios/build/IiphoneOS-armv7s
- 打开生成的Xcode项目并进行编译
- 使用cmake,一切正常
- 使用make,获取此错误:
[ 44%] Building CXX object CMakeFiles/minimal.dir/apps/minimal.cpp.o Linking CXX executable minimal ld: warning: directory not found for option '-L/Release' ld: framework not found CoreImage clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [minimal] Error 1 make[1]: *** [CMakeFiles/minimal.dir/all] Error 2 make: *** [all] Error 2
我做错了什么?这是为iOS构建它的方法吗?
谢谢。
您将在QuartzCore.framework
中找到CoreImage.framework
,只需将其导入
Library/Frameworks/QuartzCore.framework