有谁知道为什么会出现这种错误?
我运行$ 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'
答案 0 :(得分:2)
molbdnilo是对的:)构建最新版本总是比构建最新提交更好。谢谢。 我已经下载了最新版本的OpenCV,现在是2.4.8并再次构建它。一切都很好。
答案 1 :(得分:0)
答案 2 :(得分:0)
正如@enreas在回答中提到的,问题是你没有安装cmake
。这样可以解决问题。
有很多方法可以做到这一点,轻松者可以通过自制软件或MacPorts:
自制版:
brew install cmake
MacPorts的:
port install cmake