How to build OpenCV for Android using libc++ STL library?
问题 I would like to build a OpenCV from source using a libc++ STL library, instead of default GNU STL. LibC++ offers better C++11 and C++14 support. Is it possible to do that? 回答1: I've tested this with OpenCV 2.4.7 and Android NDK r10d. First, you need to download OpenCV source. Unpack the source and replace the platforms/android/android.toolchain.cmake with version that suppports libc++. Now, open modules/core/include/opencv2/core/operations.hpp and change line 69 from (defined __GNUC__ &&