-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build APK with buildozer #1817
Comments
I think the error is generated because the ld linker is not found:
How and where can I configure the path to ld linker (/usr/bin/ld)? |
This warning: |
Have similar error http://dpaste.com/3R8NM0F |
Annoying this is still an issue on macOS. |
That error inside linux docker container (FROM ubuntu 18.04) |
Wait what? The initial report from @jairoerazobotero isn't inside Docker to me, judging from the paths |
I have lld installed and this error line is removed from logs but further proceeding with same error. I am looking for solution since 50 days but found nowhere. Attaching logs with spec file for reference. |
Hi,
You have to uncomment the last line and said True:
|
I made the changes suggested by you but still the error is same. PFA spec file and logs for reference and to figure out the exact problem and resolution as this issue is now more longer than 2 months. |
I'm sorry but I never use Mac... Hope it will fit you're requirements |
I'm also hitting this issue, I'm on macOS, but everything is run in a docker image that was NOT produced on a Mac so it should not in theory affect anything. Is there no solution for this? I mean I could fire up a VM and run docker in the VM, but I'd love to be able to run this natively in native docker. Is there a way to see the python build verbosely? I can tell you right now that is where the issue is as there are no build files at all in the python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/android-build directory. Which is why it can't link python3.7m it doesn't exist since that build must be bailing for some reason, but I can not see anything so I have no idea why. |
Okay I found the issue, on macOS, macOS typically doesn't have a case sensitive fs, and docker doesn't change that. in the hostpython3 build there is a dir Python, so when you build it, it can not build the binary python in the same dir as there is no diff, since the binary isn't built everything from there starts to fail. somehow is created a python.exe, so for testing only (this isn't a solution) I moved the Python directory to Python.dir, and move python.exe to python and re ran Buildozer without cleaning first. And guess what ;) it worked! So the question is could we check for python and if it's missing check if python.exe exists and use that instead in python_for_android cmd ? Or it could just patch the hostpython3 build to move Python directory and patch all the make files to use the new location so it's not in the way during the build. We have had to do this a few times in fink. right now it's ugly as hell but I'm doing, but would be nice if python_for_android could fix it internally instead.
|
It turns out that the generated binary for MacOS is not `python`...its `python.exe` See also: https://github.com/python/cpython/blob/3.7/README.rst#build-instructions Closes: kivy#1817 Closes: kivy#1800 Closes: kivy#1682 Closes: kivy#1647
How did you install llvm? I tried with homebrew but when i try to link it, it refuses... |
I use fink, I just add a symlink from fink to brew to make everything happy |
Versions
Python: 3.7.1
OS: MacOS Mojave 10.14.4
Description
I'm trying to build a simple kivy app with buildozer. I already tried rebuilding (deleting .buildozer folder then running buildozer -v android debug, reinstall buildozer via pip install buildozer, but I still encounter the same issue. I need help. The code of my app is here in branch Tests.
buildozer.spec
Command:
buidozer -v android debug
Spec file:
Logs
The text was updated successfully, but these errors were encountered: