【发布时间】:2022-06-15 09:53:03
【问题描述】:
我用python编写了一个程序并编写了一个.kv文件,我可以运行它并且它工作正常。但是当我想在导航到工作目录并输入buildozer init 之后使用buildozer 为android 构建它,然后在规范文件中添加图标和presplash,之后我写buildozer -v android debug。然后它输入不同的东西。我认为可能重要的几件事是:/bin/sh: dpkg: command not found,
然后:
configure: error: internal configure error for the platform triplet, please file a
bug report
Exception in thread background thread for pid 89524:
什么可能是最重要的:
STDOUT:
checking build system type... x86_64-apple-darwin21.4.0
checking host system type... x86_64-apple-darwin21.4.0
checking for python3.8... no
checking for python3... python3
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for --with-cxx-main=<compiler>... no
checking for g++... no
configure:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a
bug report
STDERR:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py",
line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py",
line 87, in _run_code
exec(code, run_globals)
File "/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for-
android/pythonforandroid/toolchain.py",第 1294 行,在 主要的() 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/entrypoints.py",第 18 行,在 main 工具链CL() 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/toolchain.py",第 728 行,在 init 中 getattr(自我,命令)(参数) 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/toolchain.py”,第 151 行,在 wrapper_func 中 build_dist_from_args(ctx,dist,args) 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/toolchain.py",第 210 行,在 build_dist_from_args build_recipes(build_order, python_modules, ctx, 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/build.py”,第 596 行,在 build_recipes 中 recipe.build_arch(arch) 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/recipes/hostpython3/init.py",第 95 行,在 build_arch shprint(sh.Command(join(recipe_build_dir, 'configure'))) 文件“/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/python-for- android/pythonforandroid/logger.py",第 167 行,在 shprint 对于输出中的行: 文件“/Users/grzesiek/Library/Python/3.9/lib/python/site-packages/sh.py”,第 953 行, 在接下来的 自我等待() 文件“/Users/grzesiek/Library/Python/3.9/lib/python/site-packages/sh.py”,第 879 行, 等待中 self.handle_command_exit_code(exit_code) 文件“/Users/grzesiek/Library/Python/3.9/lib/python/site-packages/sh.py”,第 905 行, 在 handle_command_exit_code 提高 exc sh.ErrorReturnCode_1:
RAN: /Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/build-arm64-
v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/configure
STDOUT:
checking build system type... x86_64-apple-darwin21.4.0
checking host system type... x86_64-apple-darwin21.4.0
checking for python3.8... no
checking for python3... python3
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for --with-cxx-main=<compiler>... no
checking for g++... no
configure:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a
bug report
STDERR:
# Command failed: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m
pythonforandroid.toolchain create --dist_name=kalkulator --bootstrap=sdl2 --
requirements=python3,kivy --arch arm64-v8a --arch armeabi-v7a --copy-libs --
color=always --storage-
dir="/Users/grzesiek/Desktop/kalkulator/.buildozer/android/platform/build-arm64-
v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug
# ENVIRONMENT:
# TMPDIR = '/var/folders/l_/g3zlw0w55nbc9k1v110rn0gh0000gn/T/'
# __CFBundleIdentifier = 'com.apple.Terminal'
# XPC_FLAGS = '0x0'
# TERM = 'xterm-256color'
# DISPLAY = '/private/tmp/com.apple.launchd.RArnFLp29W/org.xquartz:0'
# SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.FmVNzY5SpB/Listeners'
# XPC_SERVICE_NAME = '0'
# TERM_PROGRAM = 'Apple_Terminal'
# TERM_PROGRAM_VERSION = '444'
# TERM_SESSION_ID = '79D90C22-EBBE-40E7-A4E4-7F76B66B2457'
# SHELL = '/bin/zsh'
# HOME = '/Users/grzesiek'
# LOGNAME = 'grzesiek'
# USER = 'grzesiek'
# PATH = '/Users/grzesiek/.buildozer/android/platform/apache-ant-
1.9.4/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin: /bin:/usr/sbin:/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin/python3:/opt/X11/bin:/Library/Apple/usr/bin:/Users/grzesiek/bin :/用户/gr zesiek/图书馆/Python/3.9/bin' # SHLVL = '1' # PWD = '/Users/grzesiek/Desktop/Kalkulator' # OLDPWD = '/用户/grzesiek/桌面' # LANG = 'pl_PL.UTF-8' # _ = '/Users/grzesiek/Library/Python/3.9/bin/buildozer' # __CF_USER_TEXT_ENCODING = '0x1F5:0x1D:0x2A' # PACKAGES_PATH = '/Users/grzesiek/.buildozer/android/packages' # ANDROIDSDK = '/Users/grzesiek/.buildozer/android/platform/android-sdk' # ANDROIDNDK = '/Users/grzesiek/.buildozer/android/platform/android-ndk-r19c' #ANDROIDAPI = '27' # ANDROIDMINAPI = '21' # # Buildozer 执行最后一条命令失败 # 错误可能隐藏在此错误上方的日志中 # 请阅读完整日志,并在之前搜索 # 提出 buildozer 本身的问题。 # 如果有错误报告,请添加 log_level = 2 的完整日志
我知道,这是一种展示我所得到的东西的悲惨方式。我正在关注本教程:https://www.youtube.com/watch?v=zk0MeJ7YIMc 有人可以帮忙吗? 提前致谢!
【问题讨论】: