我正在遵循这些说明(OpenCV文档),但它们非常过时:提及iOS4或iOS5,安装在/Developer的XCode 4.2等等。
它无法构建,我有各种错误:
所有初始测试都失败:--
配置看起来是正确的:
但是后来,我出现了第一个链接错误:
它无法构建,我有各种错误:
所有初始测试都失败:--
执行测试HAVE_CXX_W - 失败
另外:-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
配置看起来是正确的:
-- General configuration for OpenCV 2.4.9 =====================================
-- Version control: 2.4.5-1168-g0a42a3e
--
-- Platform:
-- Host: Darwin 12.3.0 i386
-- Target: iOS
-- CMake: 2.8.10
-- CMake generator: Xcode
-- CMake build tool: /opt/local/bin/cmakexbuild
-- Xcode: 4.6.2
[...]
-- Media I/O:
-- ZLib: build (ver 1.2.7)
-- JPEG: build (ver 90)
-- WEBP: NO
-- PNG: build (ver 1.5.12)
-- TIFF: NO
-- JPEG 2000: NO
-- OpenEXR: NO
--
-- Video I/O:
-- AVFoundation: YES
-- QuickTime: NO
-- QTKit: YES
-- V4L/V4L2: NO/NO
但是后来,我出现了第一个链接错误:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/ant/xcode/opencv/ios/build/iPhoneOS-armv7/3rdparty/libjpeg/OpenCV.build/Release-iphoneos/libjpeg.build/Objects-normal/armv7/jmemansi.o
我的系统缺少什么来编译OpenCV适用于iOS?