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

Provide LWJGL natives for Linux on Arm #137

Open
Erdragh opened this issue Aug 15, 2024 · 4 comments
Open

Provide LWJGL natives for Linux on Arm #137

Erdragh opened this issue Aug 15, 2024 · 4 comments

Comments

@Erdragh
Copy link

Erdragh commented Aug 15, 2024

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

shartte commented Aug 15, 2024

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

@Erdragh
Copy link
Author

Erdragh commented Aug 15, 2024

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

shartte commented Aug 15, 2024

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

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)

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

3 participants