Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check this: (assuming you are using LLVM compiler)</p> <p>Target > Build Settings > Apple LLVM Compiler 4.1 - language > C++ Standard Library<br> try selecting </p> <pre><code>libstdc++ (GNU C++ standard library)` </code></pre> <p>then try switch to </p> <pre><code>libc++ (LLVM C++ standard library with C++11 support) </code></pre> <p>libstdc++ seems to work for older builds of openCV, libc++ correct for newer builds. If you have it set wrong (either way) you will see these kinds of errors.</p> <p>If that isn't the cause, open the build setting side by side in each project and check <em>every</em> setting... </p> <p>I have been battling through this recently - see my question <a href="https://stackoverflow.com/questions/13905471/opencv-2-4-3-ios-framework-compiler-trouble-recognising-some-c-headers">here</a>, answers <a href="https://stackoverflow.com/questions/13958321/iosretrieve-rectangle-shaped-image-from-the-background-image/14055311#14055311">here</a> and github sample <a href="https://github.com/foundry/OpenCVSquares" rel="nofollow noreferrer">here</a>. The github project includes opencv framework compiled from current source a few days ago. Right now I am putting together a multi-target sample that links to a different version of the framework if compiling under 10.6/XCode4.2 or 10.7/XCode4.4+. [On github <a href="https://github.com/foundry/OpenCVSquaresSL" rel="nofollow noreferrer">here</a>]</p> <p><em>update</em></p> <p>As @mikewoz requested, you may need to run current openCV with <code>libstdc++</code> to remain compatible with other frameworks. It is possible to make a current build with <code>libstdc++</code> compatibility. For details see my answer to Mike's question here:</p> <p><a href="https://stackoverflow.com/questions/15855894/opencv-2-4-3-with-libstdc-for-ios">OpenCV 2.4.3+ with libstdc++ for iOS?</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload