Ask Your Question

Building MacOS X Framework

asked 2013-01-23 17:29:35 -0600

John Brewer gravatar image

How do I build OpenCV as a Mac OS X framework? I can build OpenCV as a UNIX-style library fine, and I can also build it as a framework for iOS. However I don't see any CMake option for a Mac framework, nor do I see a build script like the one used for the iOS framework.

Am I missing something?

edit retag flag offensive close merge delete



I've followed these steps, and all worked fine: mkdir build cd build cmake -G "Unix Makefiles" .. make -j8 sudo make install

But what I really want is a universal OpenCV.framework, and I don't see how to get that. If I open up the FaceTracker.xcodeproj from samples/MacOSX I get the "missing base SDK" error and can't run it. The README.txt file says to use the '' script, but that's apparently been removed.

I'm completely stumped here. Please help.

scotchfaster gravatar imagescotchfaster ( 2013-01-28 11:44:27 -0600 )edit

I'm having the same issues. Anyone have a solution to this?

Col gravatar imageCol ( 2015-06-03 08:12:23 -0600 )edit

1 answer

Sort by » oldest newest most voted

answered 2018-11-20 18:48:29 -0600

Rado gravatar image

There's a python script for building the iOS Framework. Find the tutorial here:

If you want to do it for macOS, just replace the line python opencv/platforms/ios/ ios with python opencv/platforms/osx/ osx

edit flag offensive delete link more

Question Tools


Asked: 2013-01-23 17:29:35 -0600

Seen: 1,826 times

Last updated: Nov 20 '18