python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

[Request]: Skia-python

Open jhay06 opened this issue 2 years ago • 3 comments

would like to request for skia-python recipe please , this will solve svg viewing on kivy python

jhay06 avatar Oct 17 '23 13:10 jhay06

Argh, again @jhay06 you have beaten me to it - if you filed elsewhere, it is good to put a reference so the issues are linked. E.g.

Coped from:

https://github.com/kivy/kivy/issues/8333#issuecomment-1774446466 :

The skia-python wheels are built by: https://github.com/kyamagu/skia-python/blob/main/.github/workflows/ci.yml

So mostly, if anybody wants skia-python to work against kivy on android with pythonforandroid, they probably need to add a new section in that file. Most likely using the newer aarch64 Linux section as example - unlike the other linuxes/windows/macosx, building for aarch64 linux uses qemu, so it most similar to other archs uses qemu to build software, such as android.

HinTak avatar Oct 23 '23 05:10 HinTak

Before dealing with problems specific to skia-python and pybind11, I think it is necessary to be able to build skia for android and ios in a way compatible / integrable with kivy first.

Skia-python needs a copy of skia built with the additional compiler option -frtti . So being able to build skia first (or have it available as an android/ ios static libraries ) is a must. And skia itself is not a standard part of android/ios.

HinTak avatar Oct 24 '23 02:10 HinTak

The instructions for building skia itself is at https://skia.org/docs/user/build/ . These are adapted and scripted in skia-python/scripts/build*.sh scripts for linux/macos/windows. Probably a new build_android.sh and build_ios.sh are needed.

HinTak avatar Oct 24 '23 02:10 HinTak