neoforged / ModDevGradle

A Gradle plugin for developing Minecraft mods using NeoForge
https://projects.neoforged.net/neoforged/moddevgradle
GNU Lesser General Public License v2.1
30 stars 5 forks source link

Provide LWJGL natives for Linux on Arm #137

Open Erdragh opened 3 weeks ago

Erdragh commented 3 weeks ago

Currently, trying to run runClient or start an IDE run results in:

[LWJGL] Platform/architecture mismatch detected for module: org.lwjgl
    JVM platform:       Linux aarch64 21.0.4
        OpenJDK 64-Bit Server VM v21.0.4+7-LTS by Eclipse Adoptium
    Platform available on classpath:
        linux/x64
[LWJGL] Failed to load a library. Possible solutions:
    a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
    b) Add the JAR that contains the shared library to the classpath.

It seems MDG provides the Linux x64 LWJGL natives instead of the Arm natives.

shartte commented 3 weeks ago

Hi! And running the client using the Vanilla launcher / NeoForge installer works?

Erdragh commented 3 weeks ago

The Vanilla launcher isn't available for Linux on ARM, so that I can't test. But PrismLauncher can install and start a NeoForge instance, which iirc also just uses the installer: image https://mclo.gs/S76qf6z

shartte commented 3 weeks ago

Adding a lib like that is really a mod at that point... Especially since Mojang ships modified lwjgl libraries for MacOS that are only available on their Maven. We really have to think twice before doing this.

Technici4n commented 6 days ago

I don't see any LWJGL linux ARM native here: https://piston-meta.mojang.com/v1/packages/4298ca546ceb8a7ba52b7e154bc0df4d952b8dbf/1.21.1.json (Search for aarch64 and arm64; I only see netty)