Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux on ARM Support #899

Open
roli8200 opened this issue Oct 17, 2024 · 4 comments
Open

Linux on ARM Support #899

roli8200 opened this issue Oct 17, 2024 · 4 comments

Comments

@roli8200
Copy link

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
Copy link
Collaborator

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
Copy link

synthfi commented Nov 4, 2024

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
Copy link
Collaborator

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

targetMachines = listOf( machines.linux.x86_64 )

Sample from Windows build:

targetMachines = listOf(
machines.windows.x86,
machines.windows.x86_64,
machines.windows.architecture( "aarch64" )
)

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants