Closed NickNameNemo closed 3 years ago
I found solution on below link
https://github.com/kivy/buildozer/issues/1020#issuecomment-578547154
If it helps to someone else the specific file to solve this issue is: .buildozer/android/platform/python-for-android/pythonforandroid/recipes/Pillow/init.py
and you must changle the line env['CFLAGS'] += cflags
to this new line with the math flag: env['CFLAGS'] += cflags + " -lm"
clean the python-for-android and rebuild.
buildozer android clean buildozer android debug
Maybe that's something you want to pull request for directly in python-for-android? https://github.com/kivy/python-for-android/blob/70b4b73/pythonforandroid/recipes/Pillow/__init__.py
Пн, 23 нояб. 2020 г. в 21:12, Andre Miras notifications@github.com:
Maybe that's something you want to pull request for directly in python-for-android?
https://github.com/kivy/python-for-android/blob/70b4b73/pythonforandroid/recipes/Pillow/__init__.py
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kivy-garden/zbarcam/issues/51#issuecomment-732222751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2DDKQRIBYHXDNA2PHB4KTSRJ3URANCNFSM4T3SHGBA .
Hi. I’m beginner in programming. The exception happened in zbarcam module, so why I put issue in zbarcam repository first. Thank you.
Hi I have some issue at deploying to android It looks like issue with PIL Any help will be great!
logcat
I/python (20766): Android kivy bootstrap done. name is main I/python (20766): AND: Ran string I/python (20766): Run user program, change dir and execute entrypoint I/python (20766): [WARNING] [Config ] Older configuration version detected (0 instead of 21) I/python (20766): [WARNING] [Config ] Upgrading configuration in progress. I/python (20766): [INFO ] [Logger ] Record log in /data/data/org.test.scanner/files/app/.kivy/logs/kivy_20-11-19_0.txt I/python (20766): [INFO ] [Kivy ] v2.0.0rc3, git-Unknown, 20201119 I/python (20766): [INFO ] [Kivy ] Installed at "/data/data/org.test.scanner/files/app/_python_bundle/site-packages/kivy/init.pyc" I/python (20766): [INFO ] [Python ] v3.8.1 (default, Nov 19 2020, 16:24:23) I/python (20766): [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 I/python (20766): [INFO ] [Python ] Interpreter at "" I/python (20766): [INFO ] [KivyMD ] v0.104.1 I/python (20766): [INFO ] [Factory ] 185 symbols loaded I/python (20766): [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer, img_gif ignored) I/python (20766): [INFO ] [Window ] Provider: sdl2 I/python (20766): [INFO ] [GL ] Using the "OpenGL ES 2" graphics system I/python (20766): [INFO ] [GL ] Backend used
I/python (20766): [INFO ] [GL ] OpenGL version <b'OpenGL ES 3.0 V@84.0 AU@ (CL@)'>
I/python (20766): [INFO ] [GL ] OpenGL vendor <b'Qualcomm'>
I/python (20766): [INFO ] [GL ] OpenGL renderer <b'Adreno (TM) 330'>
I/python (20766): [INFO ] [GL ] OpenGL parsed version: 3, 0
I/python (20766): [INFO ] [GL ] Texture max size <4096>
I/python (20766): [INFO ] [GL ] Texture max units <16>
I/python (20766): [INFO ] [Window ] auto add sdl2 input provider
I/python (20766): [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
I/python (20766): [INFO ] [Text ] Provider: sdl2
I/python (20766): [INFO ] [GL ] NPOT texture support is available
I/python (20766): Traceback (most recent call last):
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/app/main.py", line 3, in
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/scanner/kivy_garden/zbarcam/init.py", line 15, in
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/scanner/kivy_garden/zbarcam/zbarcam.py", line 11, in
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/scanner/kivy_garden/zbarcam/utils.py", line 2, in
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/scanner/PIL/ImageOps.py", line 23, in
I/python (20766): File "/home/sergey/PycharmProjects/Kivy_tutorial/Scanner/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/scanner/PIL/Image.py", line 69, in
I/python (20766): ImportError: dlopen failed: cannot locate symbol "log" referenced by "_imaging.so"...
I/python (20766): Python for android ended.
Log.txt
main.py