Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I properly build Android OpenCV from sources?

The end goal is to build opencv with contrib for Android, but i cant seem to get the build_sdk.py script to even work without the --extra_pack flag

I've downloaded build Tools 25.0.3, sdk tools 25.2.5,, ndk 16b and the latest opencv and contrib repos.

Commands:

export ANDROID_SDK=/home/wmmc88/Android/Sdk/

export ANDROID_NDK=/home/wmmc88/Android/android-ndk-r16b/

python3 ../android/build_sdk.py test/ ../../../opencv --no_ccache --config ../android/ndk-16.config.py

Output:

> Args: Namespace(build_doc=False,
> config='../android/ndk-16.config.py',
> extra_modules_path=None,
> extra_pack=None, force_copy=False,
> force_opencv_toolchain=False,
> ndk_path=None, no_ccache=True,
> opencv_dir='../../../opencv',
> sdk_path=None, sign_with=None,
> work_dir='test/') Package
> configuration:
> ================================================================================ ABIs = [
>     ABI("2", "armeabi-v7a", "arm-linux-androideabi-4.9",
> cmake_vars=dict(ANDROID_ABI='armeabi-v7a
> with NEON')),
>     ABI("1", "armeabi",     "arm-linux-androideabi-4.9",
> cmake_vars=dict(WITH_TBB='OFF')),
>     ABI("3", "arm64-v8a",   "aarch64-linux-android-4.9"),
>     ABI("5", "x86_64",      "x86_64-4.9"),
>     ABI("4", "x86",         "x86-4.9"), ]
> ================================================================================ Android NDK path:
> /home/wmmc88/Android/android-ndk-r16b/
> Android SDK path:
> /home/wmmc88/Android/Sdk/ Check dir
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test
> (create: True, clean: False) Check dir
> /home/wmmc88/OpenCVRepo/opencv
> (create: False, clean: False) Check
> dir
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a
> (create: True, clean: True) Removing
> file:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/CMakeCache.txt
> Removing dir:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/CMakeFiles
> Removing dir:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/3rdparty
> Removing file:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/CMakeDownloadLog.txt
> Removing dir:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/junk
> Check dir
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/OpenCV-android-sdk
> (create: True, clean: True) Removing
> dir:
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/OpenCV-android-sdk/sdk
> Check dir
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/OpenCV-android-sdk/sdk/java/javadoc
> (create: True, clean: True) Detected
> OpenCV version: 4.0.0-pre Detected
> Engine version: 3.42 Check dir
> /home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/build_service_armeabi-v7a
> (create: True, clean: True)
> =====
> ===== Building library for armeabi-v7a (arm-linux-androideabi-4.9)
> =====
> 
> Executing: ['cmake', '-GNinja',
> '-DBUILD_TESTS=ON',
> '-DINSTALL_TESTS=ON',
> "-DCMAKE_TOOLCHAIN_FILE='/home/wmmc88/Android/android-ndk-r16b/build/cmake/android.toolchain.cmake'",
> "-DWITH_OPENCL='OFF'",
> "-DWITH_IPP='OFF'", "-DWITH_TBB='ON'",
> "-DBUILD_EXAMPLES='OFF'",
> "-DBUILD_TESTS='OFF'",
> "-DBUILD_PERF_TESTS='OFF'",
> "-DBUILD_DOCS='OFF'",
> "-DBUILD_ANDROID_EXAMPLES='ON'",
> "-DINSTALL_ANDROID_EXAMPLES='ON'",
> "-DANDROID_STL='gnustl_static'",
> "-DANDROID_ABI='armeabi-v7a with
> NEON'",
> "-DANDROID_TOOLCHAIN_NAME='arm-linux-androideabi-4.9'",
> "-DANDROID_PLATFORM_ID='2'",
> '/home/wmmc88/OpenCVRepo/opencv']
> Executing: cmake -GNinja
> -DBUILD_TESTS=ON -DINSTALL_TESTS=ON -DCMAKE_TOOLCHAIN_FILE='/home/wmmc88/Android/android-ndk-r16b/build/cmake/android.toolchain.cmake'
> -DWITH_OPENCL='OFF' -DWITH_IPP='OFF' -DWITH_TBB='ON' -DBUILD_EXAMPLES='OFF' -DBUILD_TESTS='OFF' -DBUILD_PERF_TESTS='OFF' -DBUILD_DOCS='OFF' -DBUILD_ANDROID_EXAMPLES='ON' -DINSTALL_ANDROID_EXAMPLES='ON' -DANDROID_STL='gnustl_static' -DANDROID_ABI='armeabi-v7a with NEON' -DANDROID_TOOLCHAIN_NAME='arm-linux-androideabi-4.9'
> -DANDROID_PLATFORM_ID='2' /home/wmmc88/OpenCVRepo/opencv
> -- The CXX compiler identification is GNU 4.9.0
> -- The C compiler identification is GNU 4.9.0
> -- Check for working CXX compiler: /home/wmmc88/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
> -- Check for working CXX compiler: /home/wmmc88/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
> -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Check for working C compiler: /home/wmmc88/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
> -- Check for working C compiler: /home/wmmc88/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
> -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Found PythonInterp: /usr/bin/python2.7 (found suitable
> version "2.7.15", minimum required is
> "2.7") 
> -- Found PythonInterp: /usr/bin/python3 (found suitable
> version "3.6.5", minimum required is
> "3.4") 
> -- Looking for ccache - not found
> -- Performing Test HAVE_CXX_FSIGNED_CHAR
> -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
> -- Performing Test HAVE_C_FSIGNED_CHAR
> -- Performing Test HAVE_C_FSIGNED_CHAR - Success
> -- Performing Test HAVE_CXX_W
> -- Performing Test HAVE_CXX_W - Success
> -- Performing Test HAVE_C_W
> -- Performing Test HAVE_C_W - Success
> -- Performing Test HAVE_CXX_WALL
> -- Performing Test HAVE_CXX_WALL - Success
> -- Performing Test HAVE_C_WALL
> -- Performing Test HAVE_C_WALL - Success
> -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
> -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
> -- Performing Test HAVE_C_WERROR_RETURN_TYPE
> -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
> -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
> -- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR -
> Success
> -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
> -- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR -
> Success
> -- Performing Test HAVE_CXX_WERROR_ADDRESS
> -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
> -- Performing Test HAVE_C_WERROR_ADDRESS
> -- Performing Test HAVE_C_WERROR_ADDRESS - Success
> -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
> -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT -
> Success
> -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
> -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
> -- Performing Test HAVE_CXX_WFORMAT
> -- Performing Test HAVE_CXX_WFORMAT - Success
> -- Performing Test HAVE_C_WFORMAT
> -- Performing Test HAVE_C_WFORMAT - Success
> -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
> -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY -
> Success
> -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
> -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY -
> Success
> -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
> -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS -
> Success
> -- Performing Test HAVE_C_WMISSING_DECLARATIONS
> -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
> -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
> -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
> -- Performing Test HAVE_C_WMISSING_PROTOTYPES
> -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
> -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
> -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
> -- Performing Test HAVE_C_WSTRICT_PROTOTYPES
> -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
> -- Performing Test HAVE_CXX_WUNDEF
> -- Performing Test HAVE_CXX_WUNDEF - Success
> -- Performing Test HAVE_C_WUNDEF
> -- Performing Test HAVE_C_WUNDEF - Success
> -- Performing Test HAVE_CXX_WINIT_SELF
> -- Performing Test HAVE_CXX_WINIT_SELF - Success
> -- Performing Test HAVE_C_WINIT_SELF
> -- Performing Test HAVE_C_WINIT_SELF - Success
> -- Performing Test HAVE_CXX_WPOINTER_ARITH
> -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
> -- Performing Test HAVE_C_WPOINTER_ARITH
> -- Performing Test HAVE_C_WPOINTER_ARITH - Success
> -- Performing Test HAVE_CXX_WSHADOW
> -- Performing Test HAVE_CXX_WSHADOW - Success
> -- Performing Test HAVE_C_WSHADOW
> -- Performing Test HAVE_C_WSHADOW - Success
> -- Performing Test HAVE_CXX_WSIGN_PROMO
> -- Performing Test HAVE_CXX_WSIGN_PROMO - Success
> -- Performing Test HAVE_C_WSIGN_PROMO
> -- Performing Test HAVE_C_WSIGN_PROMO - Failed
> -- Performing Test HAVE_CXX_WUNINITIALIZED
> -- Performing Test HAVE_CXX_WUNINITIALIZED - Success
> -- Performing Test HAVE_C_WUNINITIALIZED
> -- Performing Test HAVE_C_WUNINITIALIZED - Success
> -- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
> -- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Failed
> -- Performing Test HAVE_C_WSUGGEST_OVERRIDE
> -- Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
> -- Performing Test HAVE_CXX_WNO_NARROWING
> -- Performing Test HAVE_CXX_WNO_NARROWING - Success
> -- Performing Test HAVE_C_WNO_NARROWING
> -- Performing Test HAVE_C_WNO_NARROWING - Success
> -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
> -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR -
> Success
> -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
> -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR -
> Failed
> -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
> -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
> - Failed
> -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
> -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
> - Failed
> -- Performing Test HAVE_CXX_WNO_COMMENT
> -- Performing Test HAVE_CXX_WNO_COMMENT - Success
> -- Performing Test HAVE_C_WNO_COMMENT
> -- Performing Test HAVE_C_WNO_COMMENT - Success
> -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
> -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION -
> Success
> -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
> -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION -
> Success
> -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
> -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
> -- Performing Test HAVE_C_FOMIT_FRAME_POINTER
> -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
> -- Performing Test HAVE_CXX_MFPU_VFPV3
> -- Performing Test HAVE_CXX_MFPU_VFPV3 - Success
> -- Performing Test HAVE_CPU_NEON_SUPPORT (check file:
> cmake/checks/cpu_neon.cpp)
> -- Performing Test HAVE_CPU_NEON_SUPPORT - Success
> -- Performing Test HAVE_CPU_FP16_SUPPORT (check file:
> cmake/checks/cpu_fp16.cpp)
> -- Performing Test HAVE_CPU_FP16_SUPPORT - Failed
> -- Performing Test HAVE_CXX_MFPU_NEON_FP16 (check file:
> cmake/checks/cpu_fp16.cpp)
> -- Performing Test HAVE_CXX_MFPU_NEON_FP16 - Success
> -- Performing Test HAVE_CPU_BASELINE_FLAGS
> -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
> -- Performing Test HAVE_CXX_MFP16_FORMAT_IEEE
> -- Performing Test HAVE_CXX_MFP16_FORMAT_IEEE - Success
> -- Performing Test HAVE_C_MFP16_FORMAT_IEEE
> -- Performing Test HAVE_C_MFP16_FORMAT_IEEE - Success
> -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
> -- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
> -- Performing Test HAVE_C_FVISIBILITY_HIDDEN
> -- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
> -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
> -- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN -
> Success
> -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
> -- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN -
> Failed
> -- OpenCV disables pkg-config to avoid using of host libraries. Consider
> using PKG_CONFIG_LIBDIR to specify
> target SYSROOT
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for posix_memalign
> -- Looking for posix_memalign - not found
> -- Looking for malloc.h
> -- Looking for malloc.h - found
> -- Looking for memalign
> -- Looking for memalign - found
> -- Check if the system is big endian
> -- Searching 16 bit integer
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of unsigned short
> -- Check size of unsigned short - done
> -- Using unsigned short
> -- Check if the system is big endian - little endian
> -- Found ZLIB: /home/wmmc88/Android/android-ndk-r16b/platforms/android-14/arch-arm/usr/lib/libz.so
> (found suitable version "1.2.3",
> minimum required is "1.2.3") 
> -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
> -- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
> -- Performing Test HAVE_C_WNO_SIGN_COMPARE
> -- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
> -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32
> -- Performing Test HAVE_C_WNO_SHORTEN_64_TO_32 - Failed
> -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
> -- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH -
> Failed
> -- libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-pre-libjpeg-turbo
> -- Check size of size_t
> -- Check size of size_t - done
> -- Looking for assert.h
> -- Looking for assert.h - found
> -- Looking for dlfcn.h
> -- Looking for dlfcn.h - found
> -- Looking for fcntl.h
> -- Looking for fcntl.h - found
> -- Looking for inttypes.h
> -- Looking for inttypes.h - found
> -- Looking for io.h
> -- Looking for io.h - not found
> -- Looking for limits.h
> -- Looking for limits.h - found
> -- Looking for memory.h
> -- Looking for memory.h - found
> -- Looking for search.h
> -- Looking for search.h - found
> -- Looking for string.h
> -- Looking for string.h - found
> -- Looking for strings.h
> -- Looking for strings.h - found
> -- Looking for sys/time.h
> -- Looking for sys/time.h - found
> -- Looking for unistd.h
> -- Looking for unistd.h - found
> -- Performing Test C_HAS_inline
> -- Performing Test C_HAS_inline - Success
> -- Check size of signed short
> -- Check size of signed short - done
> -- Check size of unsigned short
> -- Check size of unsigned short - done
> -- Check size of signed int
> -- Check size of signed int - done
> -- Check size of unsigned int
> -- Check size of unsigned int - done
> -- Check size of signed long
> -- Check size of signed long - done
> -- Check size of unsigned long
> -- Check size of unsigned long - done
> -- Check size of signed long long
> -- Check size of signed long long - done
> -- Check size of unsigned long long
> -- Check size of unsigned long long - done
> -- Check size of unsigned char *
> -- Check size of unsigned char * - done
> -- Check size of ptrdiff_t
> -- Check size of ptrdiff_t - done
> -- Check size of INT8
> -- Check size of INT8 - failed
> -- Check size of INT16
> -- Check size of INT16 - failed
> -- Check size of INT32
> -- Check size of INT32 - failed
> -- Looking for floor
> -- Looking for floor - found
> -- Looking for pow
> -- Looking for pow - found
> -- Looking for sqrt
> -- Looking for sqrt - found
> -- Looking for isascii
> -- Looking for isascii - found
> -- Looking for memset
> -- Looking for memset - found
> -- Looking for mmap
> -- Looking for mmap - found
> -- Looking for getopt
> -- Looking for getopt - found
> -- Looking for memmove
> -- Looking for memmove - found
> -- Looking for setmode
> -- Looking for setmode - not found
> -- Looking for strcasecmp
> -- Looking for strcasecmp - found
> -- Looking for strchr
> -- Looking for strchr - found
> -- Looking for strrchr
> -- Looking for strrchr - found
> -- Looking for strstr
> -- Looking for strstr - found
> -- Looking for strtol
> -- Looking for strtol - found
> -- Looking for strtol
> -- Looking for strtol - found
> -- Looking for strtoull
> -- Looking for strtoull - found
> -- Looking for lfind
> -- Looking for lfind - not found
> -- Performing Test HAVE_SNPRINTF
> -- Performing Test HAVE_SNPRINTF - Success
> -- Check if the system is big endian
> -- Searching 16 bit integer
> -- Using unsigned short
> -- Check if the system is big endian - little endian
> -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE
> -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE -
> Success
> -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
> -- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES -
> Success
> -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
> -- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS -
> Success
> -- Performing Test HAVE_C_WNO_UNDEF
> -- Performing Test HAVE_C_WNO_UNDEF - Success
> -- Performing Test HAVE_C_WNO_UNUSED
> -- Performing Test HAVE_C_WNO_UNUSED - Success
> -- Performing Test HAVE_C_WNO_CAST_ALIGN
> -- Performing Test HAVE_C_WNO_CAST_ALIGN - Success
> -- Performing Test HAVE_C_WNO_SHADOW
> -- Performing Test HAVE_C_WNO_SHADOW - Success
> -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
> -- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED -
> Success
> -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST
> -- Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST -
> Success
> -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST
> -- Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST -
> Success
> -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION
> -- Performing Test HAVE_C_WNO_MISLEADING_INDENTATION -
> Failed
> -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
> -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS -
> Success
> -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
> -- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER -
> Success
> -- Performing Test HAVE_CXX_WNO_UNDEF
> -- Performing Test HAVE_CXX_WNO_UNDEF - Success
> -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
> -- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
> -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
> -- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
> -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
> -- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
> - Success
> -- Performing Test HAVE_C_WNO_UNINITIALIZED
> -- Performing Test HAVE_C_WNO_UNINITIALIZED - Success
> -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
> -- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER -
> Success
> -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
> -- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
> -- Performing Test HAVE_C_WNO_POINTER_COMPARE
> -- Performing Test HAVE_C_WNO_POINTER_COMPARE - Failed
> -- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE
> -- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Failed
> -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
> -- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
> -- The ASM compiler identification is GNU
> -- Found assembler: /home/wmmc88/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
> -- Looking for semaphore.h
> -- Looking for semaphore.h - found
> -- Performing Test HAVE_CXX_WNO_SHADOW
> -- Performing Test HAVE_CXX_WNO_SHADOW - Success
> -- Performing Test HAVE_CXX_WNO_UNUSED
> -- Performing Test HAVE_CXX_WNO_UNUSED - Success
> -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
> -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
> -- Performing Test HAVE_CXX_WNO_UNINITIALIZED
> -- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
> -- Performing Test HAVE_CXX_WNO_SWITCH
> -- Performing Test HAVE_CXX_WNO_SWITCH - Success
> -- Performing Test HAVE_CXX_WNO_PARENTHESES
> -- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
> -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
> -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
> -- Performing Test HAVE_CXX_WNO_EXTRA
> -- Performing Test HAVE_CXX_WNO_EXTRA - Success
> -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
> -- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS -
> Success
> -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
> -- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION -
> Failed
> -- Performing Test HAVE_CXX_WNO_DEPRECATED
> -- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
> -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
> -- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Failed
> -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
> -- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
> -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
> -- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH -
> Failed
> -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
> -- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES -
> Failed
> -- TBB: Download: 2018_U1.tar.gz
> -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
> -- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS -
> Success
> -- Performing Test HAVE_CXX_WNO_SIGN_PROMO
> -- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
> -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
> -- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
> - Failed
> -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
> -- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS -
> Success
> -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
> -- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
> -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
> -- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE -
> Failed
> -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
> -- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
> -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
> -- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF -
> Success
> -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
> -- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH -
> Failed
> -- Update variable ANDROID_SDK from environment: /home/wmmc88/Android/Sdk
> -- Android SDK Tools: ver. 25.2.5
> -- Android SDK Build Tools: ver. 25.0.3 (subdir 25.0.3 from 25.0.3) CMake Error at
> cmake/android/OpenCVDetectAndroidSDK.cmake:184
> (message):   Android SDK: Can't build
> Android projects as requested by  
> BUILD_ANDROID_PROJECTS=ON variable.
> 
>   Use BUILD_ANDROID_PROJECTS=OFF to
> prepare Android project files without 
> building them Call Stack (most recent
> call first):   CMakeLists.txt:644
> (include)
> 
> 
> -- Configuring incomplete, errors occurred! See also
> "/home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/CMakeFiles/CMakeOutput.log".
> See also
> "/home/wmmc88/OpenCVRepo/opencv/platforms/Custom/test/o4a/CMakeFiles/CMakeError.log".
> Traceback (most recent call last):  
> File "../android/build_sdk.py", line
> 368, in <module>
>     builder.build_library(abi, do_install)   File
> "../android/build_sdk.py", line 184,
> in build_library
>     execute(cmd)   File "../android/build_sdk.py", line 23, in
> execute
>     raise Fail("Child returned: %s" % retcode)
> __main__.Fail: Child returned: 1