How to create OpenCV for Android using Clang and latest NDK r15b
1 answer
You can compile it like this:
cd $OPENCV_SRC_DIR
mkdir build
export ANDROID_NDK=$YOUR_NDK_PATH
cmake -DCMAKE_TOOLCHAIN_FILE=$YOUR_NDK_PATH/build/cmake/android.toolchain.cmake ..
make -j7
make install
cd install
Note:
Tested with latest ndk16 + opencv-2.4.11.
(Clang is the default compiler in the new ndk)
+1
source to share