2014-02-14 39 views
0

我試着讓我的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)構建指令帶來了在終端以下錯誤:如何爲iOS7構建OpenCV 2.4.8?

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' 

有人能告訴我,我怎麼能解決這個問題還是什麼問題?

回答

4
sh: cmake: command not found 

該項目使用cmake來構建,它是一個命令行工具。作爲Xcode 5工具的一部分,cmake不包含在Mac OS X中 - 您需要自行安裝它。 http://www.cmake.org/cmake/resources/software.html

+0

謝謝你的tipp,我現在可以建立它! – julesmummdry

+0

所以我現在可以用cmake構建它,但是無論如何要完成構建失敗並且沒有構建框架。有一些文件丟失。也許你對opencv框架很熟悉。在哪裏我可以得到它或如何解決問題? /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:無法打開文件:/Users/julesair/Open_CV/ios/build/iPhoneOS-arm64/3rdparty/libjpeg/OpenCV.build/ Release-iphoneos/libjpeg.build/Objects-normal/arm64/jmemansi.o(沒有這樣的文件或目錄) Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool失敗,退出代碼爲1 – julesmummdry

+0

對不起,我對OpenCV項目一無所知。 –