Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Build OpenCV for iOS Unity

Hi, I am trying to build a version of the opencv library for the iOS Unity game engine by following the instructions here link.

I have cloned the git

https://github.com/Itseez/opencv.git

but when i run the command

python opencv/platforms/ios/build_framework.py ios

The build fails with this error

** BUILD FAILED **
The following build commands failed:
    Libtool /<working-path>/ios/build/iPhoneOS-armv7/lib/Release/libopencv_world.a normal armv7
(1 failure)
Build settings from command line:
    ARCHS = armv7
    SDKROOT = iphoneos6.0

How do build the library for iOS

Note: The reason why i need to do this is so is build a pre c++11 version to work with Unity, when i figure out how to build the current version

Build OpenCV for iOS Unity

Hi, I am trying to build a version of the opencv library for the iOS Unity game engine by following the instructions here link.

I have cloned the git

https://github.com/Itseez/opencv.git

but when i run the command

python opencv/platforms/ios/build_framework.py ios

The build fails with this error

    -o /<path>/ios/build/iPhoneOS-armv7/lib/Release/libopencv_world.a
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: 
can't open file: /<path>/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

        ** BUILD FAILED **
 The following build commands failed:
     Libtool /<working-path>/ios/build/iPhoneOS-armv7/lib/Release/libopencv_world.a normal armv7
 (1 failure)
 Build settings from command line:
     ARCHS = armv7
     SDKROOT = iphoneos6.0

How do build the library for iOS

Note: The reason why i need to do this is so is build a pre c++11 version to work with Unity, when i figure out how to build the current version