build opencv_contrib module for iOS, opencv_xfeatures2d fail
I build framework for OpenCV with opencv_contrib module. OpenCV 3.1 Xcode 7.2.1
I refer http://answers.opencv.org/question/40... . but link is not effective. try:
python build_framework.py --contrib opencv_contrib ios
The error:
** BUILD FAILED **
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/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
also, please use the "10101" button, to format code/errors properly.
Why not just download the prebuilt version and add to your project? So much easier. I would set your iPhone target to the latest version......6.0 was many moons ago. ;o)
@jmbapps , afaik, there's no such thing (but prove us wrong !)
Well that explains it then. Thx for the challenge, but no thx. ;o) I still dont understand why peeps build the framework for iOS when it is done already. I used CMake to build it for OS...but for iOS. Porque?
Do you have any solution , I have the same problem ,please thank you
Does anyone know where is the prebuilt version of opencv with xfeatures2d? Spent too much to do this thing and still can not figure it out....thanks