HumbleUI / Skija

Java bindings for Skia
Apache License 2.0
498 stars 34 forks source link

Add a linux arm64 build #40

Closed JakeWharton closed 1 year ago

JakeWharton commented 1 year ago

I'm targeting an embedded Linux installation on an ARM device

tonsky commented 1 year ago

PR?

JakeWharton commented 1 year ago

I did take a brief look before filing the issue to see if I could, but the intricacies of the bespoke python, cmake, and of skia itself are beyond my capabilities. After all, it's why I need the wrapper in the first place!

Glavo commented 1 year ago

I will try to complete it in the next few months - but I can't guarantee it.

Glavo commented 1 year ago

One good news: It's easy to make it work. You just need to compile Skia and Skija yourself.

image

But there are still some things stopping us.

First of all, some examples will cause crashes, and the reasons need to be investigated. I have no experience in debugging JNI, so it is difficult for me to find the real reason.

Secondly, there is a more important problem, that is GitHub Action does not currently provide CI servers on Linux ARM64 platform (https://github.com/actions/runner-images/issues/5631).

Maybe we can wait for GitHub to provide it, but it will take us several months or even years.

Another solution is cross-compilation, but it takes me more time to solve various problems, and it is more difficult. I will try to do it, but I can't provide any guarantee.

Glavo commented 1 year ago

@JakeWharton

I have completed cross-compilation adaptation. I think you can get Linux ARM64 build in the next version.

But there are still some bugs that need to be solved. I don't necessarily have time to do it. Maybe it needs the help of others.

tonsky commented 1 year ago

Thanks to @Glavo, Skija 0.109.2 has linux arm64 version. Let’s open separate issues if there are any issues with it