title: Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode
body: <p>Can anyone provide me some detailed guide how to compile OpenCV 2.3.1 on OS X Lion with Xcode?</p>
  
  <p>I'm getting mad about this … I got the source, used cmake to create the Xcode template and tried to build it, but it fails with about 200 errors.</p>
  
  <p>Thanks in advance,
  Dom</p>
  
  <p><strong>SOLUTION</strong> in my answer post.</p>