Buildozer: Couldn't find executable for CC

542 views
Skip to first unread message

John Anderson

unread,
Feb 6, 2019, 4:15:25 PM2/6/19
to Kivy users support
Trying to build an APK from a very simple kivy app. I am running on Ubuntu 18.04 using buildozer version 0.39.

In my buildozer.spec file, I have the following lines (in addition to the standard stuff):

requirements = kivy
android.api = 28
android.ndk = 19
log_level = 2

when I run "buildozer android debug", I get:

.
.
.
[INFO]:    Building python3 for armeabi-v7a
[INFO]:    -> directory context /home/jra/PycharmProjects/kivyPlay/tmp/.buildozer/android/platform/build/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build
[WARNING]: Doing some hacky stuff to link properly
[INFO]:    -> running cp /home/jra/.buildozer/android/platform/android-nd...(and 60 more)
[INFO]:    -> running cp /home/jra/.buildozer/android/platform/android-nd...(and 58 more)
[INFO]:    -> running configure --host=arm-linux-androideabi --build=x86_...(and 190 more)
           wo[INFO]:    -> running make all -j 4 INSTSONAME=libpython3.7m.sos active (PGO, etc),    
           working: changing mode of build/scripts-3.7/pyvenv from 644 to 755 [INFO]:    <- directory context /home/jra/Downloads/python-for-android-master
[INFO]:    Building sdl2 for armeabi-v7a
[ERROR]:   Build failed: Couldn't find executable for CC. This indicates a problem locating the arm-linux-androideabi-gcc executable in the Android NDK, not that you don't have a normal compiler installed. Exiting.
Searching path are: '/home/jra/.buildozer/android/platform/android-ndk-r19/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86/bin/:/home/jra/.buildozer/android/platform/android-ndk-r19/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/:/home/jra/.buildozer/android/platform/android-ndk-r19:/home/jra/.buildozer/android/platform/android-sdk/tools:/home/jra/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/jra/Downloads/brlcad-build/bin:/usr/lib/jvm/default-java/bin:/home/jra/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/jra/bin'

I have attached the complete buildozer.spec and the complete log.
I have seen other complaints about this problem, but no fixes. Can anyone help me?
buildozer.log
buildozer.spec

Alexander Taylor

unread,
Feb 6, 2019, 4:28:51 PM2/6/19
to Kivy users support
NDK 19 may not work yet, you should see a warning about that if you're using python-for-android master. Do you get the same issue with NDK 17?

John Anderson

unread,
Feb 6, 2019, 7:27:57 PM2/6/19
to Kivy users support
That is exactly it. I downloaded ndk version 17c, and using that, the APK builds successfully. 
Reply all
Reply to author
Forward
0 new messages