Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use build_sdk.py to build opencv4 for android on Windows

Hi, I need to build OpenCV for Android on Windows10. The OpenCV version is 4.4 and the command I use is:

opencv-master\platforms\android\build_sdk.py --extra_modules_path=..\opencv_contrib-master\modules\ --no_samples_build

After building, I got the following information:

Build finished ANDROID_NDK_HOME environment variable required by the samples project is not set SDK location: D:\YixunLiu\OpenCV4\build-android\OpenCV-android-sdk Documentation location: D:\YixunLiu\OpenCV4\build-android\OpenCV-android-sdk\sdk\java\javadoc

The problem is I cannot find "libopencv_java4.so", which is I need.

I got the following folder under build-android: 3rdparth, jni and staticlibs I search all folders and cannot find libopencv_java4.so

Any help is very appreciated!

Thanks.

YL