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

Couldn't load shared library 'gdx-freetype64.dll' in latest nightlies #1821

Closed
labodj opened this issue May 9, 2014 · 4 comments
Closed

Comments

@labodj
Copy link

labodj commented May 9, 2014

I just updated my build.gradle files to reflect 1.0.2 changes by changing or adding these lines:

classpath 'com.android.tools.build:gradle:0.10+'
gdxVersion = '1.0.2-SNAPSHOT'
roboVMVersion = '0.0.12'
maven { url "https://oss.sonatype.org/content/repositories/releases/" }

Now when I start the desktop app in windows 8.1 update 1 it returns an error:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx-freetype64.dll' for target: Windows 8.1, 64-bit
    at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:115)
    at com.badlogic.gdx.graphics.g2d.freetype.FreeType.initFreeType(FreeType.java:541)
    at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.<init>(FreeTypeFontGenerator.java:102)
    at com.marclabsoftware.games.myapp.utilities.FontFactory.<init>(FontFactory.java:49)
    at com.marclabsoftware.games.myapp.utilities.Utilities.init(Utilities.java:96)
    at com.marclabsoftware.games.myapp.MyApp.create(MyApp.java:54)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:136)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to read file for extraction: gdx-freetype64.dll
    at com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:124)
    at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:245)
    at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
    ... 7 more

No problem in android with 1.0.2
In windows 8 If I go back to 1.0.1 it works good

@badlogic
Copy link
Member

badlogic commented May 9, 2014

uhm @NathanSweet did you merge tjat sharedloader pr already? maybe that's
the cause.
On May 9, 2014 9:40 AM, "LaboDJ" notifications@github.com wrote:

I just updated my build.gradle files to reflect 1.0.2 changes changing or
adding these lines:

classpath 'com.android.tools.build:gradle:0.10+'
gdxVersion = '1.0.2-SNAPSHOT'
roboVMVersion = '0.0.12'
maven { url "https://oss.sonatype.org/content/repositories/releases/" }

Now when I start the app it returns an error:

Exception in thread "LWJGL Application"
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library
'gdx-freetype64.dll' for target: Windows 8.1, 64-bit
at
com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:115)
at
com.badlogic.gdx.graphics.g2d.freetype.FreeType.initFreeType(FreeType.java:541)
at
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.(FreeTypeFontGenerator.java:102)
at
com.marclabsoftware.games.myapp.utilities.FontFactory.(FontFactory.java:49)
at
com.marclabsoftware.games.myapp.utilities.Utilities.init(Utilities.java:96)
at com.marclabsoftware.games.myapp.MyApp.create(MyApp.java:54)
at
com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:136)
at
com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to read file
for extraction: gdx-freetype64.dll
at
com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:124)
at
com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:245)
at
com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
... 7 more

If I go back to 1.0.1 it runs well


Reply to this email directly or view it on GitHubhttps://github.com//issues/1821
.

@NathanSweet
Copy link
Member

Don't think I merged any lib loader PR lately.

@labodj
Copy link
Author

labodj commented May 9, 2014

I updated android studio, gradle cleaned the project and the local repos and now it works
Don't really know why

@xiaolei123
Copy link

You Should Add :
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"

on Your Gradle

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

5 participants