Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from:https://github.com/opencv/opencv/issues/8460

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page:https://github.com/taka-no-me/android-cmake
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
other step same as FERNman answer,wish your success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from:https://github.com/opencv/opencv/issues/8460

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page:https://github.com/taka-no-me/android-cmake
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
other 3.other step same as FERNman answer,wish your success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from:https://github.com/opencv/opencv/issues/8460

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page:https://github.com/taka-no-me/android-cmake
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
3.other Other step same as FERNman answer,wish your success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from:https://github.com/opencv/opencv/issues/8460
from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page:https://github.com/taka-no-me/android-cmakepage
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
Other step same as FERNman answer,wish success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
Other 3.Other step same as FERNman answer,wish success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b
8.android-sdk:my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
3.Other step same as FERNman answer,wish you success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-ndk-r16b7.android-sdk:
8.android-sdk:my my sdk tools is too new,but android.toolchain.cmake just need old tools which version is 25.2.5.
so i download and replace my sdk tools dir from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
3.Other step same as FERNman answer,wish you success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-sdk:
my sdk tools sdk-tools is too new,but android.toolchain.cmake just only need old tools sdk-tools which version is 25.2.5.
so i download and replace my sdk tools dir from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
3.Other step same as FERNman answer,wish you success.

Thanks your guide,i built it ok and want to share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
3.android-ndk-r16b
4.Visual Studio 2017
5.Python-2.7.15:I got one warning when CMake started because of my 3.x version python
6.opencv-4.0.0 and opencv_contrib-4.0.0
7.android-sdk:
my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
so i download and replace my sdk tools dir from here

CMake

1.Open CMake-GUI
2.Add Entry:
ANDROID_SDK=<path>android-sdk
ANDROID_NDK=<path>android-ndk-r16b
CMAKE_BUILD_TYPE=<string>Release
ANDROID_NDK_HOST_X64=<Bool>true
ANDROID_ABI=<string>arm64-v8a
BUILD_ANDROID_PROJECTS=<Bool>false
PS:If you want to know about these parameters,go this page
BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
3.Other step same as FERNman answer,wish you success.

Thanks your FERNman's guide,i built it ok and share my experience to fill some details.

My Environment

1.CMake-3.13
2.MinGW:Basic

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
    3.android-ndk-r16b
    4.Visual
  • android-ndk-r16b
  • Visual Studio 2017
    5.Python-2.7.15:I
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
    6.opencv-4.0.0 and
  • opencv-4.0.0
  • opencv_contrib-4.0.0
    7.android-sdk:
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
    PS:If
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
    BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me
    3.Other step
  • 3.Click Configure and do same as FERNman answer,wish FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Thanks FERNman's guide,i Good guide from FERNman,i built it ok and share my experience to fill some details.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide from FERNman,i built it ok and share my experience to fill some details.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide from FERNman,i guide! I built ok and share my experience to fill some details.details

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I built build ok and share my experience to fill some detailsdetails here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk tools sdk-tools dir from here

CMake

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMakeCMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.If me.
  • By the way,If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • PS:BUILD_ANDROID_PROJECTS BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.
  • By the way,If you want to know about these parameters,go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.
  • By the way,If you want to know about these parameters,go parameters,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_ANDROID_PROJECTS gave me error when it is ture,but i don't know whether it is use for me.
  • By the way,If you want to know about these parameters,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameter valus parameters value to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameter valus parameters value to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_ANDROID_PROJECTS gave me error when it is was ture,but i don't didn't know whether it is was use for me.
  • By the way,If you want to know about these parameters,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameters value to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameters value to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8a
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_ANDROID_PROJECTS gave me error when it was ture,but i didn't know whether it was use for me.useful.
  • By the way,If you want to know about these parameters,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameters value to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameters value to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • ANDROID_NDK_HOST_X64=<Bool>true
  • ANDROID_ABI=<string>arm64-v8aOPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_ANDROID_PROJECTS gave me error when it was ture,but i didn't know whether it was useful.BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true Example
  • By the way,If you want to know about these android parameters,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.search "TEST",set three parameters value 4.Check output information,if all goes well you will configure successfully,and then click Generate to false
  • BUILD_PERF_TESTS
  • BUILD_TESTS
  • INSTALL_TSETS
  • 5.search "WITH_CU",set two parameters value to false
  • WITH_CUDA
  • WITH_CUFFT
  • 6.Search "EXTRA",add contrib modules dir
  • OPENCV_EXTRA_MODULES_PATH value look like:"C:/opencv_contrib-4.0.0/modules"
  • 7.Click Configure again
  • 8.The next step.
  • 5.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true Example
  • By the way,If you want to know about android parameters,please Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate to next step.
  • 5.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true Exampleimage description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate to next step.
  • 5.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate to next step.
  • 5.The Generate.The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate.The Generate. The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate. Generate.
  • The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully,and then click Generate.
  • The successfully
  • 5.Click Generate,The remaining steps same as FERNman,wish you success.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully
  • 5.Click Generate,The remaining steps same as FERNman,wish you success.successfully and then Click Generate.
    1. Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk
  • ANDROID_NDK=<path>android-ndk-r16b
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
    1. Execute 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdkANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
  • 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dirdir //options,extend modules
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true BUILD_opencv_world=<Bool>true //options,it will package all dependencies into one image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
  • 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir //options,extend modules
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true //options,it will package all dependencies into one one if is true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
  • 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir //options,extend modules
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true //options,it will package all dependencies static libs into one if is true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
  • 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir //options,extend modules
  • BUILD_ANDROID_PROJECTS=<Bool>false
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true //options,it will package static libs into one if is true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click Configure and do same as FERNman.
  • 4.Check output information,if all goes well you will configure successfully and then Click Generate.
  • 5.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk-r16b ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>arm64-v8a
  • CMAKE_BUILD_TYPE=<string>Release
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib modules dir //options,extend modules
  • BUILD_ANDROID_PROJECTS=<Bool>falseANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib/modules dir
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • WITH_CUFFT=<Bool>false
  • BUILD_opencv_world=<Bool>true //options,it will package static libs all modules into one if is true image description
  • By the way,If you want to know about Android Entries Value,please go this page
  • 3.Click libopencv_java3.so
  • 6.Click Configure and do same as FERNman.
  • 4.Check again and wait some mintues
  • 7.Check output information,if all goes well you well,you will configure successfully and then Click click Generate.
  • 5.Execute 8.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib/modules dirBUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image descriptionimage description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib/modules dir
  • BUILD_opencv_world=<Bool>true //options,it //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib/modules dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Execute 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>opencv_contrib/modules OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • android-ndk-r16b
  • Visual Studio 2017
  • Python-2.7.15:
    I got one warning when CMake started because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started Configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started Configuring configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake Configure

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.so
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

CMake ConfigureBuilding OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_java3.solibopencv_world.a
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,It's true will package all modules into libopencv_world.a
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //you may //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin

  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python

  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g. "libopencv_world.a" transform into "opencv_world" manually and type it on "Library Dependencies",put my setting below: opencv_world;cpufeatures;IlmImf;libjpeg-turbo;libjasper;libpng;libprotobuf;libtiff;libwebp;quirc;tegra_hal;%(LibraryDependencies)

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g. "name":e.g.Transform "libopencv_world.a" transform into "opencv_world" manually and type it on "Library Dependencies",put my setting below: opencv_world;cpufeatures;IlmImf;libjpeg-turbo;libjasper;libpng;libprotobuf;libtiff;libwebp;quirc;tegra_hal;%(LibraryDependencies)

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g.Transform "libopencv_world.a" into "opencv_world" manually and type it on "Library Dependencies",put Dependencies"
  • put my setting below: opencv_world;cpufeatures;IlmImf;libjpeg-turbo;libjasper;libpng;libprotobuf;libtiff;libwebp;quirc;tegra_hal;%(LibraryDependencies)below:
    image description

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4. By the way,i use staticlibs dir replace libs dir.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g.Transform "libopencv_world.a" into "opencv_world" manually and type it on "Library Dependencies"
  • put my setting below:
    image description

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4. By the way,i use staticlibs "staticlibs" dir replace libs "libs" dir.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g.Transform "libopencv_world.a" into "opencv_world" manually and type it on "Library Dependencies"
  • put my setting below:
    image description

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.
  • 4.Follow FERNman's answer do step 2,3,4. By the way,i use don't have "libs" dir,use "staticlibs" dir replace "libs" dir.replace.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g.Transform "libopencv_world.a" into "opencv_world" manually and type it on "Library Dependencies"
  • put my setting below:
    image description

Good guide! I build ok and share my experience to fill some details here.

My Environment

  • CMake-3.13
  • MinGW:
    Basic Setup choose mingw32-base-bin and mingw32-gcc-g++-bin
  • Python-2.7.15:
    I got one warning when CMake started configuring because of my 3.x version python
  • opencv-4.0.0
  • opencv_contrib-4.0.0
  • Visual Studio 2017
  • android-ndk-r16b
  • android-sdk:
    my sdk-tools is too new,but android.toolchain.cmake only need old sdk-tools which version is 25.2.5.
    so i download and replace my sdk-tools dir from here

Building OpenCV

  • 1.Open CMake-GUI
  • 2.Add Entry:
  • ANDROID_SDK=<path>android-sdk dir
  • ANDROID_NDK=<path>android-ndk dir
  • ANDROID_ABI=<string>armeabi-v7a
  • ANDROID_NATIVE_API_LEVEL=<string>android-19
  • BUILD_ANDROID_PROJECTS=<Bool>false //i got a error when it was true.
  • For more info about these Android Parameters,go here image description
  • 3.Click Configure,Select "MinGW Makefiles" as generator and choose "Specify toolchain file for cross-compiling"
  • 4.Choose "Path_To_OpenCV/platforms/android/android.toolchain.cmake" as Toolchain file and wait some minutes.
  • 5.Search below names and set their value
  • BUILD_TESTS=<Bool>false
  • BUILD_PERF_TESTS=<Bool>false
  • OPENCV_EXTRA_MODULES_PATH=<path>"opencv_contrib/modules" dir
  • BUILD_opencv_world=<Bool>true //options,it's ture will package all modules to "libopencv_world.a".
  • 6.Click Configure again and wait some mintues
  • 7.Check output information,if all goes well,you will configure successfully and then click Generate.
  • 8.Navigate to your build folder and execute "mingw32-make", then "mingw32-make install" in build folder.

Setting up Visual Studio

  • 1.Create new solution:File->New->Project->Visual C++/Cross Platform/Android->Dynamaic Shared Library(Android).
  • 2.In "Solution platform" :Change "Debug x86" to "Release ARM".
  • 3.In top menu:Click Project and choose proteries.properties.
  • 4.Follow FERNman's answer do step 2,3,4. By the way,i don't have "libs" dir,use "staticlibs" dir replace.
  • 5.Under "Linker/Input",Be careful of "Library Dependencies",the lib file is made up of three parts:"lib"+"name"+".a",there only need "name":e.g.Transform "libopencv_world.a" into "opencv_world" manually and type it on "Library Dependencies"
  • put my setting below:
    image description