【发布时间】:2014-06-03 01:47:24
【问题描述】:
有人知道为什么会出现这个错误吗?
我运行 $ python platforms/ios/build_framework.py ios 来创建适用于 iOS 的 OpenCV 的 framework。但安装失败。
平台信息: 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'
【问题讨论】:
-
一般来说,如果最新的提交有一些问题,你不应该感到惊讶。首先尝试发布版本。
标签: c++ ios opencv build cmake