kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
758 stars 238 forks source link

libpng recipe won't build #808

Closed Neutron-Jimmy closed 1 year ago

Neutron-Jimmy commented 1 year ago

Versions

Describe the bug I'm having trouble getting Kivy-iOS toolchain to build the libpng recipe. It gives me the error listed below when building. I tried to manually add the libpng tar.gz to the .cache folder of the project, and while it did install libpng, it's still not working. I tested the app with .jpeg files which works.

To Reproduce toolchain build python3 kivy pillow libpng

Expected behavior I expect the app to load .png files just as it does .jpeg without issue. I believe the libpng recipe that it is downloading is corrupted or possibly some other issue with my kivy-ios installation

Logs

[INFO    ] Download libpng
[INFO    ] Downloading http://downloads.sourceforge.net/sourceforge/libpng/libpng-1.6.26.tar.gz
[WARNING ] Error extracting the archive /Users/jimmy/Desktop/MyApp/.cache/libpng-libpng-1.6.26.tar.gz
[WARNING ] This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.
[WARNING ] /Users/jimmy/Desktop/MyApp/.cache/libpng-libpng-1.6.26.tar.gz
[DEBUG   ] New State: libpng.download at 2023-05-18 19:34:47.001188
[INFO    ] Extract libpng
[INFO    ] Extract libpng for x86_64
[WARNING ] Error extracting the archive /Users/jimmy/Desktop/MyApp/.cache/libpng-libpng-1.6.26.tar.gz
[WARNING ] This is usually caused by a corrupt download. The file will be removed and re-downloaded on the next run.
[WARNING ] /Users/jimmy/Desktop/MyApp/.cache/libpng-libpng-1.6.26.tar.gz

Additional context I have the app working as intended on Android, and it mostly works on iOS aside from .png files not being supported at the moment. I tried downloading the libpng tar.gz directly from the link that kivy-ios is grabbing it from, and it installs seemingly without a problem, but it doesn't seem to work as my app still doesn't support .png files.

Neutron-Jimmy commented 1 year ago

I was able to get libpng to build in a different clean environment, but it's still not working (but libjpeg works for some reason), I'll give more details on it if I can't get it to work in a few days.