Ask Your Question

Problem compiling ios framework on Mac

asked 2013-02-12 09:14:11 -0600

fredley gravatar image

updated 2013-02-12 09:15:10 -0600

I'm following the instructions to the letter, but I'm having a problem. Compilation is failing with the following:

Traceback (most recent call last):
  File "opencv/ios/", 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/", line 120, in build_framework
    put_framework_together(srcroot, dstroot)
  File "opencv/ios/", 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/", line 168, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '../build/iPhoneOS-armv7/install/include/opencv2'

What is going wrong?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-02-27 18:04:29 -0600

I checked out version as given in this solution and it worked for me:

edit flag offensive delete link more

answered 2013-02-14 14:52:47 -0600

homebrew does not appear to install the opencv2.framework library references in the iOS tutorials (e.g. So it would be good to know how to get around the compilation issues. I am seeing the same thing BTW.

edit flag offensive delete link more

answered 2013-02-13 18:16:37 -0600

krishna gravatar image

Why won't you just use brew.

brew install opencv
edit flag offensive delete link more

Question Tools


Asked: 2013-02-12 09:14:11 -0600

Seen: 1,390 times

Last updated: Feb 27 '13