gpt4 book ai didi

opencv - 如何为iOS7构建OpenCV 2.4.8?

转载 作者:行者123 更新时间:2023-12-02 16:49:51 26 4
gpt4 key购买 nike

我尝试重新启动我的EyeTracking系统。我知道已经有一些问题涉及同一个问题(How to compile OpenCV for iOS7 (arm64)),但是这些问题对我没有任何帮助。 github上的最新版本已经内置了所有arm64架构插件。因此,我不必更改python build_framwork.py。但是遵循OpenCV文档(http://docs.opencv.org/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation)上框架的构建说明,会在终端中出现以下错误:

sh: cmake: command not found
User defaults from command line:
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
ARCHS = armv7
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-armv7 does not contain an Xcode project.

Build settings from command line:
ARCHS = armv7
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-armv7 does not contain an Xcode project.

sh: cmake: command not found
User defaults from command line:
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
ARCHS = armv7s
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-armv7s does not contain an Xcode project.

Build settings from command line:
ARCHS = armv7s
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-armv7s does not contain an Xcode project.

sh: cmake: command not found
User defaults from command line:
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
ARCHS = arm64
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-arm64 does not contain an Xcode project.

Build settings from command line:
ARCHS = arm64
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphoneos7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneOS-arm64 does not contain an Xcode project.

sh: cmake: command not found
User defaults from command line:
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
ARCHS = i386
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphonesimulator7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneSimulator-i386 does not contain an Xcode project.

Build settings from command line:
ARCHS = i386
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphonesimulator7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneSimulator-i386 does not contain an Xcode project.

sh: cmake: command not found
User defaults from command line:
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8

Build settings from command line:
ARCHS = x86_64
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphonesimulator7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneSimulator-x86_64 does not contain an Xcode project.

Build settings from command line:
ARCHS = x86_64
IPHONEOS_DEPLOYMENT_TARGET = 6.0
SDKROOT = iphonesimulator7.0

xcodebuild: error: The directory /Users/julesair/Open_CV/ios/build/iPhoneSimulator-x86_64 does not contain an Xcode project.

Traceback (most recent call last):
File "opencv/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 "opencv/platforms/ios/build_framework.py", line 104, in build_framework
put_framework_together(srcroot, dstroot)
File "opencv/platforms/ios/build_framework.py", line 80, 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 171, in copytree
names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2'

有人可以告诉我如何解决该问题吗?

最佳答案

sh: cmake: command not found

该项目使用 cmake进行构建,它是一个命令行实用程序。 cmake不作为Xcode 5工具的一部分包含在Mac OS X中-您需要自己安装它。 http://www.cmake.org/cmake/resources/software.html

关于opencv - 如何为iOS7构建OpenCV 2.4.8?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21791267/

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