编译OpenCV进行iOS的失败 [英] Compile OpenCV for iOS fails

查看:735
本文介绍了编译OpenCV进行iOS的失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有想法,为什么这会发生错误?

我跑 $蟒蛇平台/ IOS / IOS build_framework.py 以创建OpenCV的iOS版的框架。但安装程序失败。

平台信息:的OpenCV的最新从今天提交,CMake的2.8.12.2,X code 5.1.1,Mac OSX版10.9.2

我跟着这个教程:安装OpenCV进行的iOS

  **安装失败**
下面的生​​成命令失败:
    libtool的IOS /建设/ iPhoneSimulator-x86_64的/模块/世界/ UninstalledProducts / libopencv_world.a正常的x86_64
(1失败)
回溯(最近通话最后一个):
  文件平台/ IOS / build_framework.py,112线,上述<&模块GT;
    build_framework(os.path.abspath则(os.path.join(os.path.dirname(sys.argv中[0]),../ ..)),os.path.abspath则(sys.argv中[1] ))
  文件平台/ IOS / build_framework.py,线路104,在build_framework
    put_framework_together(srcroot,dstroot)
  文件平台/ IOS / build_framework.py,80线,在put_framework_together
    shutil.copytree(tdir0 +/安装/有/ opencv2,dstdir +/头)
  文件/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py线171,在copytree
    名称= os.listdir(SRC)
OSERROR:[错误2]没有这样的文件或目录:../build/iPhoneOS-arm64/install/include/opencv2


解决方案

molbdnilo是正确的:)构建最新版本总是比建设的最新提交更好的主意。谢谢。
我已经下载的OpenCV的最新版本是2.4.8,现在和重新建造它。一切正常。

Does anyone have idea why this error occurs?

I run $ python platforms/ios/build_framework.py ios to create the framework of OpenCV for iOS. But the install failed.

Platform information: OpenCV latest commit from today, CMake 2.8.12.2, XCode 5.1.1, Mac OSX 10.9.2

I followed this tutorial: 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 is right:) Building the latest release is always better idea than building the latest commit. Thanks. I have downloaded the latest release of OpenCV which is 2.4.8 right now and built it again. Everything worked fine.

这篇关于编译OpenCV进行iOS的失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆