Buildozer Build failed: Couldn't find executable for CC

后端 未结 1 2015
执念已碎
执念已碎 2020-12-11 23:07

I run the command --buildozer android debug , because i wan to create a apk file to my phone,but after i reach this point

[INFO]:    Building libffi for arme         


        
1条回答
  •  感情败类
    2020-12-11 23:30

    I spent a lot of time on buildozer and this error also. In my case Python-for-Android made wrong path to clang (that CC executable).

    Here we have

    '/home/pi/.buildozer/android/platform/android-ndk-r19b/toolchains/llvm/prebuilt/linux-armv7l/bin
    

    So check if the folder's name in '/home/pi/.buildozer/android/platform/android-ndk-r19b/toolchains/llvm/prebuilt/ is really 'linux-armv7l'. If it's not just go to your python-for-android folder and there /pythonforandroid/util.py

    Open it and find there 'build_platform' variable and after that you can just comment code that is going after '=' sign, and write there your real folder's name as a string. For example:

    build_platform = 'linux-x86_64'
    

    It helped me, maybe it will help you.

    0 讨论(0)
提交回复
热议问题