question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GdxRuntimeException: Couldn't load shared library 'libgdx64.dylib' for target: Mac OS X, 64-bit

See original GitHub issue

Hello,

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:closed
  • Created 9 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
trommlbommlcommented, Dec 23, 2015

Oh you deadly right…the native dependency was hard coded, seems to be an old version with no x64 support. now everything works!

0reactions
MobiDevelopcommented, Dec 23, 2015

Those jars certainly have all the necessary natives.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found