Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode
Detailed guide how to get OpenCV 2.3.1 up and running under OS X Lion (10.7.2) with Xcode 4.2.1 using MacPorts EDIT 08/06/2012: This is also working for OpenCV 2.4.1. Just make sure you got the latest version of Xcode and installed the “Command Line Tools” (Xcode -> Preferences -> Downloads -> Command Line Tools). EDIT … Read more