Check this out: (if you are using the LLVM compiler)
Goal> Build Settings> Apple LLVM 4.1 Compiler - Language> C ++ Standard Library
try to choose
libstdc++ (GNU C++ standard library)`
then try switching to
libc++ (LLVM C++ standard library with C++11 support)
libstdC ++ seems to work for older versions of openCV, libC ++ for newer versions. If you make a mistake (in any case), you will see such errors.
If this is not the case, open the build settings next to each project and check all the settings ...
I recently fought - see my question here , answer here and github example here . The github project includes an opencv framework compiled from the current source a few days ago. I am currently compiling a multipurpose sample that references a different version of the framework if compiled to 10.6 / XCode4.2 or 10.7 / XCode4.4 +. [On github here ]
Update
When prompted by @mikewoz, you may need to run the current openCV using libstdc++ so that it remains compatible with other frameworks. You can make the current build with libstdc++ compatible. For more details, see My answer to Mike's question:
OpenCV 2.4.3+ with libstdc ++ for iOS?
foundry Jan 6 '13 at 21:22 2013-01-06 21:22
source share