gpt4 book ai didi

opencv - 编译opencv框架出错

转载 作者:太空宇宙 更新时间:2023-11-03 20:50:04 30 4
gpt4 key购买 nike

我正在尝试开始学习 OpenCV,但我什至无法创建框架。
我按照说明使用此命令

python opencv/ios/build_framework.py ios

但我收到以下错误:

** BUILD FAILED **

The following build commands failed:
Libtool /Users/myName/Documents/Apps/Frameworks/ios2/build/iPhoneSimulator-i386/modules/world/UninstalledProducts/libopencv_world.a normal i386
(1 failure)
Traceback (most recent call last):
File "opencv/ios/build_framework.py", line 129, in <module>
build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..")), os.path.abspath(sys.argv[1]))
File "opencv/ios/build_framework.py", line 121, in build_framework
put_framework_together(srcroot, dstroot)
File "opencv/ios/build_framework.py", line 89, in put_framework_together
shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 168, in copytree
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-armv7/install/include/opencv2'

我不知道该怎么办!请帮忙

最佳答案

试试这个:

$ git checkout 2.4.3 # or 2.4.4 or 2.4.3.1 or 2.4.3.2

...运行前在 opencv checkout 的某处

$ python ./build_framework.py <SOME_DIR_OUTSIDE_OF_OPENCV_SOURCE_TREE>

关于opencv - 编译opencv框架出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16179120/

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