Buildozer crash about C99 compatibility

27 views
Skip to first unread message

Alan Etkin

unread,
Nov 23, 2025, 9:39:10 AMNov 23
to Kivy users support
Hi

I'm trying to build the apk with buildozer, but I get this error

In file included from /home/alan/Pruebas/qrconquista/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Modules/_remote_debugging_module.c:31:
/home/alan/Pruebas/qrconquista/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Modules/../Python/remote_debug.h:886:15: error: implicit declaration of function 'search_linux_map_for_section' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    address = search_linux_map_for_section(handle, "PyRuntime", "python");
              ^
/home/alan/Pruebas/qrconquista/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Modules/_remote_debugging_module.c:814:15: error: implicit declaration of function 'search_linux_map_for_section' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    address = search_linux_map_for_section(handle, "AsyncioDebug", "_asyncio.cpython");
              ^
2 errors generated.
make: *** [Makefile:3563: Modules/_remote_debugging_module.o] Error 1

I'm working with an app project that reads QRs with opencv and decodes them with zbar. I tried to apply a patch that solves the syntax issue in the C file, but I think it gets overwritten on each call to buildozer android debug.

The issue about C99 is posted at
And points to a patch in C-Python

Any hints on what should I check to get the .apk built?

I'm running kivy and buildozer over a python venv on Ubuntu 24.04 amd processor PC

Thanks

Alan

KXJ YEG

unread,
Nov 23, 2025, 11:35:12 AMNov 23
to kivy-...@googlegroups.com
Hi,

I ran into patch issue with Java source code once.

Sometimes manually copying the right source file in the right location helps.
See around 4:49 here:

Once I managed to build the apk, I used apktool to inspect the apk to confirm if it had the right components.
02:17 here:

Hope this helps. You're probably dealing with a .h file and the mechanism might differ re: compilation.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kivy-users/57ae8030-44a1-4cfd-950f-b536ad2fe227n%40googlegroups.com.

Alan Etkin

unread,
Nov 23, 2025, 5:33:18 PMNov 23
to Kivy users support
Very useful

I can't tell if the command used by the guy from the video (buildozer -v...) was the key but I managed to build the .apk file. The news is that the app crashes once it is deployed in a device, but that's another story

Thank you!

BTW: I can't find in buildozer docs what is the -v option used for

KXJ YEG

unread,
Nov 23, 2025, 6:42:35 PMNov 23
to kivy-...@googlegroups.com
Thanks.

BTW, those are videos I created :) if you found them useful it'd be nice to have you as a Subscriber.

For your apk crash, I recommend a venv that helps minimize crashes:

Thanks

Reply all
Reply to author
Forward
0 new messages