Ask Your Question
0

Building MacOS X Framework

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

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

Comments

+1

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 'make_frameworks.sh' script, but that's apparently been removed.

I'm completely stumped here. Please help.

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

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

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

1 answer

Sort by » oldest newest most voted
0

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

Rado gravatar image

There's a python script for building the iOS Framework. Find the tutorial here: https://docs.opencv.org/4.0.0/d5/da3/...

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

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

Seen: 694 times

Last updated: Nov 20 '18