Ask Your Question
1

Problem compiling ios framework on Mac

asked Feb 12 '13

fredley gravatar image

updated Feb 12 '13

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?

Preview: (hide)

3 answers

Sort by » oldest newest most voted
0

answered Feb 28 '13

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/

Preview: (hide)
0

answered Feb 14 '13

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.

Preview: (hide)
0

answered Feb 14 '13

krishna gravatar image

Why won't you just use brew.

brew install opencv
Preview: (hide)

Question Tools

Stats

Asked: Feb 12 '13

Seen: 1,455 times

Last updated: Feb 27 '13