Ask Your Question
1

Trying to get Opencv 2.4.3 framework in my xcode 4.5 for an iOS 6 app

asked 2013-02-05 10:59:03 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hello,

I'm trying to get the opencv framework so that I can start a new project with it. I just would like to have the opencv 2.4.3 framework in my xcode 4.5.

When I follow the instructions indicated here I get the follow error when trying the last step:

python opencv/ios/build_framework.py ios

* BUILD FAILED *

The following build commands failed:

CompileC /Users/parramon/Developer/iOS/ios/build/iPhoneSimulator-i386/modules/softcascade/OpenCV.build/Release-iphonesimulator/opencv_softcascade.build/Objects-normal/i386/integral_channel_builder.o modules/softcascade/src/integral_channel_builder.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/parramon/Developer/iOS/ios/build/iPhoneSimulator-i386/modules/softcascade/OpenCV.build/Release-iphonesimulator/opencv_softcascade.build/Objects-normal/i386/precomp.o modules/softcascade/src/precomp.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler

(2 failures) 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'

Has anyone walked through this? I'd apreciate it a lot.

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-02-06 16:59:07 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Try running

$ git checkout 2.4.3 # or 2.4.3.1 or 2.4.3.2

...somewhere in your opencv checkout before you run

$ python ./build_framework.py <SOME_DIR_OUTSIDE_OF_OPENCV_SOURCE_TREE>
edit flag offensive delete link more

Comments

Thank you so much! It worked!

ecthelion07 gravatar imageecthelion07 ( 2013-02-07 13:59:54 -0600 )edit

Question Tools

Stats

Asked: 2013-02-05 10:59:03 -0600

Seen: 1,527 times

Last updated: Feb 06 '13