Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android compilation fails with opencv #1144

Open
osklars opened this issue Jun 8, 2020 · 54 comments
Open

Android compilation fails with opencv #1144

osklars opened this issue Jun 8, 2020 · 54 comments

Comments

@osklars
Copy link

osklars commented Jun 8, 2020

Versions

  • Python: 3.8.2
  • OS: Windows WSL: Ubuntu 20.04 LTS
  • Buildozer: 1.2.0

Description

Since I got compilation errors trying to compile my large kivy app with many dependencies to android, I created a minimal example that uses numpy and opencv. This very simple app also fails to compile at the same point:

-- Android: fixup -g compiler option from Android toolchain
-- Update variable ANDROID_SDK from environment: /home/oskar/.buildozer/android/platform/android-sdk
-- Android SDK Tools: ver. 2.0 (description: 'Android SDK Command-line Tools')
-- Android SDK Build Tools: ver. 30.0.0-rc4 (subdir 30.0.0-rc4 from 30.0.0-rc4)
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
  Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

  Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
  building them
Call Stack (most recent call first):
  CMakeLists.txt:780 (include)


-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeError.log".


  STDERR:

It seems like the opencv recipe is dependent on SDK Tools (revision 14 or higher), which is deprecated since 2017 when it was replaced by SDK command-line tools.

My minimal example looks like this:

import numpy as np
import cv2
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.image import Image

class TestApp(App):
    def build(self):
        a = np.random.random((100,100))*255
        cv2.imwrite("img.png", a)
        layout = BoxLayout()
        layout.add_widget(Image(source='img.png'))
        layout.add_widget(Button(text='Hello World'))
        return layout

TestApp().run()

buildozer.spec

Command:

buildozer android debug

Spec file:

[app]

# (str) Title of your application
title = My Application

# (str) Package name
package.name = myapp

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3, kivy, numpy, opencv

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
#garden_requirements =

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = portrait

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.9.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
#android.permissions = INTERNET

# (int) Target Android API, should be as high as possible.
#android.api = 27

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 19b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 21

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
# android.accept_sdk_license = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (str) Android app theme, default is ok for Kivy-based app
# android.apptheme = "@android:style/Theme.NoTitleBar"

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
# see https://developer.android.com/studio/write/java8-support for further information
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"

# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
# please enclose in double quotes 
# e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
#android.add_gradle_repositories =

# (list) packaging options to add 
# see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes 
# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_gradle_repositories =

# (list) Java classes to add as activities to the manifest.
#android.add_activities = com.example.ExampleActivity

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arm64_v8a = libs/android-v8/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a

# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
# android.numeric_version = 1

#
# Python for android (p4a) specific
#

# (str) python-for-android fork to use, defaults to upstream (kivy)
#p4a.fork = kivy

# (str) python-for-android branch to use, defaults to master
#p4a.branch = master

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =


#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
# build_dir = ./.buildozer

# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#


#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Logs

oskar@LAPTOP-KNH8O2TQ:/mnt/c/Users/loska/Desktop/test_app$ buildozer android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.7 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
* master 1b3b0e3f [origin/master] Merge pull request #2225 from kivy/release-2020.06.02
# Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /home/oskar/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/oskar/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /home/oskar/.buildozer/android/platform/android-ndk-r19c
# Installing/updating SDK platform tools if necessary
# Run '/home/oskar/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --sdk_root=/home/oskar/.buildozer/android/platform/android-sdk platform-tools'
# Cwd /home/oskar/.buildozer/android/platform/android-sdk
[=======================================] 100% Computing updates...
# Run '/home/oskar/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --sdk_root=/home/oskar/.buildozer/android/platform/android-sdk --update'
# Cwd /home/oskar/.buildozer/android/platform/android-sdk
[=======================================] 100% Computing updates...
# Updating SDK build tools if necessary
# Run '/home/oskar/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --sdk_root=/home/oskar/.buildozer/android/platform/android-sdk --list'
# Cwd /home/oskar/.buildozer/android/platform/android-sdk
Installed packages:=====================] 100% Computing updates...
  Path                   | Version    | Description                    | Location
  -------                | -------    | -------                        | -------
  build-tools;30.0.0-rc4 | 30.0.0 rc4 | Android SDK Build-Tools 30-rc4 | build-tools/30.0.0-rc4/
  platform-tools         | 30.0.2     | Android SDK Platform-Tools     | platform-tools/
  platforms;android-27   | 3          | Android SDK Platform 27        | platforms/android-27/
  tools                  | 2.0.0      | Android SDK Tools 2            | tools/

Available Packages:
  Path                                                                                     | Version      | Description
  -------                                                                                  | -------      | -------
  add-ons;addon-google_apis-google-15                                                      | 3            | Google APIs
  add-ons;addon-google_apis-google-16                                                      | 4            | Google APIs
  add-ons;addon-google_apis-google-17                                                      | 4            | Google APIs
  add-ons;addon-google_apis-google-18                                                      | 4            | Google APIs
  add-ons;addon-google_apis-google-19                                                      | 20           | Google APIs
  add-ons;addon-google_apis-google-21                                                      | 1            | Google APIs
  add-ons;addon-google_apis-google-22                                                      | 1            | Google APIs
  add-ons;addon-google_apis-google-23                                                      | 1            | Google APIs
  add-ons;addon-google_apis-google-24                                                      | 1            | Google APIs
  build-tools;19.1.0                                                                       | 19.1.0       | Android SDK Build-Tools 19.1
  build-tools;20.0.0                                                                       | 20.0.0       | Android SDK Build-Tools 20
  build-tools;21.1.2                                                                       | 21.1.2       | Android SDK Build-Tools 21.1.2
  build-tools;22.0.1                                                                       | 22.0.1       | Android SDK Build-Tools 22.0.1
  build-tools;23.0.1                                                                       | 23.0.1       | Android SDK Build-Tools 23.0.1
  build-tools;23.0.2                                                                       | 23.0.2       | Android SDK Build-Tools 23.0.2
  build-tools;23.0.3                                                                       | 23.0.3       | Android SDK Build-Tools 23.0.3
  build-tools;24.0.0                                                                       | 24.0.0       | Android SDK Build-Tools 24
  build-tools;24.0.1                                                                       | 24.0.1       | Android SDK Build-Tools 24.0.1
  build-tools;24.0.2                                                                       | 24.0.2       | Android SDK Build-Tools 24.0.2
  build-tools;24.0.3                                                                       | 24.0.3       | Android SDK Build-Tools 24.0.3
  build-tools;25.0.0                                                                       | 25.0.0       | Android SDK Build-Tools 25
  build-tools;25.0.1                                                                       | 25.0.1       | Android SDK Build-Tools 25.0.1
  build-tools;25.0.2                                                                       | 25.0.2       | Android SDK Build-Tools 25.0.2
  build-tools;25.0.3                                                                       | 25.0.3       | Android SDK Build-Tools 25.0.3
  build-tools;26.0.0                                                                       | 26.0.0       | Android SDK Build-Tools 26
  build-tools;26.0.1                                                                       | 26.0.1       | Android SDK Build-Tools 26.0.1
  build-tools;26.0.2                                                                       | 26.0.2       | Android SDK Build-Tools 26.0.2
  build-tools;26.0.3                                                                       | 26.0.3       | Android SDK Build-Tools 26.0.3
  build-tools;27.0.0                                                                       | 27.0.0       | Android SDK Build-Tools 27
  build-tools;27.0.1                                                                       | 27.0.1       | Android SDK Build-Tools 27.0.1
  build-tools;27.0.2                                                                       | 27.0.2       | Android SDK Build-Tools 27.0.2
  build-tools;27.0.3                                                                       | 27.0.3       | Android SDK Build-Tools 27.0.3
  build-tools;28.0.0                                                                       | 28.0.0       | Android SDK Build-Tools 28
  build-tools;28.0.1                                                                       | 28.0.1       | Android SDK Build-Tools 28.0.1
  build-tools;28.0.2                                                                       | 28.0.2       | Android SDK Build-Tools 28.0.2
  build-tools;28.0.3                                                                       | 28.0.3       | Android SDK Build-Tools 28.0.3
  build-tools;29.0.0                                                                       | 29.0.0       | Android SDK Build-Tools 29
  build-tools;29.0.1                                                                       | 29.0.1       | Android SDK Build-Tools 29.0.1
  build-tools;29.0.2                                                                       | 29.0.2       | Android SDK Build-Tools 29.0.2
  build-tools;29.0.3                                                                       | 29.0.3       | Android SDK Build-Tools 29.0.3
  build-tools;30.0.0-rc1                                                                   | 30.0.0 rc1   | Android SDK Build-Tools 30-rc1
  build-tools;30.0.0-rc2                                                                   | 30.0.0 rc2   | Android SDK Build-Tools 30-rc2
  build-tools;30.0.0-rc4                                                                   | 30.0.0 rc4   | Android SDK Build-Tools 30-rc4
  cmake;3.10.2.4988404                                                                     | 3.10.2       | CMake 3.10.2.4988404
  cmake;3.6.4111459                                                                        | 3.6.4111459  | CMake 3.6.4111459
  cmdline-tools;1.0                                                                        | 1.0          | Android SDK Command-line Tools
  cmdline-tools;2.0                                                                        | 2.0          | Android SDK Command-line Tools
  cmdline-tools;latest                                                                     | 2.0          | Android SDK Command-line Tools (latest)
  emulator                                                                                 | 30.0.12      | Android Emulator
  extras;android;m2repository                                                              | 47.0.0       | Android Support Repository
  extras;google;auto                                                                       | 1.1          | Android Auto Desktop Head Unit emulator
  extras;google;google_play_services                                                       | 49           | Google Play services
  extras;google;instantapps                                                                | 1.9.0        | Google Play Instant Development SDK
  extras;google;m2repository                                                               | 58           | Google Repository
  extras;google;market_apk_expansion                                                       | 1            | Google Play APK Expansion library
  extras;google;market_licensing                                                           | 1            | Google Play Licensing Library
  extras;google;simulators                                                                 | 1            | Android Auto API Simulators
  extras;google;webdriver                                                                  | 2            | Google Web Driver
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0        | 1            | Solver for ConstraintLayout 1.0.0
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha4 | 1            | com.android.support.constraint:constraint-layout-solver:1.0.0-alpha4
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha8 | 1            | Solver for ConstraintLayout 1.0.0-alpha8
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta1  | 1            | Solver for ConstraintLayout 1.0.0-beta1
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta2  | 1            | Solver for ConstraintLayout 1.0.0-beta2
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta3  | 1            | Solver for ConstraintLayout 1.0.0-beta3
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta4  | 1            | Solver for ConstraintLayout 1.0.0-beta4
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta5  | 1            | Solver for ConstraintLayout 1.0.0-beta5
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1        | 1            | Solver for ConstraintLayout 1.0.1
  extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2        | 1            | Solver for ConstraintLayout 1.0.2
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0               | 1            | ConstraintLayout for Android 1.0.0
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha4        | 1            | com.android.support.constraint:constraint-layout:1.0.0-alpha4
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha8        | 1            | ConstraintLayout for Android 1.0.0-alpha8
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta1         | 1            | ConstraintLayout for Android 1.0.0-beta1
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta2         | 1            | ConstraintLayout for Android 1.0.0-beta2
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta3         | 1            | ConstraintLayout for Android 1.0.0-beta3
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta4         | 1            | ConstraintLayout for Android 1.0.0-beta4
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta5         | 1            | ConstraintLayout for Android 1.0.0-beta5
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1               | 1            | ConstraintLayout for Android 1.0.1
  extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2               | 1            | ConstraintLayout for Android 1.0.2
  ndk-bundle                                                                               | 21.2.6472646 | NDK
  ndk;16.1.4479499                                                                         | 16.1.4479499 | NDK (Side by side) 16.1.4479499
  ndk;17.2.4988734                                                                         | 17.2.4988734 | NDK (Side by side) 17.2.4988734
  ndk;18.1.5063045                                                                         | 18.1.5063045 | NDK (Side by side) 18.1.5063045
  ndk;19.2.5345600                                                                         | 19.2.5345600 | NDK (Side by side) 19.2.5345600
  ndk;20.0.5594570                                                                         | 20.0.5594570 | NDK (Side by side) 20.0.5594570
  ndk;20.1.5948944                                                                         | 20.1.5948944 | NDK (Side by side) 20.1.5948944
  ndk;21.0.6113669                                                                         | 21.0.6113669 | NDK (Side by side) 21.0.6113669
  ndk;21.1.6352462                                                                         | 21.1.6352462 | NDK (Side by side) 21.1.6352462
  ndk;21.2.6472646                                                                         | 21.2.6472646 | NDK (Side by side) 21.2.6472646
  patcher;v4                                                                               | 1            | SDK Patch Applier v4
  platform-tools                                                                           | 30.0.2       | Android SDK Platform-Tools
  platforms;android-10                                                                     | 2            | Android SDK Platform 10
  platforms;android-11                                                                     | 2            | Android SDK Platform 11
  platforms;android-12                                                                     | 3            | Android SDK Platform 12
  platforms;android-13                                                                     | 1            | Android SDK Platform 13
  platforms;android-14                                                                     | 4            | Android SDK Platform 14
  platforms;android-15                                                                     | 5            | Android SDK Platform 15
  platforms;android-16                                                                     | 5            | Android SDK Platform 16
  platforms;android-17                                                                     | 3            | Android SDK Platform 17
  platforms;android-18                                                                     | 3            | Android SDK Platform 18
  platforms;android-19                                                                     | 4            | Android SDK Platform 19
  platforms;android-20                                                                     | 2            | Android SDK Platform 20
  platforms;android-21                                                                     | 2            | Android SDK Platform 21
  platforms;android-22                                                                     | 2            | Android SDK Platform 22
  platforms;android-23                                                                     | 3            | Android SDK Platform 23
  platforms;android-24                                                                     | 2            | Android SDK Platform 24
  platforms;android-25                                                                     | 3            | Android SDK Platform 25
  platforms;android-26                                                                     | 2            | Android SDK Platform 26
  platforms;android-27                                                                     | 3            | Android SDK Platform 27
  platforms;android-28                                                                     | 6            | Android SDK Platform 28
  platforms;android-29                                                                     | 4            | Android SDK Platform 29
  platforms;android-7                                                                      | 3            | Android SDK Platform 7
  platforms;android-8                                                                      | 3            | Android SDK Platform 8
  platforms;android-9                                                                      | 2            | Android SDK Platform 9
  platforms;android-R                                                                      | 4            | Android SDK Platform R
  skiaparser;1                                                                             | 1            | Skia Parser Server
  sources;android-15                                                                       | 2            | Sources for Android 15
  sources;android-16                                                                       | 2            | Sources for Android 16
  sources;android-17                                                                       | 1            | Sources for Android 17
  sources;android-18                                                                       | 1            | Sources for Android 18
  sources;android-19                                                                       | 2            | Sources for Android 19
  sources;android-20                                                                       | 1            | Sources for Android 20
  sources;android-21                                                                       | 1            | Sources for Android 21
  sources;android-22                                                                       | 1            | Sources for Android 22
  sources;android-23                                                                       | 1            | Sources for Android 23
  sources;android-24                                                                       | 1            | Sources for Android 24
  sources;android-25                                                                       | 1            | Sources for Android 25
  sources;android-26                                                                       | 1            | Sources for Android 26
  sources;android-27                                                                       | 1            | Sources for Android 27
  sources;android-28                                                                       | 1            | Sources for Android 28
  sources;android-29                                                                       | 1            | Sources for Android 29
  system-images;android-10;default;armeabi-v7a                                             | 5            | ARM EABI v7a System Image
  system-images;android-10;default;x86                                                     | 5            | Intel x86 Atom System Image
  system-images;android-10;google_apis;armeabi-v7a                                         | 6            | Google APIs ARM EABI v7a System Image
  system-images;android-10;google_apis;x86                                                 | 6            | Google APIs Intel x86 Atom System Image
  system-images;android-14;default;armeabi-v7a                                             | 2            | ARM EABI v7a System Image
  system-images;android-15;default;armeabi-v7a                                             | 5            | ARM EABI v7a System Image
  system-images;android-15;default;x86                                                     | 5            | Intel x86 Atom System Image
  system-images;android-15;google_apis;armeabi-v7a                                         | 6            | Google APIs ARM EABI v7a System Image
  system-images;android-15;google_apis;x86                                                 | 6            | Google APIs Intel x86 Atom System Image
  system-images;android-16;default;armeabi-v7a                                             | 6            | ARM EABI v7a System Image
  system-images;android-16;default;mips                                                    | 1            | MIPS System Image
  system-images;android-16;default;x86                                                     | 6            | Intel x86 Atom System Image
  system-images;android-16;google_apis;armeabi-v7a                                         | 6            | Google APIs ARM EABI v7a System Image
  system-images;android-16;google_apis;x86                                                 | 6            | Google APIs Intel x86 Atom System Image
  system-images;android-17;default;armeabi-v7a                                             | 6            | ARM EABI v7a System Image
  system-images;android-17;default;mips                                                    | 1            | MIPS System Image
  system-images;android-17;default;x86                                                     | 4            | Intel x86 Atom System Image
  system-images;android-17;google_apis;armeabi-v7a                                         | 6            | Google APIs ARM EABI v7a System Image
  system-images;android-17;google_apis;x86                                                 | 6            | Google APIs Intel x86 Atom System Image
  system-images;android-18;default;armeabi-v7a                                             | 5            | ARM EABI v7a System Image
  system-images;android-18;default;x86                                                     | 4            | Intel x86 Atom System Image
  system-images;android-18;google_apis;armeabi-v7a                                         | 6            | Google APIs ARM EABI v7a System Image
  system-images;android-18;google_apis;x86                                                 | 6            | Google APIs Intel x86 Atom System Image
  system-images;android-19;default;armeabi-v7a                                             | 5            | ARM EABI v7a System Image
  system-images;android-19;default;x86                                                     | 6            | Intel x86 Atom System Image
  system-images;android-19;google_apis;armeabi-v7a                                         | 39           | Google APIs ARM EABI v7a System Image
  system-images;android-19;google_apis;x86                                                 | 39           | Google APIs Intel x86 Atom System Image
  system-images;android-21;android-tv;armeabi-v7a                                          | 3            | Android TV ARM EABI v7a System Image
  system-images;android-21;android-tv;x86                                                  | 3            | Android TV Intel x86 Atom System Image
  system-images;android-21;default;armeabi-v7a                                             | 4            | ARM EABI v7a System Image
  system-images;android-21;default;x86                                                     | 5            | Intel x86 Atom System Image
  system-images;android-21;default;x86_64                                                  | 5            | Intel x86 Atom_64 System Image
  system-images;android-21;google_apis;armeabi-v7a                                         | 31           | Google APIs ARM EABI v7a System Image
  system-images;android-21;google_apis;x86                                                 | 31           | Google APIs Intel x86 Atom System Image
  system-images;android-21;google_apis;x86_64                                              | 31           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-22;android-tv;x86                                                  | 3            | Android TV Intel x86 Atom System Image
  system-images;android-22;default;armeabi-v7a                                             | 2            | ARM EABI v7a System Image
  system-images;android-22;default;x86                                                     | 6            | Intel x86 Atom System Image
  system-images;android-22;default;x86_64                                                  | 6            | Intel x86 Atom_64 System Image
  system-images;android-22;google_apis;armeabi-v7a                                         | 24           | Google APIs ARM EABI v7a System Image
  system-images;android-22;google_apis;x86                                                 | 25           | Google APIs Intel x86 Atom System Image
  system-images;android-22;google_apis;x86_64                                              | 25           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-23;android-tv;armeabi-v7a                                          | 12           | Android TV ARM EABI v7a System Image
  system-images;android-23;android-tv;x86                                                  | 19           | Android TV Intel x86 Atom System Image
  system-images;android-23;android-wear;armeabi-v7a                                        | 6            | Android Wear ARM EABI v7a System Image
  system-images;android-23;android-wear;x86                                                | 6            | Android Wear Intel x86 Atom System Image
  system-images;android-23;default;armeabi-v7a                                             | 6            | ARM EABI v7a System Image
  system-images;android-23;default;x86                                                     | 10           | Intel x86 Atom System Image
  system-images;android-23;default;x86_64                                                  | 10           | Intel x86 Atom_64 System Image
  system-images;android-23;google_apis;armeabi-v7a                                         | 32           | Google APIs ARM EABI v7a System Image
  system-images;android-23;google_apis;x86                                                 | 32           | Google APIs Intel x86 Atom System Image
  system-images;android-23;google_apis;x86_64                                              | 32           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-24;android-tv;x86                                                  | 21           | Android TV Intel x86 Atom System Image
  system-images;android-24;default;arm64-v8a                                               | 7            | ARM 64 v8a System Image
  system-images;android-24;default;armeabi-v7a                                             | 7            | ARM EABI v7a System Image
  system-images;android-24;default;x86                                                     | 8            | Intel x86 Atom System Image
  system-images;android-24;default;x86_64                                                  | 8            | Intel x86 Atom_64 System Image
  system-images;android-24;google_apis;arm64-v8a                                           | 26           | Google APIs ARM 64 v8a System Image
  system-images;android-24;google_apis;x86                                                 | 26           | Google APIs Intel x86 Atom System Image
  system-images;android-24;google_apis;x86_64                                              | 26           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-24;google_apis_playstore;x86                                       | 19           | Google Play Intel x86 Atom System Image
  system-images;android-25;android-tv;x86                                                  | 15           | Android TV Intel x86 Atom System Image
  system-images;android-25;android-wear-cn;armeabi-v7a                                     | 4            | China version of Android Wear ARM EABI v7a System Image
  system-images;android-25;android-wear-cn;x86                                             | 4            | China version of Android Wear Intel x86 Atom System Image
  system-images;android-25;android-wear;armeabi-v7a                                        | 3            | Android Wear ARM EABI v7a System Image
  system-images;android-25;android-wear;x86                                                | 3            | Android Wear Intel x86 Atom System Image
  system-images;android-25;default;x86                                                     | 1            | Intel x86 Atom System Image
  system-images;android-25;default;x86_64                                                  | 1            | Intel x86 Atom_64 System Image
  system-images;android-25;google_apis;arm64-v8a                                           | 17           | Google APIs ARM 64 v8a System Image
  system-images;android-25;google_apis;armeabi-v7a                                         | 17           | Google APIs ARM EABI v7a System Image
  system-images;android-25;google_apis;x86                                                 | 17           | Google APIs Intel x86 Atom System Image
  system-images;android-25;google_apis;x86_64                                              | 17           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-25;google_apis_playstore;x86                                       | 9            | Google Play Intel x86 Atom System Image
  system-images;android-26;android-tv;x86                                                  | 13           | Android TV Intel x86 Atom System Image
  system-images;android-26;android-wear-cn;x86                                             | 4            | China version of Android Wear Intel x86 Atom System Image
  system-images;android-26;android-wear;x86                                                | 4            | Android Wear Intel x86 Atom System Image
  system-images;android-26;default;x86                                                     | 1            | Intel x86 Atom System Image
  system-images;android-26;default;x86_64                                                  | 1            | Intel x86 Atom_64 System Image
  system-images;android-26;google_apis;x86                                                 | 15           | Google APIs Intel x86 Atom System Image
  system-images;android-26;google_apis;x86_64                                              | 15           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-26;google_apis_playstore;x86                                       | 7            | Google Play Intel x86 Atom System Image
  system-images;android-27;android-tv;x86                                                  | 8            | Android TV Intel x86 Atom System Image
  system-images;android-27;default;x86                                                     | 1            | Intel x86 Atom System Image
  system-images;android-27;default;x86_64                                                  | 1            | Intel x86 Atom_64 System Image
  system-images;android-27;google_apis;x86                                                 | 10           | Google APIs Intel x86 Atom System Image
  system-images;android-27;google_apis_playstore;x86                                       | 3            | Google Play Intel x86 Atom System Image
  system-images;android-28;android-tv;x86                                                  | 9            | Android TV Intel x86 Atom System Image
  system-images;android-28;android-wear-cn;x86                                             | 3            | China version of Wear OS Intel x86 Atom System Image
  system-images;android-28;android-wear;x86                                                | 3            | Wear OS Intel x86 Atom System Image
  system-images;android-28;default;x86                                                     | 4            | Intel x86 Atom System Image
  system-images;android-28;default;x86_64                                                  | 4            | Intel x86 Atom_64 System Image
  system-images;android-28;google_apis;x86_64                                              | 10           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-28;google_apis_playstore;x86                                       | 9            | Google Play Intel x86 Atom System Image
  system-images;android-28;google_apis_playstore;x86_64                                    | 8            | Google Play Intel x86 Atom_64 System Image
  system-images;android-28;google_ndk;x86                                                  | 10           | Google X86_ARM Intel x86 Atom System Image
  system-images;android-29;default;x86                                                     | 7            | Intel x86 Atom System Image
  system-images;android-29;default;x86_64                                                  | 7            | Intel x86 Atom_64 System Image
  system-images;android-29;google_apis;x86                                                 | 10           | Google APIs Intel x86 Atom System Image
  system-images;android-29;google_apis;x86_64                                              | 10           | Google APIs Intel x86 Atom_64 System Image
  system-images;android-29;google_apis_playstore;x86                                       | 8            | Google Play Intel x86 Atom System Image
  system-images;android-29;google_apis_playstore;x86_64                                    | 8            | Google Play Intel x86 Atom_64 System Image
  system-images;android-Q;android-tv;x86                                                   | 1            | Android TV Intel x86 Atom System Image
  system-images;android-R;google_apis;x86                                                  | 4            | Google APIs Intel x86 Atom System Image
  system-images;android-R;google_apis;x86_64                                               | 4            | Google APIs Intel x86 Atom_64 System Image
  system-images;android-R;google_apis_playstore;x86                                        | 4            | Google Play Intel x86 Atom System Image
  system-images;android-R;google_apis_playstore;x86_64                                     | 4            | Google Play Intel x86 Atom_64 System Image

Available Updates:
  ID      | Installed | Available
  ------- | -------   | -------

# Check that aidl can be executed
# Search for Aidl
# Run '/home/oskar/.buildozer/android/platform/android-sdk/build-tools/30.0.0-rc4/aidl'
# Cwd None
# Downloading platform api target if necessary
# Android packages installation done.
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,numpy,opencv --arch armeabi-v7a --copy-libs --color=always --storage-dir="/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
# Cwd /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:84: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/oskar/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found a single valid recipe set: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'cython', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name myapp and requirements (python3, kivy, numpy, opencv)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'cython', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv']
[INFO]:    Dist will also contain modules (certifi) installed from pip
[INFO]:    Dist will be build in mode debug
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'cython', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv']
[INFO]:    The requirements (certifi) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes
[INFO]:    Downloading hostpython3
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> running rm -f .mark-Python-3.8.1.tgz
[INFO]:    Downloading hostpython3 from https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> running touch .mark-Python-3.8.1.tgz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading libffi
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]:    -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    -> running rm -f .mark-8fa8837.tar.gz
[INFO]:    Downloading libffi from https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    -> running touch .mark-8fa8837.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading openssl
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    -> running rm -f .mark-openssl-1.1.1f.tar.gz
[INFO]:    Downloading openssl from https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    -> running touch .mark-openssl-1.1.1f.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_image-2.0.4.tar.gz
[INFO]:    Downloading sdl2_image from https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> running touch .mark-SDL2_image-2.0.4.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_mixer-2.0.4.tar.gz
[INFO]:    Downloading sdl2_mixer from https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> running touch .mark-SDL2_mixer-2.0.4.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> running rm -f .mark-SDL2_ttf-2.0.14.tar.gz
[INFO]:    Downloading sdl2_ttf from https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> running touch .mark-SDL2_ttf-2.0.14.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sqlite3
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> running rm -f .mark-sqlite-amalgamation-3150100.zip
[INFO]:    Downloading sqlite3 from https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> running touch .mark-sqlite-amalgamation-3150100.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading python3
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> running rm -f .mark-Python-3.8.1.tgz
[INFO]:    Downloading python3 from https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> running touch .mark-Python-3.8.1.tgz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> running rm -f .mark-SDL2-2.0.9.tar.gz
[INFO]:    Downloading sdl2 from https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> running touch .mark-SDL2-2.0.9.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading setuptools
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/setuptools
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/setuptools
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-40.9.0.zip
[INFO]:    -> running rm -f .mark-setuptools-40.9.0.zip
[INFO]:    Downloading setuptools from https://pypi.python.org/packages/source/s/setuptools/setuptools-40.9.0.zip
[INFO]:    -> running touch .mark-setuptools-40.9.0.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading cython
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/cython
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/cython
[INFO]:    -> running basename https://github.com/cython/cython/archive/0.29.15.tar.gz
[INFO]:    -> running rm -f .mark-0.29.15.tar.gz
[INFO]:    Downloading cython from https://github.com/cython/cython/archive/0.29.15.tar.gz
[INFO]:    -> running touch .mark-0.29.15.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/six
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
[INFO]:    -> running rm -f .mark-six-1.10.0.tar.gz
[INFO]:    Downloading six from https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
[INFO]:    -> running touch .mark-six-1.10.0.tar.gz
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading numpy
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/numpy
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/numpy
[INFO]:    -> running basename https://pypi.python.org/packages/source/n/numpy/numpy-1.18.1.zip
[INFO]:    -> running rm -f .mark-numpy-1.18.1.zip
[INFO]:    Downloading numpy from https://pypi.python.org/packages/source/n/numpy/numpy-1.18.1.zip
[INFO]:    -> running touch .mark-numpy-1.18.1.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/pyjnius
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    -> running rm -f .mark-1.2.1.zip
[INFO]:    Downloading pyjnius from https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    -> running touch .mark-1.2.1.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/kivy
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    -> running rm -f .mark-1.11.1.zip
[INFO]:    Downloading kivy from https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    -> running touch .mark-1.11.1.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Downloading opencv
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/opencv
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/packages/opencv
[INFO]:    -> running basename https://github.com/opencv/opencv/archive/4.0.1.zip
[INFO]:    -> running rm -f .mark-4.0.1.zip
[INFO]:    Downloading opencv from https://github.com/opencv/opencv/archive/4.0.1.zip
[INFO]:    -> running touch .mark-4.0.1.zip
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop
[INFO]:    -> running mv Python-3.8.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking libffi for armeabi-v7a
[INFO]:    -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv libffi-8fa88373a1d433c675b11200ccd58418e91f81e4 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking openssl for armeabi-v7a
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv openssl-1.1.1f /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running mv SDL2_image-2.0.4 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_image
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running mv SDL2_mixer-2.0.4 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_mixer
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running mv SDL2_ttf-2.0.14 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_ttf
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sqlite3 for armeabi-v7a
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv sqlite-amalgamation-3150100 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21/sqlite3
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking python3 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv Python-3.8.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running mv SDL2-2.0.9 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking setuptools for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-40.9.0.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/setuptools/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv setuptools-40.9.0 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/setuptools/armeabi-v7a__ndk_target_21/setuptools
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking cython for armeabi-v7a
[INFO]:    -> running basename https://github.com/cython/cython/archive/0.29.15.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/cython/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv cython-0.29.15 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/cython/armeabi-v7a__ndk_target_21/cython
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv six-1.10.0 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21/six
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking numpy for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/n/numpy/numpy-1.18.1.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv numpy-1.18.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv pyjnius-1.2.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    -> running rm -rf /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    -> running cp -a /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/src /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platfo...(and 87 more)
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv kivy-1.11.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking opencv for armeabi-v7a
[INFO]:    -> running basename https://github.com/opencv/opencv/archive/4.0.1.zip
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21
[INFO]:    -> running mv opencv-4.0.1 /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3 for armeabi-v7a
[INFO]:    hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for hostpython3[armeabi-v7a]
[INFO]:    Applying patch patches/pyconfig_detection.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3 -p1 -i /mnt/c/Users/loska/Desktop/test_app...(and 117 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/.patched
[INFO]:    Prebuilding libffi for armeabi-v7a
[INFO]:    libffi has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for libffi[armeabi-v7a]
[INFO]:    Applying patch remove-version-info.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi -p1 -i /mnt/c/Users/loska/Desktop...(and 114 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.patched
[INFO]:    Prebuilding openssl for armeabi-v7a
[INFO]:    openssl has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    Applying patch toggle_jpg_png_webp.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_image -p1 -i /mnt/c/Users/loska/Desktop/test_app/.buildo...(and 101 more)
[INFO]:    Applying patch extra_cflags.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_image -p1 -i /mnt/c/Users/loska/Desktop/test_app/.buildo...(and 94 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_image/.patched
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    Applying patch toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_mixer -p1 -i /mnt/c/Users/loska/Desktop/test_app/.buildo...(and 113 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_mixer/.patched
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sqlite3 for armeabi-v7a
[INFO]:    sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3 for armeabi-v7a
[INFO]:    python3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python3[armeabi-v7a]
[INFO]:    Applying patch patches/pyconfig_detection.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3 -p1 -i /mnt/c/Users/loska/Deskt...(and 124 more)
[INFO]:    Applying patch patches/py3.8.1.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3 -p1 -i /mnt/c/Users/loska/Deskt...(and 113 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/.patched
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding setuptools for armeabi-v7a
[INFO]:    setuptools has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding cython for armeabi-v7a
[INFO]:    cython has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding numpy for armeabi-v7a
[INFO]:    numpy has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for numpy[armeabi-v7a]
[INFO]:    Applying patch patches/add_libm_explicitly_to_build.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy -p1 -i /mnt/c/Users/loska/Desktop/t...(and 128 more)
[INFO]:    Applying patch patches/do_not_use_system_libs.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy -p1 -i /mnt/c/Users/loska/Desktop/t...(and 122 more)
[INFO]:    Applying patch patches/remove_unittest_call.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy -p1 -i /mnt/c/Users/loska/Desktop/t...(and 120 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/.patched
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    Applying patch sdl2_jnienv_getter.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius -p1 -i /mnt/c/Users/loska/...(and 121 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius/.patched
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding opencv for armeabi-v7a
[INFO]:    opencv has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for opencv[armeabi-v7a]
[INFO]:    Applying patch patches/p4a_build.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv -p1 -i /mnt/c/Users/loska/Desktop...(and 112 more)
[INFO]:    -> running touch /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/.patched
[INFO]:    # Building recipes
[INFO]:    Building hostpython3 for armeabi-v7a
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build
[INFO]:    -> running configure
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3
[INFO]:    -> running make -j 4 -C /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build
[INFO]:    -> running cp /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python.exe /mnt/c/Users/loska/Desktop/...(and 126 more)
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building libffi for armeabi-v7a
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
[INFO]:    -> running autogen.sh
[INFO]:    -> running autoreconf -vif
[INFO]:    -> running configure --host=arm-linux-androideabi --prefix=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libf...(and 37 more)
[INFO]:    -> running make -j 4 libffi.la
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    -> running cp /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.libs/libffi.so /mnt/c/Users/loska/Desktop...(and 96 more)
[INFO]:    Building openssl for armeabi-v7a
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1
[INFO]:    -> running perl Configure shared no-dso no-asm android-arm -D__ANDROID_API__=21
[INFO]:    Applying patch disable-sover.patch
[INFO]:    -> running patch -t -d /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1 -p1 -i /mnt/c/Users/loska/De...(and 114 more)
[INFO]:    -> running make build_libs
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    -> running cp /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so /mnt/c/Users/loska/De...(and 261 more)
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building sqlite3 for armeabi-v7a
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21/sqlite3
[INFO]:    -> running ndk-build V=1 NDK_DEBUG=1 APP_PLATFORM=android-21 APP_ABI=armeabi-v7a
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building python3 for armeabi-v7a
[WARNING]: lld not found, linking without it. Consider installing lld if linker errors occur.
[INFO]:    Activating flags for sqlite3
[INFO]:    Activating flags for libffi
[INFO]:    Activating flags for openssl
[INFO]:    Activating flags for android's zlib
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build
[INFO]:    -> running configure --host=arm-linux-androideabi --build=x86_64-pc-linux-gnu --enable-shared --enable-ipv6 ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no --without-ensurepip ac_cv_little_endian_do...(and 215 more)
[INFO]:    -> running make all -j 4 INSTSONAME=libpython3.8m.so
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running ndk-build V=1 NDK_DEBUG=1
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building setuptools for armeabi-v7a
[INFO]:    setuptools apparently isn't already in site-packages
[INFO]:    Installing setuptools into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/setuptools/armeabi-v7a__ndk_target_21/setuptools
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build --ins...(and 26 more)
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building cython for armeabi-v7a
[INFO]:    cython apparently isn't already in site-packages
[INFO]:    Building compiled components in cython
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/cython/armeabi-v7a__ndk_target_21/cython
[INFO]:    -> running python3 setup.py clean --all
[INFO]:    -> running python3 setup.py build_ext -v
[INFO]:    -> running find build/lib.linux-x86_64-3.8 -name "*.o" -exec arm-linux-androideabi-strip --strip-unneeded {} ;
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Installing cython into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/cython/armeabi-v7a__ndk_target_21/cython
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    Rebuilding compiled components in cython
[INFO]:    -> running python3 setup.py clean --all
[INFO]:    -> running python3 setup.py build_ext -v
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build --ins...(and 26 more)
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building six for armeabi-v7a
[INFO]:    six apparently isn't already in site-packages
[INFO]:    Installing six into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21/six
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building numpy for armeabi-v7a
[INFO]:    numpy apparently isn't already in site-packages
[INFO]:    Building compiled components in numpy
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy
[INFO]:    -> running python3 setup.py build_ext -v -j 4
[INFO]:    -> running find build/lib.linux-x86_64-3.8 -name "*.o" -exec arm-linux-androideabi-strip --strip-unneeded {} ;
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Installing numpy into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building pyjnius for armeabi-v7a
[INFO]:    jnius apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in pyjnius
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    -> running python3 -c import sys; print(sys.path)
[INFO]:    Trying first build of pyjnius to get cython files: this is expected to fail
[INFO]:    -> running python3 setup.py build_ext -v
           working: error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1                                                                     Exception in thread background thread for pid 28221:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 1662, in wrap
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2606, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2304, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

  STDOUT:
warning: [options] bootstrap class path not set in conjunction with -source 7
1 warning
running build_ext
building 'jnius' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/jnius
/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -D__ANDROID_API__=21 -I/home/oskar/.buildozer/android/platform/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.8 -fPIC -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c jnius/jnius.c -o build/temp.linux-x86_64-3.8/jnius/jnius.o
clang: error: no such file or directory: 'jnius/jnius.c'
clang: error: no input files
error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1


  STDERR:

[INFO]:    pyjnius first build failed (as expected)
[INFO]:    Running cython where appropriate
[INFO]:    Cythonize jnius/jnius.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./jnius/jnius.pyx

[INFO]:    -> running python3 setup.py build_ext -v
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    Stripping object files
[INFO]:    -> running find . -iname *.so -exec /usr/bin/echo {} ;
[INFO]:    -> running find . -iname *.so -exec arm-linux-androideabi-strip --strip-unneeded {} ;
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Installing pyjnius into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building android for armeabi-v7a
[INFO]:    android apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in android
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    -> running python3 -c import sys; print(sys.path)
[INFO]:    Trying first build of android to get cython files: this is expected to fail
[INFO]:    -> running python3 setup.py build_ext -v
           working: error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1                                                                     Exception in thread background thread for pid 28348:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 1662, in wrap
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2606, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2304, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

  STDOUT:
running build_ext
building 'android._android' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/android
/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -D__ANDROID_API__=21 -I/home/oskar/.buildozer/android/platform/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.8 -fPIC -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c android/_android.c -o build/temp.linux-x86_64-3.8/android/_android.o
clang: error: no such file or directory: 'android/_android.c'
clang: error: no input files
error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1


  STDERR:

[INFO]:    android first build failed (as expected)
[INFO]:    Running cython where appropriate
[INFO]:    Cythonize android/_android.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./android/_android.pyx

[INFO]:    Cythonize android/_android_billing.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./android/_android_billing.pyx
[INFO]:    Cythonize android/_android_sound.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./android/_android_sound.pyx
[INFO]:    -> running python3 setup.py build_ext -v
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    Stripping object files
[INFO]:    -> running find . -iname *.so -exec /usr/bin/echo {} ;
[INFO]:    -> running find . -iname *.so -exec arm-linux-androideabi-strip --strip-unneeded {} ;
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Installing android into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building kivy for armeabi-v7a
[INFO]:    kivy apparently isn't already in site-packages
[INFO]:    Cythonizing anything necessary in kivy
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    -> running python3 -c import sys; print(sys.path)
[INFO]:    Trying first build of kivy to get cython files: this is expected to fail
[INFO]:    -> running python3 setup.py build_ext -v
           working:  error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1                                                                    Exception in thread background thread for pid 28432:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 1662, in wrap
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2606, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2304, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v

  STDOUT:
Using setuptools
Environ change use_sdl2 -> True
Not using cython on android
Using this graphics system: OpenGL ES 2
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

b"Package sdl2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `sdl2.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'sdl2' found\nPackage SDL2_ttf was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_ttf.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_ttf' found\nPackage SDL2_image was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_image.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_image' found\nPackage SDL2_mixer was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_mixer.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'SDL2_mixer' found\n"

SDL2: found SDL header at /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL/include/SDL.h
SDL2: found SDL_mixer header at /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_mixer/SDL_mixer.h
SDL2: found SDL_ttf header at /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_ttf/SDL_ttf.h
SDL2: found SDL_image header at /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL2_image/SDL_image.h
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
running build_ext
Build configuration is:
 * use_rpi = 0
 * use_egl = 0
 * use_opengl_es2 = 1
 * use_opengl_mock = 0
 * use_sdl2 = 1
 * use_pangoft2 = 0
 * use_ios = 0
 * use_android = 1
 * use_mesagl = 0
 * use_x11 = 0
 * use_wayland = 0
 * use_gstreamer = 0
 * use_avfoundation = 0
 * use_osx_frameworks = 0
 * debug_gl = 0
 * debug = False
Updated kivy/include/config.h
Updated kivy/include/config.pxi
Updated kivy/setupconfig.py
Detected compiler is unix
building 'kivy._event' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/kivy
/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DANDROID -D__ANDROID_API__=21 -I/home/oskar/.buildozer/android/platform/android-ndk-r19c/sysroot/usr/include/arm-linux-androideabi -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.8 -fPIC -Ikivy/include -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c kivy/_event.c -o build/temp.linux-x86_64-3.8/kivy/_event.o
clang: error: no such file or directory: 'kivy/_event.c'
clang: error: no input files
 error: command '/home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit status 1


  STDERR:

[INFO]:    kivy first build failed (as expected)
[INFO]:    Running cython where appropriate
[INFO]:    Cythonize kivy/properties.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/properties.pyx

[INFO]:    Cythonize kivy/weakproxy.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/weakproxy.pyx
[INFO]:    Cythonize kivy/_clock.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/_clock.pyx
[INFO]:    Cythonize kivy/_event.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/_event.pyx
[INFO]:    Cythonize kivy/core/audio/audio_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/audio/audio_sdl2.pyx
[INFO]:    Cythonize kivy/core/camera/camera_avfoundation.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/camera/camera_avfoundation.pyx
[INFO]:    Cythonize kivy/core/clipboard/_clipboard_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/clipboard/_clipboard_sdl2.pyx
[INFO]:    Cythonize kivy/core/image/img_imageio.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/image/img_imageio.pyx
[INFO]:    Cythonize kivy/core/image/_img_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/image/_img_sdl2.pyx
[INFO]:    Cythonize kivy/core/text/text_layout.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/text/text_layout.pyx
[INFO]:    Cythonize kivy/core/text/_text_pango.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/text/_text_pango.pyx
[INFO]:    Cythonize kivy/core/text/_text_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/text/_text_sdl2.pyx
[INFO]:    Cythonize kivy/core/window/window_info.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/window/window_info.pyx
[INFO]:    Cythonize kivy/core/window/_window_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/core/window/_window_sdl2.pyx
[INFO]:    Cythonize kivy/graphics/buffer.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/buffer.pyx
[INFO]:    Cythonize kivy/graphics/cgl.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl.pyx
[INFO]:    Cythonize kivy/graphics/compiler.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/compiler.pyx
[INFO]:    Cythonize kivy/graphics/context.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/context.pyx
[INFO]:    Cythonize kivy/graphics/context_instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/context_instructions.pyx
[INFO]:    Cythonize kivy/graphics/fbo.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/fbo.pyx
[INFO]:    Cythonize kivy/graphics/gl_instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/gl_instructions.pyx
[INFO]:    Cythonize kivy/graphics/instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/instructions.pyx
[INFO]:    Cythonize kivy/graphics/opengl.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/opengl.pyx
[INFO]:    Cythonize kivy/graphics/opengl_utils.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/opengl_utils.pyx
[INFO]:    Cythonize kivy/graphics/scissor_instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/scissor_instructions.pyx
[INFO]:    Cythonize kivy/graphics/shader.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/shader.pyx
[INFO]:    Cythonize kivy/graphics/stencil_instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/stencil_instructions.pyx
[INFO]:    Cythonize kivy/graphics/svg.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/svg.pyx
[INFO]:    Cythonize kivy/graphics/tesselator.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/tesselator.pyx
[INFO]:    Cythonize kivy/graphics/texture.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/texture.pyx
[INFO]:    Cythonize kivy/graphics/transformation.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/transformation.pyx
[INFO]:    Cythonize kivy/graphics/vbo.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/vbo.pyx
[INFO]:    Cythonize kivy/graphics/vertex.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/vertex.pyx
[INFO]:    Cythonize kivy/graphics/vertex_instructions.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/vertex_instructions.pyx
[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_debug.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl_backend/cgl_debug.pyx
[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_gl.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl_backend/cgl_gl.pyx
[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_glew.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl_backend/cgl_glew.pyx
[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_mock.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl_backend/cgl_mock.pyx
[INFO]:    Cythonize kivy/graphics/cgl_backend/cgl_sdl2.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/graphics/cgl_backend/cgl_sdl2.pyx
[INFO]:    Cythonize kivy/lib/gstplayer/_gstplayer.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/lib/gstplayer/_gstplayer.pyx
[INFO]:    Cythonize kivy/lib/vidcore_lite/bcm.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/lib/vidcore_lite/bcm.pyx
[INFO]:    Cythonize kivy/lib/vidcore_lite/egl.pyx
[INFO]:    -> running python3 -m Cython.Build.Cythonize ./kivy/lib/vidcore_lite/egl.pyx
[INFO]:    -> directory context .
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    -> running python3 setup.py build_ext -v
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    Stripping object files
[INFO]:    -> running find . -iname *.so -exec /usr/bin/echo {} ;
[INFO]:    -> running find . -iname *.so -exec arm-linux-androideabi-strip --strip-unneeded {} ;
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Installing kivy into site-packages
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21/kivy
[INFO]:    -> running python3 setup.py install -O2 --root=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
[INFO]:    <- directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android
[INFO]:    Building opencv for armeabi-v7a
[INFO]:    -> running mkdir -p /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build
[INFO]:    -> directory context /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build
[INFO]:    -> running cmake -DP4A=ON -DANDROID_ABI=armeabi-v7a -DANDROID_STANDALONE_TOOLCHAIN=/home/oskar/.buildozer/android/platform/android-ndk-r19c -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_EXECUTABLE=/home/...(and 2024 more)
           working: See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeError.log".                               Exception in thread background thread for pid 29054:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 1662, in wrap
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2606, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 2304, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/cmake -DP4A=ON -DANDROID_ABI=armeabi-v7a -DANDROID_STANDALONE_TOOLCHAIN=/home/oskar/.buildozer/android/platform/android-ndk-r19c -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_EXECUTABLE=/home/oskar/.buildozer/android/platform/android-sdk/tools/android -DCMAKE_TOOLCHAIN_FILE=/home/oskar/.buildozer/android/platform/android-ndk-r19c/build/cmake/android.toolchain.cmake '-DCMAKE_SHARED_LINKER_FLAGS=-L/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build -lpython3.8m' -DBUILD_WITH_STANDALONE_TOOLCHAIN=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_java_bindings_generator=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DENABLE_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_OPENCV_PYTHON3=ON -DBUILD_OPENCV_PYTHON2=OFF -DOPENCV_SKIP_PYTHON_LOADER=ON -DOPENCV_PYTHON3_INSTALL_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp -DPYTHON_DEFAULT_EXECUTABLE=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -DPYTHON3_EXECUTABLE=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -DPYTHON3_INCLUDE_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DPYTHON3_LIBRARIES=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build/libpython3.8m.so -DPYTHON3_NUMPY_INCLUDE_DIRS=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/numpy/core/include -DPYTHON3_PACKAGES_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv

  STDOUT:
-- Check for working CXX compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-- Check for working CXX compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-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: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-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
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
-- Found PythonInterp: /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 (found suitable version "3.8.1", minimum required is "3.2")
-- 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 - Success
-- 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 - Success
-- 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 - Success
-- 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_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- 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_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - 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 - Failed
-- Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CXX_MFPU_NEON - 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 - Failed
-- Performing Test HAVE_C_MFP16_FORMAT_IEEE
-- Performing Test HAVE_C_MFP16_FORMAT_IEEE - Failed
-- 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 - Success
-- 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 - 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/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a (found suitable version "1.2.7", 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 - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.1-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 - 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Success
-- 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 - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
-- 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 - Success
-- Android: fixup -g compiler option from Android toolchain
-- Update variable ANDROID_SDK from environment: /home/oskar/.buildozer/android/platform/android-sdk
-- Android SDK Tools: ver. 2.0 (description: 'Android SDK Command-line Tools')
-- Android SDK Build Tools: ver. 30.0.0-rc4 (subdir 30.0.0-rc4 from 30.0.0-rc4)
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
  Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

  Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
  building them
Call Stack (most recent call first):
  CMakeLists.txt:780 (include)


-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeError.log".


  STDERR:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in <module>
    main()
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in __init__
    getattr(self, command)(args)
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 213, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 577, in build_recipes
    recipe.build_arch(arch)
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/opencv/__init__.py", line 74, in build_arch
    shprint(sh.cmake,
  File "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
    for line in output:
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 925, in next
    self.wait()
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 849, in wait
    self.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.8/dist-packages/sh-1.13.1-py3.8.egg/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/cmake -DP4A=ON -DANDROID_ABI=armeabi-v7a -DANDROID_STANDALONE_TOOLCHAIN=/home/oskar/.buildozer/android/platform/android-ndk-r19c -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_EXECUTABLE=/home/oskar/.buildozer/android/platform/android-sdk/tools/android -DCMAKE_TOOLCHAIN_FILE=/home/oskar/.buildozer/android/platform/android-ndk-r19c/build/cmake/android.toolchain.cmake '-DCMAKE_SHARED_LINKER_FLAGS=-L/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build -lpython3.8m' -DBUILD_WITH_STANDALONE_TOOLCHAIN=ON -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_java_bindings_generator=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DENABLE_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_OPENCV_PYTHON3=ON -DBUILD_OPENCV_PYTHON2=OFF -DOPENCV_SKIP_PYTHON_LOADER=ON -DOPENCV_PYTHON3_INSTALL_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp -DPYTHON_DEFAULT_EXECUTABLE=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -DPYTHON3_EXECUTABLE=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -DPYTHON3_INCLUDE_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -DPYTHON3_LIBRARIES=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build/libpython3.8m.so -DPYTHON3_NUMPY_INCLUDE_DIRS=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/numpy/core/include -DPYTHON3_PACKAGES_PATH=/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv

  STDOUT:
-- Check for working CXX compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-- Check for working CXX compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-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: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-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
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
-- Found PythonInterp: /mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 (found suitable version "3.8.1", minimum required is "3.2")
-- 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 - Success
-- 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 - Success
-- 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 - Success
-- 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_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WINCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_C_WINCONSISTENT_MISSING_OVERRIDE - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- 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_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS
-- Performing Test HAVE_C_QUNUSED_ARGUMENTS - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - 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 - Failed
-- Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CXX_MFPU_NEON - 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 - Failed
-- Performing Test HAVE_C_MFP16_FORMAT_IEEE
-- Performing Test HAVE_C_MFP16_FORMAT_IEEE - Failed
-- 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 - Success
-- 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 - 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/oskar/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a (found suitable version "1.2.7", 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 - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.1-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 - 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 - Failed
-- 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 - Failed
-- 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 - Failed
-- 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 - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Success
-- 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 - Success
-- 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 - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Success
-- 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 - Success
-- Android: fixup -g compiler option from Android toolchain
-- Update variable ANDROID_SDK from environment: /home/oskar/.buildozer/android/platform/android-sdk
-- Android SDK Tools: ver. 2.0 (description: 'Android SDK Command-line Tools')
-- Android SDK Build Tools: ver. 30.0.0-rc4 (subdir 30.0.0-rc4 from 30.0.0-rc4)
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
  Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

  Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
  building them
Call Stack (most recent call first):
  CMakeLists.txt:780 (include)


-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeError.log".


  STDERR:

# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,numpy,opencv --arch armeabi-v7a --copy-libs --color=always --storage-dir="/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     WSL_DISTRO_NAME = 'Ubuntu-20.04'
#     NAME = 'LAPTOP-KNH8O2TQ'
#     PWD = '/mnt/c/Users/loska/Desktop/test_app'
#     LOGNAME = 'oskar'
#     HOME = '/home/oskar'
#     LANG = 'C.UTF-8'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     TERM = 'xterm-256color'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     USER = 'oskar'
#     SHLVL = '1'
#     WSLENV = ''
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     PATH = ('/home/oskar/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program '
 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.424.0_x64__79rhkp1fndgsc:/mnt/c/Program '
 'Files/Haskell/bin:/mnt/d/Haskell8.4.3/lib/extralibs/bin:/mnt/d/Haskell8.4.3/bin:/mnt/c/Program '
 'Files (x86)/Intel/iCLS Client/:/mnt/c/Program Files/Intel/iCLS '
 'Client/:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Program '
 'Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program '
 'Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files '
 '(x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program '
 'Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files '
 '(x86)/NVIDIA '
 'Corporation/PhysX/Common:/mnt/c/Windows/System32/OpenSSH/bin:/mnt/c/Program '
 'Files/dotnet/:/mnt/d/Haskell8.4.3/mingw/bin:/mnt/c/Program Files '
 '(x86)/GnuWin32/bin:/mnt/d/ArucoStuff/cpp/opencv/build/x64/vc15/bin:/mnt/c/Program '
 'Files/Git/cmd:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files '
 '(x86)/Brackets/command:/mnt/c/Android:/mnt/c/Program Files/NVIDIA '
 'Corporation/NVIDIA '
 'NvDLISR:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/loska/AppData/Local/Programs/Python/Python38/Scripts/:/mnt/c/Users/loska/AppData/Local/Programs/Python/Python38/:/mnt/c/Users/loska/AppData/Roaming/local/bin:/mnt/c/Users/loska/AppData/Local/Programs/Python/Python36/Scripts/:/mnt/c/Users/loska/AppData/Local/Programs/Python/Python36/:/mnt/c/Users/loska/AppData/Roaming/cabal/bin:/mnt/c/MinGW/bin:/mnt/c/Users/loska/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/loska/AppData/Local/Android/Sdk/emulator:/mnt/c/Users/loska/AppData/Local/Android/Sdk/cmake/3.6.4111459/bin:/mnt/c/Program '
 'Files/CMake/bin:/mnt/c/ffmpeg/bin:/mnt/c/Program Files '
 '(x86)/Gtk+/bin:/mnt/c/Program Files/erl10.3/bin:/mnt/c/Program Files '
 '(x86)/Java/jdk1.8.0_192/bin:/mnt/c/Program Files/JetBrains/PyCharm Community '
 'Edition '
 '2019.2.1/bin:/mnt/c/Users/loska/AppData/Roaming/npm:/mnt/c/Users/loska/AppData/Local/Google/Cloud '
 'SDK/google-cloud-sdk/bin:/snap/bin')
#     HOSTTYPE = 'x86_64'
#     OLDPWD = '/home/oskar'
#     _ = '/usr/local/bin/buildozer'
#     PACKAGES_PATH = '/home/oskar/.buildozer/android/packages'
#     ANDROIDSDK = '/home/oskar/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/oskar/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '27'
#     ANDROIDMINAPI = '21'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
@st-den
Copy link
Contributor

st-den commented Jun 8, 2020

Have you tried buildozer android clean? buildozer distclean? Or maybe just delete the SDK tools folder to make it redownload.

@osklars
Copy link
Author

osklars commented Jun 8, 2020

I have tried buildozer android clean and deleting the android-sdk folder with no luck.

Not sure why it would have to redownload anyways. I downloaded buildozer for the first time last week. I manage to push a working apk to my device that works fine unless it has the opencv dependency. Adding opencv to the venv, main.py and the list of requirements gives the above error. I have tried it on my friends computer with a complete Virtual Machine and not only WSL and get the same error.

We are looking into avoiding the crash by installing Android SDK Tools (deprecated since 2017: https://developer.android.com/studio/releases/sdk-tools), manually by using the sdkmanager at .buildozer/android/platform/android-sdk/tools/bin however this doesn't work either. Some help or other ideas would be appreciated.

Basically I'm trying to find whether this issue is due to buildozer, a deprecated p4a recipe or opencv themselves.

Are you able to reproduce the error?

@osklars
Copy link
Author

osklars commented Jun 8, 2020

We managed to get it to compile with some hacking.

Basically opencv(either p4a or the organization) is not compatible with the latest android sdk tools file system. Since setting the android.sdk in buildozer.spec is ignored(# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 15 #android.sdk = 20), we had to rename the cmdline-tools folder(.buildozer/android/platform/android-sdk/tools) use the sdkmanager in it to manually install the deprecated "tools" and delete the cmdline-tools folder.

Afterwards we used the sdkmanager in the new deprecated tools folder to reinstall buildtools, platform-tools and platform.

This is probably due to some hardcoded paths in opencv's compilation for android.

Maybe change the buildozer.spec file to enable an sdk-installation with the old tools instead of cmdline-tools?

@osklars
Copy link
Author

osklars commented Jun 8, 2020

Also maybe the timing needs a slight improvement, my compilation took a bit over 35mins and in the end it printed:
BUILD SUCCESSFUL in 21s

@st-den
Copy link
Contributor

st-den commented Jun 8, 2020

I use the latest SDK and have built apps with opencv multiple times successfully, and not only me. Also, the SDK is not deprecated, just the way it is packaged changed — now it is available with other stuff as a bundle called commandlinetools.

And about what I meant by redownloading, it sometimes happens that something for whatever reason ends up broken. That's why every time building fails, and you can't figure it out, it's worth cleaning the problematic platform environment (built packages etc.), or even a whole building environment (SDK etc.).

What about the 'timing', I believe it doesn't count even checking your tool set or doing tests, for example, not even talking about downloading something. The first build always takes a long time to set everything up, then it is usually no more than 30 seconds, and that's on VM.

@AndreMiras
Copy link
Member

Yes that definitely feels like an upstream issue to me as they don't seem to support command line tools yet https://github.com/opencv/opencv/blob/4.3.0/cmake/android/OpenCVDetectAndroidSDK.cmake#L176
Please take a look at their existing issue and report if there if needed. It's also possible to patch it p4a side until they take action. Pull requests are welcome 😄

@cihangoksu
Copy link

We managed to get it to compile with some hacking.

Basically opencv(either p4a or the organization) is not compatible with the latest android sdk tools file system. Since setting the android.sdk in buildozer.spec is ignored(# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 15 #android.sdk = 20), we had to rename the cmdline-tools folder(.buildozer/android/platform/android-sdk/tools) use the sdkmanager in it to manually install the deprecated "tools" and delete the cmdline-tools folder.

Afterwards we used the sdkmanager in the new deprecated tools folder to reinstall buildtools, platform-tools and platform.

This is probably due to some hardcoded paths in opencv's compilation for android.

Maybe change the buildozer.spec file to enable an sdk-installation with the old tools instead of cmdline-tools?

Dear Osklar, thanks for the recommended solution. I'm very new to kivy, and having the same issue. I tried your solution, but I still receive the same error "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer".I'm most probably skipping some steps.. Would you please open a little bit your steps, including the commands and versions for reinstalling buildtools, platform-tools and platform? Thanks a lot in advance

@osklars
Copy link
Author

osklars commented Jun 13, 2020

We managed to get it to compile with some hacking.
Basically opencv(either p4a or the organization) is not compatible with the latest android sdk tools file system. Since setting the android.sdk in buildozer.spec is ignored(# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 15 #android.sdk = 20), we had to rename the cmdline-tools folder(.buildozer/android/platform/android-sdk/tools) use the sdkmanager in it to manually install the deprecated "tools" and delete the cmdline-tools folder.
Afterwards we used the sdkmanager in the new deprecated tools folder to reinstall buildtools, platform-tools and platform.
This is probably due to some hardcoded paths in opencv's compilation for android.
Maybe change the buildozer.spec file to enable an sdk-installation with the old tools instead of cmdline-tools?

Dear Osklar, thanks for the recommended solution. I'm very new to kivy, and having the same issue. I tried your solution, but I still receive the same error "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer".I'm most probably skipping some steps.. Would you please open a little bit your steps, including the commands and versions for reinstalling buildtools, platform-tools and platform? Thanks a lot in advance

Sure cihangoksu,

so basically there is a program that comes with installing buildozer found here "~/.buildozer/android/platform/android-sdk/tools/bin" (or wherever you have buildozer installed) called sdkmanager. With this program you can change the versions of android sdk, tools and platforms, etc.

The error: "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer." hints that we need Android SDK Tools, which has been replaced with something called cmdline-tools recently. You can install Android SDK Tools using the sdkmanager as so:

./sdkmanager --install "tools"

as you can find in the list when writing:

./sdkmanager --list --include_obsolete

Running the installation may require that you first create a file called /root/.android/repositories.cfg. The issue is that all these programs inside "/.buildozer/android/platform/android-sdk/tools" are the cmdline-tools you are trying to replace with the old sdk tools, include sdkmanager that you are currently running. Therefor to be able to actually reinstall a program using the program itself you need to first rename the folder to something like "/.buildozer/android/platform/android-sdk/opencv_incompatible_tools" before running ./sdkmanager --install "tools". This will then create a new folder "~/.buildozer/android/platform/android-sdk/tools" with a new sdkmanager which can be used to install some build-tools and platform before compiling. If all done correctly you should be able to do like this to see that all the installed packages can be found by you sdkmanager:

~/.buildozer/android/platform/android-sdk/tools/bin$ sudo ./sdkmanager --list --include_obsolete
Warning: File /root/.android/repositories.cfg could not be loaded.
Installed packages:=====================] 100% Computing updates...

Path Version Description Location
emulator 30.0.12 Android Emulator emulator/
patcher;v4 1 SDK Patch Applier v4 patcher/v4/
platform-tools 30.0.2 Android SDK Platform-Tools platform-tools/
platforms;android-27 3 Android SDK Platform 27 platforms/android-27/

Installed Obsolete Packages:

Path Version Description Location
build-tools;29.0.0-rc3 29.0.0 rc3 Android SDK Build-Tools 29-rc3 build-tools/29.0.0-rc3/
tools 26.1.1 Android SDK Tools tools/

After this buildozer android debug should work fine :)

@cihangoksu
Copy link

We managed to get it to compile with some hacking.
Basically opencv(either p4a or the organization) is not compatible with the latest android sdk tools file system. Since setting the android.sdk in buildozer.spec is ignored(# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 15 #android.sdk = 20), we had to rename the cmdline-tools folder(.buildozer/android/platform/android-sdk/tools) use the sdkmanager in it to manually install the deprecated "tools" and delete the cmdline-tools folder.
Afterwards we used the sdkmanager in the new deprecated tools folder to reinstall buildtools, platform-tools and platform.
This is probably due to some hardcoded paths in opencv's compilation for android.
Maybe change the buildozer.spec file to enable an sdk-installation with the old tools instead of cmdline-tools?

Dear Osklar, thanks for the recommended solution. I'm very new to kivy, and having the same issue. I tried your solution, but I still receive the same error "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer".I'm most probably skipping some steps.. Would you please open a little bit your steps, including the commands and versions for reinstalling buildtools, platform-tools and platform? Thanks a lot in advance

Sure cihangoksu,

so basically there is a program that comes with installing buildozer found here "~/.buildozer/android/platform/android-sdk/tools/bin" (or wherever you have buildozer installed) called sdkmanager. With this program you can change the versions of android sdk, tools and platforms, etc.

The error: "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer." hints that we need Android SDK Tools, which has been replaced with something called cmdline-tools recently. You can install Android SDK Tools using the sdkmanager as so:

./sdkmanager --install "tools"

as you can find in the list when writing:

./sdkmanager --list --include_obsolete

Running the installation may require that you first create a file called /root/.android/repositories.cfg. The issue is that all these programs inside "/.buildozer/android/platform/android-sdk/tools" are the cmdline-tools you are trying to replace with the old sdk tools, include sdkmanager that you are currently running. Therefor to be able to actually reinstall a program using the program itself you need to first rename the folder to something like "/.buildozer/android/platform/android-sdk/opencv_incompatible_tools" before running ./sdkmanager --install "tools". This will then create a new folder "~/.buildozer/android/platform/android-sdk/tools" with a new sdkmanager which can be used to install some build-tools and platform before compiling. If all done correctly you should be able to do like this to see that all the installed packages can be found by you sdkmanager:

~/.buildozer/android/platform/android-sdk/tools/bin$ sudo ./sdkmanager --list --include_obsolete
Warning: File /root/.android/repositories.cfg could not be loaded.
Installed packages:=====================] 100% Computing updates...

Path Version Description Location
emulator 30.0.12 Android Emulator emulator/
patcher;v4 1 SDK Patch Applier v4 patcher/v4/
platform-tools 30.0.2 Android SDK Platform-Tools platform-tools/
platforms;android-27 3 Android SDK Platform 27 platforms/android-27/
Installed Obsolete Packages:

Path Version Description Location
build-tools;29.0.0-rc3 29.0.0 rc3 Android SDK Build-Tools 29-rc3 build-tools/29.0.0-rc3/
tools 26.1.1 Android SDK Tools tools/
After this buildozer android debug should work fine :)

You rock!! Thank you very much, for a very detailed description all clear now... I followed your steps and app opens now without any error. However, whenever I press a button to activate the camera, the app crashes and turns back to the phone's main screen. Do you think this is also opencv-relevant? (Btw I gave CAMERA permissions both in spec file and in my phone)
Thank you in advance for your help :-)

@AndreMiras
Copy link
Member

@osklars this is a bug tracker, not a help forum.
Use Discord, Stackoverflow or forum for support

@iElsha
Copy link

iElsha commented Jul 8, 2020

Hello,

Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.

As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

  1. Download cmdlines-tools from google
  2. Create a directory for the android sdk at buildozer android location:
    mkdir ~/.buildozer/android/platform/android-sdk
  3. Move the zip to this folder and unzip it
  4. Rename the folder
    mv tools old-tools
  5. Install missing dependencies & the famous tools:
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.

I hope it helps

@Abelcanc3rhack3r
Copy link

Hello,

I tried iElsha's comment. When I typed:
me@ubuntu:~/.buildozer/android/platform/android-sdk/old-tools/bin$ ./sdkmanager --install "tools"

It said:
Warning: Observed package id 'cmdline-tools;2.0' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/cmdline-tools/2.0' (Expected '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/2.0')
Warning: Observed package id 'tools' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/tools' (Expected '/home/me/.buildozer/android/platform/android-sdk/tools')
Warning: Observed package id 'tools' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/old-tools' (Expected '/home/me/.buildozer/android/platform/android-sdk/tools')
Warning: Already observed package id 'tools' in '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/tools'. Skipping duplicate at '/home/me/.buildozer/android/platform/android-sdk/old-tools'
Warning: Observed package id 'cmdline-tools;2.0' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/cmdline-tools/2.0' (Expected '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/2.0')
Warning: Observed package id 'tools' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/tools' (Expected '/home/me/.buildozer/android/platform/android-sdk/tools')
Warning: Observed package id 'tools' in inconsistent location '/home/me/.buildozer/android/platform/android-sdk/old-tools' (Expected '/home/me/.buildozer/android/platform/android-sdk/tools')
Warning: Already observed package id 'tools' in '/home/me/.buildozer/android/platform/android-sdk/cmdline-tools/tools'. Skipping duplicate at '/home/me/.buildozer/android/platform/android-sdk/old-tools'
Warning: File /home/me/.android/repositories.cfg could not be loaded.
[=======================================] 100% Computing updates...

But then nothing changed. No tools folder was installed.

What have I done wrong?
Cheers

@dineshkidd
Copy link

Hello,

Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.

As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

  1. Download cmdlines-tools from google
  2. Create a directory for the android sdk at buildozer android location:
    mkdir ~/.buildozer/android/platform/android-sdk
  3. Move the zip to this folder and unzip it
  4. Rename the folder
    mv tools old-tools
  5. Install missing dependencies & the famous tools:
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.

I hope it helps

Can u able to access the camera through opencv?

@catmasteryip
Copy link

5. sudo ./sdkmanager --sdk_root=/home//.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"

are you sure it is right to install these in the root buildozer, or just the buildozer at the app's working directory

@BlackXDragon
Copy link

BlackXDragon commented Aug 7, 2020

I'm facing this problem and none of the solutions proposed have worked for me. Please help!

I just keep getting the same error:

Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

@Wilfred-Yang
Copy link

Hi, I'm facing the same problem, too. I want to solve it by using sdkmanager, but I can't find sdkmanager in the folder of buildozer.
I can't even find the folder of android or platform in buildozer. What's wrong with my installation on buildozer? I have no idea now...

@YounGCoder09
Copy link

YounGCoder09 commented Aug 18, 2020

same issue , none of the above work around solved

@osklars is it possible for you to share image of the linux box with open cv build , i tried many ways but it didnt work

@YounGCoder09
Copy link

YounGCoder09 commented Aug 19, 2020 via email

@YounGCoder09
Copy link

@AndreMiras do you see any quick work around for this issue

@Ajayaravind0007
Copy link

I am still facing the issue.

@herbyboi
Copy link

So the solutions proposed above are all from native unix or vm right? or can i do same with a docker image?

@YounGCoder09
Copy link

YounGCoder09 commented Aug 26, 2020 via email

@BlackXDragon
Copy link

Sure cihangoksu,

so basically there is a program that comes with installing buildozer found here "~/.buildozer/android/platform/android-sdk/tools/bin" (or wherever you have buildozer installed) called sdkmanager. With this program you can change the versions of android sdk, tools and platforms, etc.

The error: "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer." hints that we need Android SDK Tools, which has been replaced with something called cmdline-tools recently. You can install Android SDK Tools using the sdkmanager as so:

./sdkmanager --install "tools"

as you can find in the list when writing:

./sdkmanager --list --include_obsolete

Running the installation may require that you first create a file called /root/.android/repositories.cfg. The issue is that all these programs inside "/.buildozer/android/platform/android-sdk/tools" are the cmdline-tools you are trying to replace with the old sdk tools, include sdkmanager that you are currently running. Therefor to be able to actually reinstall a program using the program itself you need to first rename the folder to something like "/.buildozer/android/platform/android-sdk/opencv_incompatible_tools" before running ./sdkmanager --install "tools". This will then create a new folder "~/.buildozer/android/platform/android-sdk/tools" with a new sdkmanager which can be used to install some build-tools and platform before compiling. If all done correctly you should be able to do like this to see that all the installed packages can be found by you sdkmanager:

~/.buildozer/android/platform/android-sdk/tools/bin$ sudo ./sdkmanager --list --include_obsolete
Warning: File /root/.android/repositories.cfg could not be loaded.
Installed packages:=====================] 100% Computing updates...

Path Version Description Location
emulator 30.0.12 Android Emulator emulator/
patcher;v4 1 SDK Patch Applier v4 patcher/v4/
platform-tools 30.0.2 Android SDK Platform-Tools platform-tools/
platforms;android-27 3 Android SDK Platform 27 platforms/android-27/
Installed Obsolete Packages:

Path Version Description Location
build-tools;29.0.0-rc3 29.0.0 rc3 Android SDK Build-Tools 29-rc3 build-tools/29.0.0-rc3/
tools 26.1.1 Android SDK Tools tools/
After this buildozer android debug should work fine :)

@osklars ,

I've tried following your above method, but I'm unable to get it to work. As I've never used android SDK or tools before, I'm not familiar with installation procedures and such. Could you please guide me through the steps?

@tom333
Copy link

tom333 commented Sep 9, 2020

If it can help someone, I made a Dockerfile to use as workaround. Here it is : https://github.com/tom333/mycamerai/blob/master/Dockerfile

Build it and launch it with podman
podman run -it --privileged -volume /dev/bus/usb:/dev/bus/usb --volume buildozer_home:/root/.buildozer --volume /home/moi/.android:/root/.android --volume .:/home/user/hostcwd buildozer android debug deploy run logcat

@franslott
Copy link

We managed to get it to compile with some hacking.
Basically opencv(either p4a or the organization) is not compatible with the latest android sdk tools file system. Since setting the android.sdk in buildozer.spec is ignored(# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 15 #android.sdk = 20), we had to rename the cmdline-tools folder(.buildozer/android/platform/android-sdk/tools) use the sdkmanager in it to manually install the deprecated "tools" and delete the cmdline-tools folder.
Afterwards we used the sdkmanager in the new deprecated tools folder to reinstall buildtools, platform-tools and platform.
This is probably due to some hardcoded paths in opencv's compilation for android.
Maybe change the buildozer.spec file to enable an sdk-installation with the old tools instead of cmdline-tools?

Dear Osklar, thanks for the recommended solution. I'm very new to kivy, and having the same issue. I tried your solution, but I still receive the same error "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer".I'm most probably skipping some steps.. Would you please open a little bit your steps, including the commands and versions for reinstalling buildtools, platform-tools and platform? Thanks a lot in advance

Sure cihangoksu,

so basically there is a program that comes with installing buildozer found here "~/.buildozer/android/platform/android-sdk/tools/bin" (or wherever you have buildozer installed) called sdkmanager. With this program you can change the versions of android sdk, tools and platforms, etc.

The error: "Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer." hints that we need Android SDK Tools, which has been replaced with something called cmdline-tools recently. You can install Android SDK Tools using the sdkmanager as so:

./sdkmanager --install "tools"

as you can find in the list when writing:

./sdkmanager --list --include_obsolete

Running the installation may require that you first create a file called /root/.android/repositories.cfg. The issue is that all these programs inside "/.buildozer/android/platform/android-sdk/tools" are the cmdline-tools you are trying to replace with the old sdk tools, include sdkmanager that you are currently running. Therefor to be able to actually reinstall a program using the program itself you need to first rename the folder to something like "/.buildozer/android/platform/android-sdk/opencv_incompatible_tools" before running ./sdkmanager --install "tools". This will then create a new folder "~/.buildozer/android/platform/android-sdk/tools" with a new sdkmanager which can be used to install some build-tools and platform before compiling. If all done correctly you should be able to do like this to see that all the installed packages can be found by you sdkmanager:

~/.buildozer/android/platform/android-sdk/tools/bin$ sudo ./sdkmanager --list --include_obsolete
Warning: File /root/.android/repositories.cfg could not be loaded.
Installed packages:=====================] 100% Computing updates...
Path Version Description Location
emulator 30.0.12 Android Emulator emulator/
patcher;v4 1 SDK Patch Applier v4 patcher/v4/
platform-tools 30.0.2 Android SDK Platform-Tools platform-tools/
platforms;android-27 3 Android SDK Platform 27 platforms/android-27/

Installed Obsolete Packages:
Path Version Description Location
build-tools;29.0.0-rc3 29.0.0 rc3 Android SDK Build-Tools 29-rc3 build-tools/29.0.0-rc3/
tools 26.1.1 Android SDK Tools tools/

After this buildozer android debug should work fine :)

@BlackXDragon

Apologies to bother you, is it possible you can make a small video or image instruction on the work around. I am new to the android conversion process and i have written a kivy app the uses OpenCV but have been stuck with this exact same problem for quiet a longtime now. I will greatly appreciate it.

@franslott
Copy link

Hello,

Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.

As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

1. Download [cmdlines-tools from google](https://developer.android.com/studio#cmdline-tools)

2. Create a directory for the android sdk at buildozer android location:
   `mkdir ~/.buildozer/android/platform/android-sdk`

3. Move the zip to this folder and unzip it

4. Rename the folder
   `mv tools old-tools`

5. Install missing dependencies & the famous `tools`:
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"  `
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"  `
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"`

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.

I hope it helps

@iElsha

Any possibility you can make a image based or short video instruction on how one can achieve this?I have been seating on this issue for long.

@codinghedgehog-python
Copy link

Is there any real resolution to this ? I'm staring at the same problem.

@franslott
Copy link

franslott commented Oct 22, 2020

@codinghedgehog-python

There is definitely a real solution to this, or a hack to say. i got it right using @iElsha method below. I simply modified it as follow:

  1. After the failed attempt, move to the folder /.buildozer/android/platform/android-sdk
    `

  2. rename the "tools" folder to something like "opencv_incompatible_tools"

  3. cd into the renamed folder which is now renamed "opencv_incompatible_tools"

  4. cd into "bin" of the the renamed "opencv_incompatible tools" folder such that you are now in renamed "opencv_incompatible_tools/bin", here you will find the "sdkmanager"

  5. Now run number 5 of @iElsha instruction as below, to Install missing dependencies & new tools: Note you will have to add your USERNAME of your operating system to his instruction where it says USERNAME.

  6. After that you will have a new "tools" folder in the /.buildozer/android/platform/android-sdk

  7. Now that we had used the "opencv_incompatible_tools" that we had renamed, delete it. You will only have the new downloaded "tools" folder in your /.buildozer/android/platform/android-sdk

  8. Go back and re-run the "buildozer -v android debug deploy run logcat" command, hope it works.

Hello,

Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.

As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

1. Download [cmdlines-tools from google](https://developer.android.com/studio#cmdline-tools)

2. Create a directory for the android sdk at buildozer android location:
   `mkdir ~/.buildozer/android/platform/android-sdk`

3. Move the zip to this folder and unzip it

4. Rename the folder
   `mv tools old-tools`

5. Install missing dependencies & the famous `tools`:
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"`
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"  `
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"  `
   `sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"`

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.

I hope it helps

@codinghedgehog-python
Copy link

Hi @franslott,

I keep getting the same error even after following the steps. Please see below traceback.

  STDOUT:
-- Looking for ccache - not found
-- OpenCV disables pkg-config to avoid using of host libraries. Consider using PKG_CONFIG_LIBDIR to specify target SYSROOT
-- libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.1-libjpeg-turbo
-- Android: fixup -g compiler option from Android toolchain
-- Update variable ANDROID_SDK from environment: /home/mark/.buildozer/android/platform/android-sdk
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
  Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

  Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
  building them
Call Stack (most recent call first):
  CMakeLists.txt:780 (include)


-- Configuring incomplete, errors occurred!
See also "/home/mark/frontend/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/home/mark/frontend/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build/CMakeFiles/CMakeError.log".


  STDERR:

Traceback (most recent call last):                                                                                                                                      
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in <module>
    main()
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in __init__
    getattr(self, command)(args)
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 213, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 577, in build_recipes
    recipe.build_arch(arch)
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/opencv/__init__.py", line 74, in build_arch
    shprint(sh.cmake,
  File "/home/mark/frontend/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
    for line in output:
  File "/home/mark/frontend/venv/lib/python3.8/site-packages/sh.py", line 907, in next
    self.wait()
  File "/home/mark/frontend/venv/lib/python3.8/site-packages/sh.py", line 837, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/mark/frontend/venv/lib/python3.8/site-packages/sh.py", line 861, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:  

@franslott
Copy link

@codinghedgehog-python

This is exactly the same errror i was getting, but those steps above solved it for me. Perhaps you should first delete the /.buildozer folder in the home folder and try again, and after it fails with that error, then you continue with the steps i listed above.

@codinghedgehog-python
Copy link

@franslott you can ignore the last post from me as I ran buildozer android clean and then ran the command and it worked.
Thank you.

@franslott
Copy link

@codinghedgehog-python

Awesome.

@CodinjaoftheWorld
Copy link

@codinghedgehog-python

This is exactly the same errror i was getting, but those steps above solved it for me. Perhaps you should first delete the /.buildozer folder in the home folder and try again, and after it fails with that error, then you continue with the steps i listed above.

@codinghedgehog-python - I am not able to delete .buildozer folder. Can you please let me know the command to delete the entire .buildozer directory?

Error:
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/stat_sys_warning.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ab_stacked_transparent_light_holo.9.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_volume.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/pointer_arrow_large.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_menu_selectall_holo_light.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_menu_cc_am.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_menu_always_landscape_portrait.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_menu_delete.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_holo.9.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/list_section_divider_holo_dark.9.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/progressbar_indeterminate_holo2.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/btn_rating_star_off_disabled_holo_dark.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_dialog_email.png': Permission denied
rm: cannot remove '.buildozer/android/platform/android-sdk/platforms/android-27/data/res/drawable-mdpi/ic_media_route_connecting_dark_12_mtrl.png': Permission denied
rm: cannot remove '.buildozer/android/platform/an

@codinghedgehog-python
Copy link

codinghedgehog-python commented Nov 3, 2020

@GauravSaini728 If you're on Linux just run sudo rm -rf ~/.buildozer from your home directory.

@codinghedgehog-python
Copy link

codinghedgehog-python commented Nov 4, 2020 via email

@CodinjaoftheWorld
Copy link

@codinghedgehog-python
Thanks for your response. I ran the same commnad and getting the same error of permission denied.

I have changed the name of buildozer directory and again build the buildozer folder. I did not face the same issue again but get stuck in another issue.

I am building a kivi app to capture the video from camera and apply the classification on the video feed.
I am using opencv and tensorflow libraries for classification and same are maintained in buildozer.spec file.

While building the apk file i am encountering very strange error related to functools library. Attaching the screenshot of the error and gdrive link of the entire error.

image

Error Stack: https://drive.google.com/file/d/1faPS9q3q8BY7RXZ2-rj_9HHb8XQgVybF/view?usp=sharing
buildozer.spec file: https://drive.google.com/file/d/1W631qFDyUqMdc0hqU9uj-LCI1hfx40YP/view?usp=sharing

It would be great if anyone could help me to fix this error.

@codinghedgehog-python
Copy link

@CodinjaoftheWorld Can you confirm that you're using pip for Python 3.x and not for 2.7 ?

@CodinjaoftheWorld
Copy link

@codinghedgehog-python
this is the python version in my venv- Python 3.6.9

@miguecas97
Copy link

Any updates on this? i've tried avery solution, but still get the same error

@codinghedgehog-python
Copy link

codinghedgehog-python commented Nov 7, 2020

@codinghedgehog-python
Thanks for your response. I ran the same commnad and getting the same error of permission denied.

I have changed the name of buildozer directory and again build the buildozer folder. I did not face the same issue again but get stuck in another issue.

I am building a kivi app to capture the video from camera and apply the classification on the video feed.
I am using opencv and tensorflow libraries for classification and same are maintained in buildozer.spec file.

While building the apk file i am encountering very strange error related to functools library. Attaching the screenshot of the error and gdrive link of the entire error.

image

Error Stack: https://drive.google.com/file/d/1faPS9q3q8BY7RXZ2-rj_9HHb8XQgVybF/view?usp=sharing
buildozer.spec file: https://drive.google.com/file/d/1W631qFDyUqMdc0hqU9uj-LCI1hfx40YP/view?usp=sharing

It would be great if anyone could help me to fix this error.

You've got functools twice on that requirements line in the buildozer.spec file you provided. Also if you'll be using
opencv's camera you gonna need opencv_extras recipe alongside opencv. I did at least.

Regarding to the error output you're getting. TypeError is almost always about the developer giving it the wrong thing or omitting something altogether. It complains about missing argument from what I've gathered. If you can share the relevant code block.
I suspect you're missing an argument in partial() method of the functools module but can't tell for sure without seeing
the code block.

@CodinjaoftheWorld
Copy link

@codinghedgehog-python
Thanks for your response. I ran the same commnad and getting the same error of permission denied.
I have changed the name of buildozer directory and again build the buildozer folder. I did not face the same issue again but get stuck in another issue.
I am building a kivi app to capture the video from camera and apply the classification on the video feed.
I am using opencv and tensorflow libraries for classification and same are maintained in buildozer.spec file.
While building the apk file i am encountering very strange error related to functools library. Attaching the screenshot of the error and gdrive link of the entire error.
image
Error Stack: https://drive.google.com/file/d/1faPS9q3q8BY7RXZ2-rj_9HHb8XQgVybF/view?usp=sharing
buildozer.spec file: https://drive.google.com/file/d/1W631qFDyUqMdc0hqU9uj-LCI1hfx40YP/view?usp=sharing
It would be great if anyone could help me to fix this error.

You've got functools twice on that requirements line in the buildozer.spec file you provided. Also if you'll be using
opencv's camera you gonna need opencv_extras recipe alongside opencv. I did at least.

Regarding to the error output you're getting. TypeError is almost always about the developer giving it the wrong thing or omitting something altogether. It complains about missing argument from what I've gathered. If you can share the relevant code block.
I suspect you're missing an argument in partial() method of the functools module but can't tell for sure without seeing
the code block.

Can you please share your email address? I can share the relevant code blocks with you.

@note5
Copy link

note5 commented Nov 12, 2020

Hi I have been struggling with getting opencv and buildozer working for a few days now. Is there a difference in the android sdk part or buildozer over the few month till now that may make the solutions posted here different? Please anybody help me get opencv and buildozer compile

-- Update variable ANDROID_SDK from environment: /home/i/.buildozer/android/platform/android-sdk
-- Android SDK Tools: ver. 2.0 (description: 'Android SDK Command-line Tools')
-- Android SDK Build Tools: ver. 30.0.2 (subdir 30.0.2 from 30.0.2)
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
building them
Call Stack (most recent call first):
CMakeLists.txt:780 (include)

@abhishekju06
Copy link

Please can anyone help with the issue. Exact same problem trying it out for 4days.
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.

@codinghedgehog-python
Copy link

@abhishekju06 Follow the steps shared by @franslott :

  1. Rename the folder
    mv tools old-tools

  2. Install missing dependencies & the famous tools:

   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-29"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Don't forget to replace <USERNAME> with your username otherwise the command will error out.

I know how frustrating it can be to get OpenCV to work on Android using Python. Follow the steps and it's gonna work.

@abhishekju06
Copy link

@abhishekju06 Follow the steps shared by @franslott :

  1. Rename the folder
    mv tools old-tools
  2. Install missing dependencies & the famous tools:
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-29"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
   sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Don't forget to replace <USERNAME> with your username otherwise the command will error out.

I know how frustrating it can be to get OpenCV to work on Android using Python. Follow the steps and it's gonna work.

Hi,
I am experiencing this error
sdkmanager: command not found
I have set export PATH=$PATH:~/.local/bin/ in my .bashrc
Would you please help me ??

Note:After unzipping the commandlinetools-linux-6858069_latest.zip there is a folder named cmdline-tools

@codinghedgehog-python
Copy link

@abhishekju06 Can you please confirm that you ran sudo apt install android-sdk -y ?

@abhishekju06
Copy link

abhishekju06 commented Dec 18, 2020

@abhishekju06 Can you please confirm that you ran sudo apt install android-sdk -y ?

I ran it just now
My OS is Ubuntu 18.04
android-sdk is already the newest version (25.0.0+10~18.04.2).
The following packages were automatically installed and are no longer required:
libllvm7 libllvm9 libllvm9:i386 libnvidia-cfg1-430 libnvidia-cfg1-440
libnvidia-common-430 libnvidia-common-440 libnvidia-compute-430
libnvidia-compute-430:i386 libnvidia-compute-440 libnvidia-compute-440:i386
libnvidia-decode-430 libnvidia-decode-430:i386 libnvidia-decode-440
libnvidia-decode-440:i386 libnvidia-encode-430 libnvidia-encode-430:i386
libnvidia-encode-440 libnvidia-encode-440:i386 libnvidia-extra-440
libnvidia-fbc1-430 libnvidia-fbc1-430:i386 libnvidia-fbc1-440
libnvidia-fbc1-440:i386 libnvidia-gl-430 libnvidia-gl-430:i386
libnvidia-gl-440 libnvidia-gl-440:i386 libnvidia-ifr1-430
libnvidia-ifr1-430:i386 libnvidia-ifr1-440 libnvidia-ifr1-440:i386
libsdl-ttf2.0-0 libtorrent-rasterbar9 linux-hwe-5.4-headers-5.4.0-42
linux-hwe-5.4-headers-5.4.0-45 linux-hwe-5.4-headers-5.4.0-47
linux-hwe-5.4-headers-5.4.0-48 linux-hwe-5.4-headers-5.4.0-51
linux-hwe-5.4-headers-5.4.0-52 linux-hwe-5.4-headers-5.4.0-54
nvidia-compute-utils-430 nvidia-compute-utils-440 nvidia-dkms-430
nvidia-dkms-440 nvidia-utils-430 nvidia-utils-440
xserver-xorg-video-nvidia-430 xserver-xorg-video-nvidia-440

What are the next step that I should follow to run sdkmanager?
Please help

@codinghedgehog-python
Copy link

@abhishekju06 Make sure you're running those commands from ~/.buildozer/android/platform/android-sdk/old_tools/bin as it's where sdkmanager program is located. It didn't work for me anywhere else.

@abhishekju06
Copy link

@abhishekju06 Make sure you're running those commands from ~/.buildozer/android/platform/android-sdk/old_tools/bin as it's where sdkmanager program is located. It didn't work for me anywhere else.

abhishek@abhishek:~/.buildozer/android/platform/android-sdk$ ls
cmdline-tools commandlinetools-linux-6858069_latest.zip

there is no folder named tools when I unzip
Should I run the command sdkmanager from cmdline-tools/bin
If so this is the output
abhishek@abhishek:/.buildozer/android/platform/android-sdk/cmdline-tools/bin$ sdkmanager --list
sdkmanager: command not found
Though it contains the sdkmanager
abhishek@abhishek:
/.buildozer/android/platform/android-sdk/cmdline-tools/bin$ ls -l
total 40
-rwxr-xr-x 1 abhishek abhishek 5321 Jan 1 2010 apkanalyzer
-rwxr-xr-x 1 abhishek abhishek 5312 Jan 1 2010 avdmanager
-rwxr-xr-x 1 abhishek abhishek 5280 Jan 1 2010 lint
-rwxr-xr-x 1 abhishek abhishek 5309 Jan 1 2010 screenshot2
-rwxr-xr-x 1 abhishek abhishek 5319 Jan 1 2010 sdkmanager

@codinghedgehog-python
Copy link

@abhishekju06 I suggest you to reach out to Kivy devs on Discord. They're often very keen to help out https://discord.com/channels/423249981340778496/712344698559397895

@iruriksl
Copy link

iruriksl commented Jan 12, 2021

Hello,

Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.

As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

  1. Download cmdlines-tools from google
  2. Create a directory for the android sdk at buildozer android location:
    mkdir ~/.buildozer/android/platform/android-sdk
  3. Move the zip to this folder and unzip it
  4. Rename the folder
    mv tools old-tools
  5. Install missing dependencies & the famous tools:
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.

I hope it helps

this

This is definitely a real solution to this

This is definitely a real solution to this. @iElsha you rocks... & @franslott you really made the steps easy to follow.

One thing I want to add is just run android debug clean before rebuilding the apk.
I think the issue thread should be closed

@abhishekju06
Copy link

@iruriksl @iElsha @franslott Can you please tell me which version of Opencv would work? Mine is opencv: 4.0.1 and "platforms;android-28" I used the method you people described for opencv issue but when I am running my program cv2.face.LBPHFaceRecognizer_create() is giving me Attribute error cv2.face . I did this tracing via logcat. Can you please help me??

@HashLDash
Copy link

If you download the files from android studio's sdk manager and point the directory in the buildozer.spec, then the compilation also works.
Steps:

  • Clear the project's .buildozer folder (e.g. rm -rf .buildozer)
  • Open Android-Studio
  • Open SDK Manager
  • Under System Settings > Android SDK > SDK Platforms, check the version of Sdk you want (I used API level 27)
  • Go to the next page SDK Tools and check Android SDK Command-line Tools (latest) (3.0). Just for completeness, I also have installed Android SDK Tools, Android SDK Platform-tools, CMake, NDK and Android SDK Build-Tools 31-rc1 checked.
  • Click Apply and it will install those packages
  • In your buildozer.spec, jump to the line for the android.sdk_path and set it to the directory where android studio installed the packages. On my machine it was under ~/Android/Sdk:
    android.sdk_path = ~/Android/Sdk

Now run:

buildozer -v android debug

And the compilation should be successful this time.
P4A used NDK r19c, API 27.

@purushottam858
Copy link

purushottam858 commented Sep 19, 2021

Hello,
Below you'll find a quick fix for the version issue. It works on python 3.6.2, WSL Ubuntu and buildozer.
As it's been described below the issue comes from openCV build (cmake) who's using a deprecated sdk tools named tools. This one has been replaced by cmdlines-tools.

  1. Download cmdlines-tools from google
  2. Create a directory for the android sdk at buildozer android location:
    mkdir ~/.buildozer/android/platform/android-sdk
  3. Move the zip to this folder and unzip it
  4. Rename the folder
    mv tools old-tools
  5. Install missing dependencies & the famous tools:
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "build-tools;29.0.0-rc3"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platforms;android-27"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "platform-tools"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "patcher;v4"
    sudo ./sdkmanager --sdk_root=/home/<USERNAME>/.buildozer/android/platform/android-sdk/ --install "emulator"

Now it should work as it will be using the old tools dependency. I've succeed to use opencv on my phone, OnePlus 6T.
I hope it helps

this

This is definitely a real solution to this

This is definitely a real solution to this. @iElsha you rocks... & @franslott you really made the steps easy to follow.

One thing I want to add is just run android debug clean before rebuilding the apk.
I think the issue thread should be closed

I followed the steps and got tools folder and deleted the .buildozer folder and tried to make apk , but I am getting this below error .
I want to run this function . I want to get a frame image out of video in android kivy apk . is there any other option , and I tried ffmpeg too , it is not running in apk .

def  thumforvideo(self , path ):




    print(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3])
    print(os.listdir())
    print("started thumbnail making...."*(50))


    # Read the video from specified path
    cam = cv2.VideoCapture(path)   # I GUESS THIS IS CAUSING ERROR  

    print("cam making ...."*(50))      # THIS  LINE  IS NOT RUNNING  ,  "cam making ...."*(50) NOT  PRINTED  IN TERMINAL .

    try:


        # creating a folder named data
        if not os.path.exists('data'):
            os.makedirs('data')
            print("data making "*(50))

    # if not created then raise error
    except OSError:
        print ('Error: Creating directory of data')

    # frame
    currentframe = 0
    done = False

    while(True):



        # reading from frame
        ret,frame = cam.read()
        print(ret)
        print(frame)
        print(done)



        if ret and not done :


            result =  os.path.basename(path)[:-3] + "jpg"
            # if video is still left continue creating images
            name = result  #'./data/frame' + str(currentframe) + '.jpg'
            print('Creating...' + name)

            # writing the extracted images
            cv2.imwrite(name, frame)

            # increasing counter so that it will
            # show how many frames are created
            currentframe += 1
            done = True
        else:
            print("break..."*(50))
            break

=======================ERROR====================================================
09-19 19:42:49.882 19580 19580 I python : 1
09-19 19:42:49.884 19580 19580 V PythonActivity: onResume()
09-19 19:42:49.884 19580 19580 V SDL : onResume()
09-19 19:42:49.889 2318 2412 V UiModeManager: switch night mode to 1
09-19 19:42:49.890 2521 2521 D GestureStubView: resetRenderProperty: showGestureStub
09-19 19:42:49.890 2521 2521 D GestureStubView: showGestureStub
09-19 19:42:49.890 2521 2521 D GestureStubView: resetRenderProperty: showGestureStub
09-19 19:42:49.890 2521 2521 D GestureStubView: showGestureStub
09-19 19:42:49.891 19690 19690 I python : 2021-09-19 14:12:49.885
09-19 19:42:49.891 19690 19690 I python : ['thumb2.jpg', 'maymain.pyc', 'gpsblinker.pyc', 'VID_20210808_193912.mp4', 'download.jpeg', '.kivy', 'pythont.png', 'kivymd', '0.jpg', 'resized_image.jpg', 'homemapview.pyc', 'VID_20210808_193912.jpg', 'pythonthumb.png', 'thumb.jpg', '.nomedia', 'thumbnailmaking.pyc', 'output.png', 'mmmm.pyc', 'data', 'homemapview.kv', 'buildozer.spec', 'iiimage.jpg', 'nameVID_20210808_193912.jpg', 'vt.pyc', 'mmaaiinn.pyc', 'private.version', 'videothumb.pyc', '_python_bundle', 'gpsblinker.kv', 'p4a_env_vars.txt', 'tempdata.ini', 'car_scene_v001.099.png', 'main.pyc', 'IMG_20190712_211756.jpg', 'kkkkmain.pyc', 'pythonthumb.jpg', 'tile.pyc', 'vvt.pyc', 'sitecustomize.pyc', 'ain.pyc', 'car_scene_v001.109.png', 'pycache', 'ico.pyc', 'imagepic.pyc']
09-19 19:42:49.891 19690 19690 I python : started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....started thumbnail making....
09-19 19:42:49.897 19580 19580 V SDL : onWindowFocusChanged(): true
09-19 19:42:49.897 19580 19580 V SDL : nativeResume()
09-19 19:42:49.898 2521 2521 D GestureStubView: gatherTransparentRegion: need render w:54 h:1404
09-19 19:42:49.898 2318 3569 I SensorService: check list, getPackageName org.libsdl.app.SDLSurface
09-19 19:42:49.903 2521 2521 D GestureStubView: gatherTransparentRegion: need render w:54 h:1404
09-19 19:42:49.904 19580 19675 I python : [ERROR ] [Image ] Not found <VID_20210919_185537.jpg>
09-19 19:42:49.904 2318 3569 D ActivityManager: Raise procstate to external provider: ProcessRecord{17ccb9e 4418:com.google.android.gms/u999a24}
09-19 19:42:49.909 2521 2521 D EventBus: [2521, u0] send(AppTransitionFinishedEvent)
09-19 19:42:49.909 2521 2521 D EventBus: [2521, u0] -> ForcedResizableInfoActivityController [0x785d111, P1] onBusEvent(AppTransitionFinishedEvent)
09-19 19:42:49.909 2521 2521 D EventBus: [2521, u0] onBusEvent(AppTransitionFinishedEvent) duration: 19 microseconds, avg: 2247
09-19 19:42:49.992 19690 19690 F libc : Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xcba8d7c1 in tid 19690 (org.test.myapp), pid 19690 (org.test.myapp)
09-19 19:42:50.309 19694 19694 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
09-19 19:42:50.363 1323 1323 I /system/bin/tombstoned: received crash request for pid 19690
09-19 19:42:50.369 19694 19694 I crash_dump32: performing dump of process 19690 (target tid = 19690)
09-19 19:42:50.399 19694 19694 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-19 19:42:50.399 19694 19694 F DEBUG : Build fingerprint: 'xiaomi/lavender/lavender:9/PKQ1.180904.001/V11.0.9.0.PFGINXM:user/release-keys'
09-19 19:42:50.399 19694 19694 F DEBUG : Revision: '0'
09-19 19:42:50.399 19694 19694 F DEBUG : ABI: 'arm'
09-19 19:42:50.399 19694 19694 F DEBUG : pid: 19690, tid: 19690, name: org.test.myapp >>> org.test.myapp <<<
09-19 19:42:50.399 19694 19694 F DEBUG : signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xcba8d7c1
09-19 19:42:50.399 19694 19694 F DEBUG : r0 00000000 r1 00000000 r2 00000000 r3 00000000
09-19 19:42:50.399 19694 19694 F DEBUG : r4 cba8d70c r5 cba8d7c1 r6 ffb99f18 r7 ffb99f40
09-19 19:42:50.399 19694 19694 F DEBUG : r8 eddcbd8c r9 00000000 r10 ffb9a1b8 r11 eddcbd8c
09-19 19:42:50.399 19694 19694 F DEBUG : ip eddc4cfc sp ffb99f18 lr edd9316f pc c96a90a2
09-19 19:42:50.400 19694 19694 I unwind : Malformed section header found, ignoring...
09-19 19:42:50.402 19694 19694 F DEBUG :
09-19 19:42:50.402 19694 19694 F DEBUG : backtrace:
09-19 19:42:50.402 19694 19694 F DEBUG : #00 pc 000180a2 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #1 pc 0001ac89 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #2 pc 0001877f /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so (cv::AVIReadContainer::AVIReadContainer()+42)
09-19 19:42:50.402 19694 19694 F DEBUG : #3 pc 00014075 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #4 pc 00013cef /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #5 pc 00013c71 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #6 pc 00013e4f /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #7 pc 00017eef /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so
09-19 19:42:50.402 19694 19694 F DEBUG : #8 pc 0000bd47 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so (cv::VideoCapture::open(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&, int)+466)
09-19 19:42:50.402 19694 19694 F DEBUG : #9 pc 0000b951 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libopencv_videoio.so (cv::VideoCapture::VideoCapture(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&, int)+64)
09-19 19:42:50.402 19694 19694 F DEBUG : #10 pc 0004a84b /data/data/org.test.myapp/files/app/_python_bundle/site-packages/cv2.so
09-19 19:42:50.402 19694 19694 F DEBUG : #11 pc 000b7a74 /data/app/org.test.myapp-lRrSUv2YB-FKX-RARwFHmg==/lib/arm/libpython3.8.so
09-19 19:42:50.736 2521 2735 D NetworkController.MobileSignalController(2): getDataNetTypeFromServiceState slotId=0 isUsingCarrierAggregation=true
09-19 19:42:50.736 2521 2735 D NetworkTypeUtils: getDataNetTypeFromServiceState:srcDataNetType = 13, destDataNetType 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests