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

Support for Apple ARM? #316

Open
dhleong opened this issue Feb 18, 2024 · 0 comments
Open

Support for Apple ARM? #316

dhleong opened this issue Feb 18, 2024 · 0 comments

Comments

@dhleong
Copy link

dhleong commented Feb 18, 2024

Hello! Is there any chance of some updates to support running on Apple ARM? Currently, attempting to do so gets me this:

Exception in thread "main" com.badlogic.gdx.utils.SharedLibraryLoadRuntimeException: Couldn't load shared library 'libgdxarm64.dylib' for target: Mac OS X, ARM, 64-bit
	at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:128)
	at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:30)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3NativesLoader.load(Lwjgl3NativesLoader.java:28)
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.initializeGlfw(DesktopMini2DxGame.java:61)
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.<init>(DesktopMini2DxGame.java:72)
	at net.dhleong.hacker.desktop.LoggingDesktopGame.<init>(DesktopLauncher.kt:97)
	at net.dhleong.hacker.desktop.DesktopLauncher.main(DesktopLauncher.kt:86)
Caused by: com.badlogic.gdx.utils.SharedLibraryLoadRuntimeException: Unable to read file for extraction: libgdxarm64.dylib
	at com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:137)
	at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:293)
	at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:124)
	... 6 more

It seems like the latest versions of libgdx support it by way of LWJGL 3.3.3, but there are some binary incompatibilities that prevent it from being a simple drop-in fix. If I update my grade to exclude mini2dx-libgdx-desktop-lwjgl3's dependencies on com.badlogicgames.gdx.gdx-platform and com.badlogicgames.gdx.gdx-backend-lwjgl3 and replace them with up-to-date versions I get further, but still can't run:

Exception in thread "main" java.lang.NoSuchFieldError: useGL30
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.createGlfwWindow(DesktopMini2DxGame.java:423)
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.createWindow(DesktopMini2DxGame.java:394)
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.createWindow(DesktopMini2DxGame.java:380)
	at com.badlogic.gdx.backends.lwjgl3.DesktopMini2DxGame.<init>(DesktopMini2DxGame.java:96)
	at my.game.DesktopLauncher.main(DesktopLauncher.kt:86)

Thanks in advance!

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

1 participant