kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.75k stars 503 forks source link

buildozer.spec and spaces in package.name #1833

Open lemonJumps opened 4 months ago

lemonJumps commented 4 months ago

Versions

Description

Adding space into package.name for instance: "scanner 4" will cause build to fail, this is because some include paths for clang will use the name as is without quotes and therefore think the path is two different parameters.

Honestly I think that just simply adding, "don't use spaces" comment, into the auto-generated buildozer.spec would be sufficient for first timers like my self. :D

Error during build:

creating build/temp.linux-x86_64-3.11/android
/home/lemon/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/lemon/scannur-4/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/lemon/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/lemon/scannur-4/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Scannur 4/arm64-v8a/include/python3.1 -fPIC -I/home/lemon/scannur-4/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/lemon/scannur-4/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c android/_android.c -o build/temp.linux-x86_64-3.11/android/_android.o
clang-14: error: no such file or directory: '4/arm64-v8a/include/python3.1'
clang-14: error: no such file or directory: 'android/_android.c'