Skip to content

Adds libm to Pillow recipe #2465

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

Merged
merged 2 commits into from
Jun 17, 2021
Merged

Adds libm to Pillow recipe #2465

merged 2 commits into from
Jun 17, 2021

Conversation

Sahil-pixel
Copy link
Contributor

@Sahil-pixel Sahil-pixel commented Jun 16, 2021

kivy/buildozer#1020
I have put requirements=pillow directly without any modification
.buildozer/android/platform/python-for-android/pythonforandroid/recipes/Pillow/init.py
Results
In Android 8 running well without any problem

In Android 5 crashing
ImportError: dlopen failed: cannot locate symbol "log" referenced by "_imaging.so"...

and after the change ,In both device running well.
env['CFLAGS'] += cflags + " -lm"

I have put requirements=pillow directly without any modification
.buildozer/android/platform/python-for-android/pythonforandroid/recipes/Pillow/init.py
Results
In Android 8 running well without any problem

In Android 5 crashing
ImportError: dlopen failed: cannot locate symbol "log" referenced by "_imaging.so"...

and after the change ,In both device running well.
env['CFLAGS'] += cflags + " -lm"
Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the investigation and fix.
Added a comment if you could address.
Also I wish we had a more meaningful commit title.
Maybe you could change it to "Adds libm to Pillow recipe" or something.
You can edit the commit message with:

git commit --amend "Adds libm to Pillow recipe"
git push --force
If you know how to squash commit, ideally try to since it's a small diff.
To squash you can simply make the edit of the file and then:
```sh
git add pythonforandroid/recipes/Pillow/__init__.py
git commit --amend
git push --force

Otherwise I'll try to think about it upon merge

@Sahil-pixel Sahil-pixel changed the title Update __init__.py Adds libm to Pillow recipe Jun 17, 2021
@Sahil-pixel
Copy link
Contributor Author

please merge it .other wise kivymd user will face problem with old android device .

@HeaTTheatR
Copy link

please merge it .other wise kivymd user will face problem with old android device .

Don't know if it's related, but I'm having trouble compiling Pillow - https://discord.com/channels/423249981340778496/678695971164520523/854086968781307985

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for addressing

@AndreMiras AndreMiras merged commit 4b1c7d8 into kivy:develop Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants