Closed metalmonkey69 closed 4 years ago
I did a fresh setup again and i run the same build command:
buildozer -v android debug
The build errors are now consistent. It is always having the same error: : building 'jnius' extension : arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7andk_target_21/python3/Include -fPIC -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/peter/Projects/kivy/simplekivy/.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.7/jnius/jnius.o arm-linux-androideabi-gcc: error: jnius/jnius.c: No such file or directory arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. : building 'android._android' extension : arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include -fPIC -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/peter/Projects/kivy/simplekivy/.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.7/android/_android.o arm-linux-androideabi-gcc: error: android/_android.c: No such file or directory arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. : building 'kivy._event' extension : arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -DNDEBUG -g -fwrapv -O3 -Wall -DANDROID -fomit-frame-pointer -DANDROID_API__=21 -mandroid -isystem /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/peter/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include -fPIC -Ikivy/include -I/home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/peter/Projects/kivy/simplekivy/.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.7/kivy/_event.o arm-linux-androideabi-gcc: error: kivy/_event.c: No such file or directory arm-linux-androideabi-gcc: fatal error: no input files compilation terminated. :
Full Log here
How do i fix these errors ?
I'm not sure which problem you're talking about? The full log you shared contains the following:
[DEBUG]: Download https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar
[DEBUG]:
[DEBUG]: > Task :compileDebugJavaWithJavac
[DEBUG]: Note: Some input files use or override a deprecated API.
[DEBUG]: Note: Recompile with -Xlint:deprecation for details.
[DEBUG]: Note: Some input files use unchecked or unsafe operations.
[DEBUG]: Note: Recompile with -Xlint:unchecked for details.
[DEBUG]:
[DEBUG]:
[DEBUG]: BUILD SUCCESSFUL in 3m 35s
[DEBUG]: 27 actionable tasks: 27 executed
[INFO]: <- directory context /home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/python-for-android
[INFO]: # Copying APK to current directory
[INFO]: # APK filename not found in build output. Guessing...
[INFO]: # Found APK file: /home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/dists/myapp/build/outputs/apk/debug/myapp-debug.apk
[INFO]: # Add version number to APK
[INFO]: # APK renamed to myapp-0.1-debug.apk
[DEBUG]: -> running cp /home/peter/Projects/kivy/simplekivy/.buildozer/android/platform/build-armeabi-v7a/dists/myapp/build/outputs/apk/debug/myapp-debug.apk myapp-0.1-debug.apk
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
No setup.py/pyproject.toml used, copying full private data into .apk.
Applying Java source code patches...
Applying patch: src/patches/SDLActivity.java.patch
# Android packaging done!
# APK myapp-0.1-armeabi-v7a-debug.apk available in the bin directory
(kivyenv) peter@peter-VirtualBox:~/Projects/kivy/simplekivy$ ls -l
total 20
drwxr-xr-x 2 peter peter 4096 Nov 27 15:52 bin
-rw-r--r-- 1 peter peter 9186 Nov 27 02:33 buildozer.spec
-rw------- 1 peter peter 236 Nov 27 02:33 main.py
(kivyenv) peter@peter-VirtualBox:~/Projects/kivy/simplekivy$ cd bin
(kivyenv) peter@peter-VirtualBox:~/Projects/kivy/simplekivy/bin$ ls -l
total 10940
-rw-r--r-- 1 peter peter 11201096 Nov 27 15:52 myapp-0.1-armeabi-v7a-debug.apk
(kivyenv) peter@peter-VirtualBox:~/Projects/kivy/simplekivy/bin$
Which to me looks like a working build right?
My post was 6 months go. I downloaded the latest buildozer few days ago and it didn't break during the .apk building. It seems to be working now.
Versions
Description
Fresh Ubuntu 18.04 with freshly built Python 3.7.5. Created a virtual environment for kivy and installed the necessary dependencies. Simple kivy app can run with no issue. Problem is i can't get to build a simple android apk.
buildozer.spec
Command:
Spec file:
Logs (Full)
Full Log here
Logs (partial)
There are similar clang errors above this partial log. You can see all the clang errors in the full log.