Ask Your Question
2

OpenCV 2.4 build Failed error while creating iOS framework in Mac

asked 2013-06-03 08:11:12 -0600

raj001 gravatar image

updated 2013-06-03 09:39:54 -0600

I have followed the following steps to install opencv on my mac. But I am getting a 'Build Failed' message.

What is the solution for this ?


Steps that I have followed:

  1. Create a New Folder OpenCV in Desktop Working Directory.
  2. In Terminal cd /Users/administrator/Desktop/OpenCV
  3. In Terminal git clone https://github.com/Itseez/opencv.git

This results in the cutting edge OpenCV from GIT repository

  1. Now install CMake software
  2. In Terminal cd /
  3. In Terminal sudo ln -s /Applications/Xcode.app/Contents/Developer Developer
  4. In Terminal cd /Users/administrator/Desktop/OpenCV (open working directory)
  5. In Terminal python opencv/ios/build_framework.py ios

Result of this is the build failed message.

The following build commands failed:
    Libtool /Users/administrator/Desktop/OpenCV/ios/build/iPhoneSimulator-i386/modules/world/UninstalledProducts/libopencv_world.a normal i386
(1 failure)
Traceback (most recent call last):
  File "opencv/ios/build_framework.py", line 128, in <module>
    build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..")), os.path.abspath(sys.argv[1]))
  File "opencv/ios/build_framework.py", line 120, in build_framework
    put_framework_together(srcroot, dstroot)
  File "opencv/ios/build_framework.py", line 88, 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 168, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-armv7/install/include/opencv2'
administrators-iMac-2:OpenCV administrator$
edit retag flag offensive close merge delete

Comments

Did you ever figure this out?

CaseJ gravatar imageCaseJ ( 2013-08-01 05:17:33 -0600 )edit

Same here. Actually there is a build failure way before the lines you posted.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/christophkapffer/_privat/ios/build/iPhoneOS-armv7/3rdparty/libjpeg/OpenCV.build/Release-iphoneos/libjpeg.build/Objects-normal/armv7/jmemansi.o (No such file or directory) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1

That is the reason why the libtool can't merge the different builds in order to create a universal framework. There is no install directory for iPhoneOS-armv7, because that build failed in the first place (see above).

christoph gravatar imagechristoph ( 2013-08-05 07:13:16 -0600 )edit

Just to extend my previous comment: The file 'jmemansi.o' is missing for all three platforms (armv7, armv7s & i386).

christoph gravatar imagechristoph ( 2013-08-05 07:24:41 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-16 03:52:22 -0600

ravyr gravatar image

updated 2013-10-16 03:55:18 -0600

yes, that's the last error you get. And what's the first error/message/sugestion in clean python run? Messed C compiler? ;-)

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Failed
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Failed
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Failed
edit flag offensive delete link more

Comments

I am encountering the same problem. Using Xcode 7.3.1. The errors start withthe ones you have posted above: Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Detecting CXX compile features -- Detecting CXX compile features - failed -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Detecting C compile features -- Detecting C compile features - failed -- Performing Test HAVE_CXX_FSIGNED_CHAR -- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed -- Performing Test HAVE_C_FSIGNED_CHAR -- Performing Test HAVE_C_FSIGNED_CHAR - Failed -- Performing Test HAVE_CXX_W -- Performing Test HAVE_CXX_W - Failed -- Performing Test HAVE_C_W -- Performing Test HAVE_C_W - Failed -- Performing Test HAVE_CXX_WALL -- Performing Test HAVE_CXX_WALL - Failed

marp gravatar imagemarp ( 2016-06-02 23:02:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-06-03 08:11:12 -0600

Seen: 2,050 times

Last updated: Oct 16 '13