Ask Your Question
0

failed to build through the scripte of the platforms/android/build_sdk.py

asked 2018-08-03 21:56:17 -0600

foo gravatar image

updated 2018-08-04 00:07:47 -0600

berak gravatar image

../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 ...
(more)
edit retag flag offensive close merge delete

Comments

...

CMake Error at cmake/android/android_gradle_projects.cmake:1 (message):


  Android gradle-based build/projects are not supported in this version of
  OpenCV.

  You need to downgrade Android SDK Tools to version 25.2.5.

  Details: https://github.com/opencv/opencv/issues/8460
berak gravatar imageberak ( 2018-08-04 00:10:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-08-07 14:44:04 -0600

mariusz gravatar image

Do yo know when latest build tools 27.0.3 and gradle will be supported?

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-08-03 21:56:17 -0600

Seen: 648 times

Last updated: Aug 07 '18