GdxRuntimeException: Couldn't load shared library 'libgdx64.dylib' for target: Mac OS X, 64-bit
See original GitHub issueHello,
Since the latest build (1.2.1-SNAPSHOT
) Im getting this exception on Desktop:
Exception in thread "main" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'libgdx64.dylib' for target: Mac OS X, 64-bit
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:117)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:47)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:76)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64)
at com.kingmonkey.badfermin.Main.main(Main.java:60)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to read file for extraction: libgdx64.dylib
at com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:125)
at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:255)
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:114)
My LwjglApplicationConfiguration looks like:
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = GameConfig.GAME_TITLE;
cfg.vSyncEnabled = true;
cfg.useGL30 = true;
cfg.width = 480;
cfg.height = 800;
Setting useGL30 to false
doesn’t solve it 😦
Any idea what might it be?
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
libGDX applet on Mac OS X can't load libgdx.dylib
The error. Couldn't load shared library 'libgdx.dylib' for target: Mac OS X, 32-bit. means that the Libgdx Java code cannot find the Libgdx...
Read more >Having some trouble with World : r/libgdx - Reddit
GdxRuntimeException : Couldn't load shared library 'libgdx-box2d64.dylib' for target: Mac OS X, 64-bit at com.badlogic.gdx.utils.
Read more >App can't start because of broken/unverifiable dylib
I have an MacOS App that get's accepted by Transporter/App Store Connect and is available to download in TestFlight. The App also installs...
Read more >Developers - I can't run my application - - Bountysource
GdxRuntimeException : Couldn't load shared library 'libgdx64.dylib' for target: Mac OS X, 64-bit at com.badlogic.gdx.utils.
Read more >Libgdx Couldn't load shared library 'libgdx-freetype64.dylib' for ...
在Mac上使用Libgdx开发时,用到了freetype,结果运行时报错Couldn't load shared library 'libgdx-freetype64.dylib' for target: Mac OS X, 64-bit。
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh you deadly right…the native dependency was hard coded, seems to be an old version with no x64 support. now everything works!
Those jars certainly have all the necessary natives.