failed to build through the scripte of the platforms/android/build_sdk.py
../platforms/android/build_sdk.py --no_ccache --config=ndk-16.config.py --ndk_path=/Users/cy/mytools/android-ndk-r18 --sdk_path=/Users/cy/mytools/android-sdk --extra_modules_path=./stork
Args: Namespace(build_doc=False, config='ndk-16.config.py', extra_modules_path='./stork', extra_pack=None, force_copy=False, force_opencv_toolchain=False, ndk_path='/Users/cy/mytools/android-ndk-r18', no_ccache=True, opencv_dir='/Users/cy/workspace/opencv-master/platforms/android/../..', sdk_path='/Users/cy/mytools/android-sdk', sign_with=None, work_dir='.')
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: /Users/cy/mytools/android-ndk-r18
Android SDK path: /Users/cy/mytools/android-sdk
Check dir /Users/cy/workspace/opencv-master/outputs (create: True, clean: False)
Check dir /Users/cy/workspace/opencv-master (create: False, clean: False)
Check dir /Users/cy/workspace/opencv-master/outputs/o4a (create: True, clean: True)
Removing dir: /Users/cy/workspace/opencv-master/outputs/o4a/CMakeFiles
Removing dir: /Users/cy/workspace/opencv-master/outputs/o4a/junk
Removing file: /Users/cy/workspace/opencv-master/outputs/o4a/CMakeDownloadLog.txt
Removing file: /Users/cy/workspace/opencv-master/outputs/o4a/CMakeCache.txt
Removing dir: /Users/cy/workspace/opencv-master/outputs/o4a/3rdparty
Check dir /Users/cy/workspace/opencv-master/outputs/OpenCV-android-sdk (create: True, clean: True)
Removing dir: /Users/cy/workspace/opencv-master/outputs/OpenCV-android-sdk/sdk
Check dir /Users/cy/workspace/opencv-master/outputs/OpenCV-android-sdk/sdk/java/javadoc (create: True, clean: True)
Detected OpenCV version: 4.0.0-pre
Detected Engine version: 3.42
Check dir /Users/cy/workspace/opencv-master/outputs/build_service_armeabi-v7a (create: True, clean: True)
=====
===== Building library for armeabi-v7a (arm-linux-androideabi-4.9)
=====
Executing: ['cmake', '-GNinja', "-DOPENCV_EXTRA_MODULES_PATH='/Users/cy/workspace/opencv-master/outputs/stork'", '-DBUILD_TESTS=ON', '-DINSTALL_TESTS=ON', "-DCMAKE_TOOLCHAIN_FILE='/Users/cy/mytools/android-ndk-r18/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='c++_static'", "-DANDROID_ABI='armeabi-v7a with NEON'", "-DANDROID_TOOLCHAIN_NAME='arm-linux-androideabi-4.9'", "-DANDROID_PLATFORM_ID='2'", "-DANDROID_TOOLCHAIN='clang'", '/Users/cy/workspace/opencv-master']
Executing: cmake -GNinja -DOPENCV_EXTRA_MODULES_PATH='/Users/cy/workspace/opencv-master/outputs/stork' -DBUILD_TESTS=ON -DINSTALL_TESTS=ON -DCMAKE_TOOLCHAIN_FILE='/Users/cy/mytools/android-ndk-r18/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='c++_static' -DANDROID_ABI='armeabi-v7a with NEON' -DANDROID_TOOLCHAIN_NAME='arm-linux-androideabi-4.9' -DANDROID_PLATFORM_ID='2' -DANDROID_TOOLCHAIN='clang' /Users/cy/workspace/opencv-master
-- ANDROID_PLATFORM not set. Defaulting to minimum supported version
16.
-- Check for working CXX compiler: /Users/cy/mytools/android-ndk-r18/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
-- Check for working CXX compiler: /Users/cy/mytools/android-ndk-r18/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- 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: /Users/cy/mytools/android-ndk-r18/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
-- Check for working C compiler: /Users/cy/mytools/android-ndk-r18/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- 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.10", minimum ...
...