Unable to compile OpenCV for iOS

Does anyone have an idea why this error occurs?

I am running $ python platforms/ios/build_framework.py ios to create an OpenCV framework for iOS. But installation failed.

Platform Information: Last OpenCV commit from today, CMake 2.8.12.2, Xcode 5.1.1, Mac OSX 10.9.2

I followed this guide: Installing Opencv for iOS

 ** INSTALL FAILED ** The following build commands failed: Libtool ios/build/iPhoneSimulator-x86_64/modules/world/UninstalledProducts/libopencv_world.a normal x86_64 (1 failure) Traceback (most recent call last): File "platforms/ios/build_framework.py", line 112, in <module> build_framework(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "../..")), os.path.abspath(sys.argv[1])) File "platforms/ios/build_framework.py", line 104, in build_framework put_framework_together(srcroot, dstroot) File "platforms/ios/build_framework.py", line 80, in put_framework_together shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers") File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 171, in copytree names = os.listdir(src) OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-arm64/install/include/opencv2' 
+1
source share
2 answers

molbdnilo is right :) Creating the latest version is always better than creating the latest commit. Thank you I downloaded the latest version of OpenCV, which is now 2.4.8, and built it again. Everything worked fine.

+2
source

Just today, I ran into the same problem and solved it with a simple command:

 brew install cmake 

This solution has been described here .

0
source

All Articles