JFormDesigner / FlatLaf

FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
https://www.formdev.com/flatlaf/
Apache License 2.0
3.42k stars 272 forks source link

Linux on ARM Support #899

Open roli8200 opened 1 month ago

roli8200 commented 1 month ago

May You consider adding support for Linux on ARM specially for Raspberry PI. This would add a huge benefit for a lot of applications.

DevCharly commented 2 weeks ago

I tried this some time ago, but Gradle did not support cross compiling for ARM on x86_64. This is necessary because GitHub Actions offer only x86_64 Linux and I need to compile the libraries on GitHub Actions.

synthfi commented 2 weeks ago

Does this preclude compiling the repo on ARM directly? Am interested in using this, but one of my dev environments is Asahi Linux on a MacBook m1

DevCharly commented 1 week ago

Don't know. Try it 😉 You probably need to add the aarch64 (or arm64) architecture here:

https://github.com/JFormDesigner/FlatLaf/blob/b97424f7677d9517f40fdb25163273dbd7f96a24/flatlaf-natives/flatlaf-natives-linux/build.gradle.kts#L31

Sample from Windows build:

https://github.com/JFormDesigner/FlatLaf/blob/b97424f7677d9517f40fdb25163273dbd7f96a24/flatlaf-natives/flatlaf-natives-windows/build.gradle.kts#L33-L37

Maybe Gradle 8.11 (not yet released) is needed. From release notes https://docs.gradle.org/8.11-rc-3/release-notes.html#native-toolchains:

Linux arm64 as a build target This release adds Clang and GCC support to Gradle on Linux platforms that use the ARM or AArch64 architecture

gk-brown commented 6 days ago

Looks like Gradle 8.11 is out now... https://gradle.org/install/