kivy / kivy-ios

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

matplotlib recipe #858

Closed tcaduser closed 9 months ago

tcaduser commented 9 months ago

Resolves issue #712 and issue #857

Successfully builds matplotlib and its dependency kiwisolver. Leverages existing recipes for numpy, freetype, etc.

Takes care of all known duplicate symbol issues. Meets pep8 requirements.

To build:

python3 -mvenv venv
source venv/bin/activate
cd kivy-ios
pip install -e .
toolchain build matplotlib

screenshot when integrated with my application:

IMG_3256

tcaduser commented 9 months ago

FWIW, that screenshot is from my iphone, and not a simulator.

tcaduser commented 9 months ago

Looks like I needed to include some template files in the Manifest. These were brought over from p4a.

AndreMiras commented 9 months ago

Great that you saw it too, thanks for addressing already. Here's the error for records.

2023-09-09T22:05:49.5544410Z FileNotFoundError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/kivy_ios-2023.8.24-py3.11.egg/kivy_ios/recipes/matplotlib/setup.cfg.template'

I'll be away from keyboard until tomorrow UTC to review/merge. Good luck for the build :crossed_fingers:

tcaduser commented 9 months ago

I think I found the last issue in getting the right include file for numpy.

tcaduser commented 9 months ago

Thanks so much for your help in getting this reviewed and accepted.