Unable to build opencv for iOS using terminal in MacOS System
Until downloading using git is fine, but when I tried to build the opencv I am getting the below error.
$user: OpenC cmc1$ python opencv/platforms/ios/build_framework.py ios
Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_TOOLCHAIN_FILE=/Users/Desktop/OpenC/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DENABLE_NEON=ON', '/Users/Desktop/OpenC/opencv', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode'] in /Users/Desktop/OpenC/ios/build/armv7-iPhoneOS
============================================================
ERROR: [Errno 2] No such file or directory
============================================================
Traceback (most recent call last):
File "opencv/platforms/ios/build_framework.py", line 87, in build
self._build(outdir)
File "opencv/platforms/ios/build_framework.py", line 81, in _build
self.buildOne(t[0], t[1], mainBD, cmake_flags)
File "opencv/platforms/ios/build_framework.py", line 133, in buildOne
execute(cmakecmd, cwd = builddir)
File "opencv/platforms/ios/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 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
You have to use version 2.4.7. I have 2 apps in the App store that use opencv. They both were disabled by iOS9. You dont have to build anything for iOS. Download version 2.4.7, drag and drop into project. Make sure Copy Files box is checked. You also have to disable bitcode for it to work, since there is no bitcode in opencv. Even the new fix they claim works does not, I built it and nothing was in the iOS folder.
@sivakrishna209 , do you have cmake installed?
@jmbapps , can you please describe the problems with the bitcode in details? Did you try to use the official iOS release: http://sourceforge.net/projects/openc... ?