I build framework for OpenCV with opencv_contrib module. OpenCV 3.1 Xcode 7.2.1 I refer http://answers.opencv.org/question/40392/how-to-build-opencv_contrib-module-for-ios/ . but link is not effective. try: python build_framework.py --contrib opencv_contrib ios
The error: The following build commands failed: CompileC platforms/ios/ios/build/armv7-iPhoneOS/modules/xfeatures2d/OpenCV.build/Release-iphoneos/opencv_xfeatures2d.build/Objects-normal/armv7/sift.o /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv_contrib/modules/xfeatures2d/src/sift.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=6.0', 'ARCHS=armv7', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
Traceback (most recent call last): File "build_framework.py", line 87, in build self._build(outdir) File "build_framework.py", line 81, in _build self.buildOne(t[0], t[1], mainBD, cmake_flags) File "build_framework.py", line 139, in buildOne execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir) File "build_framework.py", line 34, in execute retcode = check_call(cmd, cwd = cwd) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=6.0', 'ARCHS=armv7', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65 rd05:ios admin$ python build_framework.py --contrib /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv_contrib -DBUILD_opencv_contrib_world OFF ios usage: build_framework.py [-h] [--opencv DIR] [--contrib DIR] OUTDIR build_framework.py: error: unrecognized arguments: -DBUILD_opencv_contrib_world ios rd05:ios admin$ python build_framework.py --contrib /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv_contrib -DBUILD_opencv_contrib_world off ios usage: build_framework.py [-h] [--opencv DIR] [--contrib DIR] OUTDIR build_framework.py: error: unrecognized arguments: -DBUILD_opencv_contrib_world ios rd05:ios admin$ python build_framework.py --contrib /Users/admin/Desktop/ChenWei-workspace/OpenCV_for_iOS/opencv_contrib -DBUILD_opencv_contrib_world OFF ios usage: build_framework.py [-h] [--opencv DIR] [--contrib DIR] OUTDIR build_framework.py: error: unrecognized arguments: -DBUILD_opencv_contrib_world ios