title: Linking OpenCV library in Xcode 4?
body: <p>I've been having trouble compiling my own OpenCV iOS project. I started with a simple command-line app target and I've now added an iOS app target. The problem is that my iOS target produces the following linker error:</p>
  
  <blockquote>
    <p>ld: library not found for -lcv<br>
    collect2: ld returned 1 exit status<br>
    Command<br>
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2<br>
    failed with exit code 1</p>
  </blockquote>
  
  <p>I'm not sure where the flag, <code>-lcv</code> is coming from, as I haven't set it as any of the settings in my project's "Build Settings". I've downloaded a demo OpenCV iPhone project that compiles perfectly fine, and I've tried to copy the build settings from this project but I can't see what's different!</p>
  
  <p>Thanks very much for any help.</p>