gpt4 book ai didi

c++ - 为 iOS 编译 OpenCV 失败

转载 作者:太空宇宙 更新时间:2023-11-03 22:31:24 25 4
gpt4 key购买 nike

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

我运行 $ 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com