Ask Your Question
1

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/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'

What is going wrong?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

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

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

http://answers.opencv.org/question/6789/problem-with-installation-opencv/

edit flag offensive delete link more
0

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. http://docs.opencv.org/doc/tutorials/ios/hello/hello.html#opencvioshelloworld). 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
0

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

Stats

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

Seen: 1,435 times

Last updated: Feb 27 '13