build opencv_contrib module for iOS, opencv_xfeatures2d fail

asked 2016-04-15 01:34:37 -0500

Wei gravatar image

updated 2016-04-15 02:11:50 -0500

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
edit retag flag offensive close merge delete

Comments

also, please use the "10101" button, to format code/errors properly.

berak gravatar imageberak ( 2016-04-15 01:55:19 -0500 )edit

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 gravatar imagejmbapps ( 2016-04-15 08:53:50 -0500 )edit

@jmbapps , afaik, there's no such thing (but prove us wrong !)

berak gravatar imageberak ( 2016-04-15 08:57:39 -0500 )edit

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?

jmbapps gravatar imagejmbapps ( 2016-04-15 11:32:05 -0500 )edit

Do you have any solution , I have the same problem ,please thank you

hedi gravatar imagehedi ( 2016-06-13 04:04:40 -0500 )edit

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

Ares gravatar imageAres ( 2017-04-29 02:41:14 -0500 )edit