Warum stürzt Buildozer unter Ubuntu 24.04 ab, während Buildozer -v Android Debug ausgeführt wird?Python

Python-Programme
Anonymous
 Warum stürzt Buildozer unter Ubuntu 24.04 ab, während Buildozer -v Android Debug ausgeführt wird?

Post by Anonymous »

Ich bin gerade von Linux Mint auf Ubuntu umgestiegen und habe dann versucht, eine APK mit Buildozer auf Ubuntu neu zu erstellen, was mit Mint einwandfrei funktioniert hat, aber ich erhalte ständig die folgende Fehlermeldung:

Code: Select all

In file included from /home/joshua-gabriel/TP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_23/python3/Python/remote_debugging.c:9:
/home/joshua-gabriel/TP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_23/python3/Python/remote_debug.h:958:22: error: implicit declaration of function 'preadv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
read_bytes = preadv(handle->memfd, local, 1, offset);
^
/home/joshua-gabriel/TP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_23/python3/Python/remote_debugging.c:48:19: error: implicit declaration of function 'pwritev' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
written = pwritev(handle->memfd, local, 1, offset);
^
2 errors generated.
make: *** [Makefile:3269:
# Command failed: ['/home/joshua-gabriel/TP/tp_venv/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=alp', '--bootstrap=sdl2', '--requirements=python3,cython==0.29.36,asyncgui==0.6.3,asynckivy==0.6.4,certifi==2025.6.15,charset-normalizer==3.4.2,defusedxml==0.7.1,docutils==0.21.2,idna==3.10,kivy==2.3.1,kivy-garden==0.1.5,https://github.com/kivymd/KivyMD/archive/b4de35f.zip,lxml==5.4.0,materialyoucolor==2.0.10,plyer==2.1.0,pygments==2.19.1,pyjnius==1.7.0,python-docx==1.2.0,requests==2.32.4,skelmis-docx==2.3.0,typing-extensions==4.14.0,urllib3==2.4.0,webcolors==24.11.1,exceptiongroup,android,pillow==11.2.1,fonttools==4.43.1,fpdf2', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--local-recipes', '/home/joshua-gabriel/TP/p4a_recipes', '--color=always', '--storage-dir=/home/joshua-gabriel/TP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=23', '--ignore-setup-py', '--debug']
Zum Reproduzieren

Code: Select all

sudo apt update
sudo apt install -y python3 python3-pip python3-venv git zip unzip \
openjdk-17-jdk libffi-dev libssl-dev autoconf libtool pkg-config \
zlib1g-dev libjpeg-dev libsqlite3-dev libpng-dev adb

python3 -m venv venv
source venv/bin/activate

pip install --upgrade pip
pip install buildozer cython

buildozer init
#Then create a basic kivy app

buildozer -v android debug
Ich habe bei Google gesucht und nichts gefunden. Ich
würde mich sehr über eine Antwort freuen

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post