In the source for openCV, find this file:
ios/cmake/Modules/Platform/iOS.cmake
Change this line:
set (CMAKE_CXX_FLAGS "-stdlib=libc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden")
to:
set (CMAKE_CXX_FLAGS "-stdlib=libstdc++ -headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden")
Compile using python script
ios/build_framework.py
Then you should be good to go
I just tried this in source 2.4.3, changed in the resulting structure of an existing project, changed the standard C ++ library for the project to libstdC ++, and it works fine.
foundry Apr 7 '13 at 1:01 2013-04-07 01:01
source share