Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the environment to build OpenCV sdk for android-x86


I was trying to build my own OpenCV SDK for android-x86 platform. I've cloned the repo from , and set "opencv/platforms/android/android.toolchain.cmake" as CMake toolchain file.

And my environment is - Host: Ubuntu 14.04 x86_64 - Toolchain: android-ndk-r10e - CMake version: 3.2.2

And my target device is an x86 tablet which runs Android L.

The cmake command is as following

cmake \
-DCMAKE_TOOLCHAIN_FILE=$OPENCV_SRC_DIR/platforms/android/android.toolchain.cmake \
-DOPENCV_EXTRA_MODULES_PATH=$EXT_SRC_DIR/opencv_contrib/modules \

However, the libraries I built can't work well, which always cause segmentation fault when any of OpenCV functions was invoked.

Would you please tell me how did you build the official OpenCV-3.1.0-android-sdk ? Because the official sdk libraries works very well on my device, I'd like to know the difference.

Please let me know if any further information is required.