Ask Your Question
0

OpenCV 2.4.5 and Mac OS X Xcode 4.6.2?

asked 2013-04-25 04:30:21 -0600

I had OpenCV working a couple of years ago on a MAc but since that time OpenCV, Xcode, and the Mac OS have updated.The official OpenCV documents seem to be out of date with regard to compiling for Mac and have tried a number of the dozen web pages stepping through their methods of getting OpenCV running on Mac OS X. Most are for older versions and each seems to have a different way of getting it to work.

Installed MacPorts and all libs. cmake, etc. But any compiling of any example or raw cpp code results in numerous issues of missing definitions to unknown namespaces. (ranging from rint, Texture2D, __device__, timer_t, etc) Yes, I have set the search paths and added the compiled lib files.

Is there a truly definitive Mac OS X install page that is in fact up to date and that covers everything where example code compiles without a lot of manual search and debugging? Even better if Mac OS X Qt 5 and/or Cocoa projects that actually work swell. Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-04-25 05:09:33 -0600

AlexanderShishkov gravatar image

The simplest way to use OpenCV on Mac is brew. If you need modify OpenCV sources you should create XCode project through CMake, but this way is more complex.

edit flag offensive delete link more

Comments

Actually I already tried one variation of that and had similar problems. I'll try again. There are dozens of pages showing different ways to install even with brew. Do you have a recommended method? Just frustrating some many variations and so few actually seem to work completely.

opencvtest gravatar imageopencvtest ( 2013-04-25 16:47:41 -0600 )edit

Question Tools

Stats

Asked: 2013-04-25 04:30:21 -0600

Seen: 614 times

Last updated: Apr 25 '13