Open libai919 opened 1 month ago
Then I encountered this problem
Exception in thread background thread for pid 26356: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, *self._kwargs) File "/root/desktop/python/lib/python3.10/site-packages/sh.py", line 1641, in wrap fn(rgs, **kwargs) File "/root/desktop/python/lib/python3.10/site-packages/sh.py", line 2569, in background_thread handle_exit_code(exit_code) File "/root/desktop/python/lib/python3.10/site-packages/sh.py", line 2269, in fn return self.command.handle_command_exit_code(exit_code) File "/root/desktop/python/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code raise exc sh.ErrorReturnCode_1:
RAN: /usr/bin/cmake -G 'Unix Makefiles' -DCMAKE_SYSTEM_NAME=Android -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_ANDROID_NDK=/root/.buildozer/android/platform/android-ndk-r25b -DCMAKE_C_COMPILER=/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_TOOLCHAIN_FILE=/root/.buildozer/android/platform/android-ndk-r25b/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_ARM_NEON=ON -DENABLE_NEON=ON -DENABLE_SHARED=0 -DENABLE_STATIC=1
STDOUT: CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases.
-- ANDROID_PLATFORM not set. Defaulting to minimum supported version 19. -- The C compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - broken CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message): The C compiler
"/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_dbc1d/fast && make -j8 -f CMakeFiles/cmTC_dbc1d.dir/build.make CMakeFiles/cmTC_dbc1d.dir/build
make[1]: Entering directory '/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o -c /root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp/testCCompiler.c
make[1]: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: No such file or directory
make[1]: *** [CMakeFiles/cmTC_dbc1d.dir/build.make:78: CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o] Error 127
make[1]: Leaving directory '/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_dbc1d/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred! See also "/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8andk_target_21/jpeg/CMakeFiles/CMakeOutput.log". See also "/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8andk_target_21/jpeg/CMakeFiles/CMakeError.log".
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/desktop/python/code/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in
RAN: /usr/bin/cmake -G 'Unix Makefiles' -DCMAKE_SYSTEM_NAME=Android -DCMAKE_POSITION_INDEPENDENT_CODE=1 -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_ANDROID_NDK=/root/.buildozer/android/platform/android-ndk-r25b -DCMAKE_C_COMPILER=/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_TOOLCHAIN_FILE=/root/.buildozer/android/platform/android-ndk-r25b/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_ARM_NEON=ON -DENABLE_NEON=ON -DENABLE_SHARED=0 -DENABLE_STATIC=1
STDOUT: CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases.
-- ANDROID_PLATFORM not set. Defaulting to minimum supported version 19. -- The C compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - broken CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message): The C compiler
"/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_dbc1d/fast && make -j8 -f CMakeFiles/cmTC_dbc1d.dir/build.make CMakeFiles/cmTC_dbc1d.dir/build
make[1]: Entering directory '/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o -c /root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp/testCCompiler.c
make[1]: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: No such file or directory
make[1]: *** [CMakeFiles/cmTC_dbc1d.dir/build.make:78: CMakeFiles/cmTC_dbc1d.dir/testCCompiler.c.o] Error 127
make[1]: Leaving directory '/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8a__ndk_target_21/jpeg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_dbc1d/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred! See also "/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8andk_target_21/jpeg/CMakeFiles/CMakeOutput.log". See also "/root/desktop/python/code/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/arm64-v8andk_target_21/jpeg/CMakeFiles/CMakeError.log".
STDERR:
'${$((_p9k_on_expand()))+}%{${_p9kraw_msg-}${_p9kraw_msg::=}%}${(e)_p9k_t[7]}${_p9k1-${${:-${_p9k__d::=0}${_p9krprompt::=${_p9k1r-${${:-${_p9k__bg::=NONE}${_p9ki::=0}${_p9ksss::=}}+}${${:-${P9K_CONTENT::=}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9k__n::=8}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(000|000)}:+10}}${_p9k__n:=11}${_p9kv::="✔"}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9kc//\r' '}}${_p9k__e::=${${_p9k1rstatus+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}1}}}+}${${_p9k__e:#00}:+${_p9k_t[$_p9kn]/<_p9k__w>/$_p9kw}${_p9k__c}%b%K{000\}%F{002\}${${(M)_p9ke:#11}:+ ' '}$_p9kv${${:-${_p9k__w::=%b%K{000\}%F{002\} ' '%b%K{000\}%F{002\}}${_p9ksss::=%b%K{000\}%F{002\} ' '%k%F{000\}\ue0b4%b%K{000\}%F{002\}}${_p9ki::=1}${_p9kbg::=000}}+}}${${:-"${${(%):-%j}:#0}"}:+${${:-${P9K_CONTENT::=""}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9kn::=12}}${_p9k__n:=${${(M)${:-x$_p9kbg}:#x(000|000)}:+14}}${_p9kn:=15}${_p9k__v::=\uf013}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9k__c//\r' '}}${_p9ke::=${${_p9k1rbackground_jobs+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}1}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9k__n]/<_p9kw>/$_p9kw}${_p9k__c}%b%K{000\}%F{006\}${${(M)_p9ke:#11}:+ ' '}$_p9kv${${:-${_p9k__w::=%b%K{000\}%F{006\} ' '%b%K{000\}%F{006\}}${_p9ksss::=%b%K{000\}%F{006\} ' '%k%F{000\}\ue0b4%b%K{000\}%F{006\}}${_p9ki::=3}${_p9k__bg::=000}}+}}}${${:-"${DIRENV_DIR-}"}:+${${:-${P9K_CONTENT::=}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9k__n::=68}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(000|000)}:+70}}${_p9k__n:=71}${_p9kv::=▼}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9kc//\r' '}}${_p9k__e::=${${_p9k1rdirenv+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}1}}}+}${${_p9k__e:#00}:+${_p9k_t[$_p9kn]/<_p9k__w>/$_p9kw}${_p9k__c}%b%K{000\}%F{003\}${${(M)_p9ke:#11}:+ ' '}$_p9kv${${:-${_p9k__w::=%b%K{000\}%F{003\} ' '%b%K{000\}%F{003\}}${_p9ksss::=%b%K{000\}%F{003\} ' '%k%F{000\}\ue0b4%b%K{000\}%F{003\}}${_p9ki::=4}${_p9kbg::=000}}+}}}${${:-"${${(%):-%#}:#\#}"}:+${${:-${P9K_CONTENT::=%n@%m}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9kn::=16}}${_p9k__n:=${${(M)${:-x$_p9kbg}:#x(000|000)}:+18}}${_p9kn:=19}${_p9k__c::=}${_p9kc::=${_p9kc//\r' '}}${_p9k__e::=${${_p9k1rcontext+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9k__e:#00}:+${_p9k_t[$_p9kn]/<_p9k__w>/$_p9kw}${_p9k__c}%b%K{000\}%F{003\}${${:-${_p9kw::=%b%K{000\}%F{003\} ' '%b%K{000\}%F{003\}}${_p9ksss::=%b%K{000\}%F{003\} ' '%k%F{000\}\ue0b4%b%K{000\}%F{003\}}${_p9k__i::=29}${_p9kbg::=000}}+}}}${${:-"${${(%):-%#}:#\%}"}:+${${:-${P9K_CONTENT::=%n@%m}${_p9kn::=}${${${_p9k__bg:-0}:#NONE}:-${_p9kn::=20}}${_p9kn:=${${(M)${:-x$_p9k__bg}:#x(000|000)}:+22}}${_p9kn:=23}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9kc//\r' '}}${_p9k__e::=${${_p9k1rcontext+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9k__e:#00}:+${_p9k_t[$_p9kn]/<_p9k__w>/$_p9kw}${_p9k__c}%b%K{000\}%F{001\}${${:-${_p9kw::=%b%K{000\}%F{001\} ' '%b%K{000\}%F{001\}}${_p9ksss::=%b%K{000\}%F{001\} ' '%k%F{000\}\ue0b4%b%K{000\}%F{001\}}${_p9k__i::=29}${_p9kbg::=000}}+}}}${${:-"${${:-$_p9kkeymap.$_p9k__zle_state}:#(vicmd.|vivis.|vivli.|.insert)}"}:+${${:-${P9K_CONTENT::=OVERTYPE}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9k__n::=24}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(003|003)}:+26}}${_p9k__n:=27}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9k__c//\r' '}}${_p9ke::=${${_p9k1rvi_mode+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9k__n]/<_p9kw>/$_p9kw}${_p9k__c}%b%K{003\}%F{000\}${${:-${_p9kw::=%b%K{003\}%F{000\} ' '%b%K{003\}%F{000\}}${_p9ksss::=%b%K{003\}%F{000\} ' '%k%F{003\}\ue0b4%b%K{003\}%F{000\}}${_p9k__i::=36}${_p9kbg::=003}}+}}}${${:-"${(M)${:-$_p9kkeymap$_p9k__region_active}:#vicmd0}"}:+${${:-${P9K_CONTENT::=NORMAL}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9k__n::=28}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(002|002)}:+30}}${_p9k__n:=31}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9k__c//\r' '}}${_p9ke::=${${_p9k1rvi_mode+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9k__n]/<_p9kw>/$_p9kw}${_p9k__c}%b%K{002\}%F{000\}${${:-${_p9kw::=%b%K{002\}%F{000\} ' '%b%K{002\}%F{000\}}${_p9ksss::=%b%K{002\}%F{000\} ' '%k%F{002\}\ue0b4%b%K{002\}%F{000\}}${_p9k__i::=36}${_p9kbg::=002}}+}}}${${:-"${(M)${:-$_p9kkeymap$_p9k__region_active}:#(vicmd1|vivis?|vivli?)}"}:+${${:-${P9K_CONTENT::=VISUAL}${_p9kn::=}${${${_p9kbg:-0}:#NONE}:-${_p9k__n::=32}}${_p9kn:=${${(M)${:-x$_p9kbg}:#x(004|004)}:+34}}${_p9k__n:=35}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9k__c//\r' '}}${_p9ke::=${${_p9k1rvi_mode+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}0}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9k__n]/<_p9kw>/$_p9kw}${_p9k__c}%b%K{004\}%F{000\}${${:-${_p9kw::=%b%K{004\}%F{000\} ' '%b%K{004\}%F{000\}}${_p9ksss::=%b%K{004\}%F{000\} ' '%k%F{004\}\ue0b4%b%K{004\}%F{000\}}${_p9k__i::=36}${_p9kbg::=004}}+}}}${${:-${P9K_CONTENT::=12:52:30}${_p9kn::=}${${${_p9k__bg:-0}:#NONE}:-${_p9kn::=36}}${_p9kn:=${${(M)${:-x$_p9k__bg}:#x(007|007)}:+38}}${_p9kn:=39}${_p9kv::=\uf017}${_p9kc::="${P9K_CONTENT}"}${_p9kc::=${_p9kc//\r' '}}${_p9ke::=${${_p9k__1rtime+00}:-${${(%):-$_p9kc%1(l.1.0)}[-1]}1}}}+}${${_p9ke:#00}:+${_p9k_t[$_p9k__n]/<_p9kw>/$_p9kw}${_p9k__c}%b%K{007\}%F{000\}${${(M)_p9ke:#11}:+ ' '}$_p9kv${${:-${_p9k__w::=%b%K{007\}%F{000\} ' '%b%K{007\}%F{000\}}${_p9ksss::=%b%K{007\}%F{000\} ' '%k%F{007\}\ue0b4%b%K{007\}%F{000\}}${_p9ki::=40}${_p9k__bg::=007}}+}}$_p9ksss%b%k%f}${_p9k1r_frame-"%242F─╮"}}${_p9klprompt::=${_p9k1l_frame-"%242F╭─"}${_p9k1l-${${:-${_p9kbg::=NONE}${_p9k__i::=0}${_p9ksss::=%f}}+}${${:-${P9K_CONTENT::=\uf31b}${_p9kn::=}${${${_p9k__bg:-0}:#NONE}:-${_p9kn::=40}}${_p9kn:=${${(M)${:-x007}:#x($_p9k__bg|${_p9kbg:-0})}:+42}}${
The configuration file is
[app]
title = My Application
package.name = myapp
package.domain = org.test
source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,pygame
orientation = portrait
#
#
#
osx.python_version = 3
osx.kivy_version = 1.9.1
#
#
fullscreen = 0
android.arch
as we weren't supporting builds for multiple archs at the same time.android.archs = arm64-v8a, armeabi-v7a
android.allow_backup = True
#
#
#
#
ios.kivy_ios_url = https://github.com/kivy/kivy-ios ios.kivy_ios_branch = master
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy ios.ios_deploy_branch = 1.10.0
ios.codesign.allowed = false
display_image_url
and full_size_image_url
options.app_url
and full_size_image_url
options.app_url
and display_image_url
options.[buildozer]
log_level = 2
warn_on_root = 1
#
#
#
#
#
#
#
#
#
#
So what should I do?
android.accept_sdk_license = True
in buildozer.spec.
Ang you get all required build tools for android including aidl
.
Or use
yes | buildozer -v android debug
to accept during build.
What you need to do is
Open the terminal and enter the following commands in sequence
sudo apt-get install build-essential sudo apt-get install libstdc++6 sudo apt-get install aidl
Then find the location of aidl which aidl
Use the cp command to copy to the location where you can't find aidl