c++ - 为 iOS 编译 OpenCV 失败

标签 c++ ios opencv build cmake

有谁知道为什么会出现这个错误?

我运行 $ python platforms/ios/build_framework.py ios 来为 iOS 创建 OpenCV 的框架。但是安装失败。

平台信息:OpenCV 今天最新提交,CMake 2.8.12.2,XCode 5.1.1,Mac OSX 10.9.2

我遵循了本教程:Installing Opencv For iOS

** INSTALL FAILED **


The following build commands failed:
    Libtool ios/build/iPhoneSimulator-x86_64/modules/world/UninstalledProducts/libopencv_world.a normal x86_64
(1 failure)
Traceback (most recent call last):
  File "platforms/ios/build_framework.py", line 112, in <module>
    build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "../..")), os.path.abspath(sys.argv[1]))
  File "platforms/ios/build_framework.py", line 104, in build_framework
    put_framework_together(srcroot, dstroot)
  File "platforms/ios/build_framework.py", line 80, in put_framework_together
    shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers")
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 171, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2'

最佳答案

molbdnilo 是对的:)构建最新版本总是比构建最新提交更好。谢谢。 我已经下载了最新版本的 OpenCV,现在是 2.4.8 并重新构建了它。一切正常。

关于c++ - 为 iOS 编译 OpenCV 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23156007/

相关文章:

c++ - A*寻路不走最短路径

c++ - 在 C++ 环境中优化回归测试

c++ - OpenGL:glGenBuffer 与 glGenBuffersARB

c++ - 快速排序和合并排序错误的内存分配(不对超过 32k 的元素进行排序)

ios - 多个自定义点注释 - Swift

ios - TableViewCell 和 TableViewController 中 UIStepper 的委托(delegate)错误

ios - 如何使用 UIPasteboard 异步加载动画 .gif 的图像 URL

visual-studio-2010 - OpenCV 和 VS2010 : Fatal error LNK1104: atal error LNK1104: cannot open file 'tbb_debug. 库

python - OpenCV中的阈值未检测到我想要获取的完整对象。我怎样才能解决这个问题?

python - 使用 Opencv 和 python 获取 RTSP 流