gdx-setup always badly generate files

Anything libgdx related goes here!

gdx-setup always badly generate files

Postby Sewer » Tue Feb 12, 2019 1:22 pm

Firsty sorry, but my english is so bad.
I have a problem with gdx-setup, when i'm generating files generator logging succeeded, but when i running DesktopLauncher
ide says
Exception in thread "main" com.badlogic.gdx.utils.GdxRuntimeException: Unable to extract LWJGL natives.
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:67)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:81)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:69)
at com.mygdx.game.desktop.DesktopLauncher.main(DesktopLauncher.java:10)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to read file for extraction: lwjgl64.dll
at com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:133)
at com.badlogic.gdx.utils.SharedLibraryLoader.extractFile(SharedLibraryLoader.java:155)
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:55)
... 3 more


Thanks for help
Last edited by Sewer on Tue Feb 12, 2019 2:33 pm, edited 1 time in total.
Sewer
 
Posts: 7
Joined: Tue Feb 12, 2019 1:10 pm

Re: gdx-setup always badly generate files

Postby evilentity » Tue Feb 12, 2019 1:33 pm

And how are you running this? Make sure you are following the starting guide https://libgdx.badlogicgames.com/documentation/
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4768
Joined: Wed Aug 24, 2011 11:37 am

Re: gdx-setup always badly generate files

Postby obigu » Tue Feb 12, 2019 3:24 pm

There was yesterday a change on native libraries that may be related (Gdx Setup link from official page points to nightlies build which doesn't guarantee it's 100% stable). Try redownloading Gdx Setup and use it to generate your project see if it's been fixed with the latest commits.
obigu
 
Posts: 130
Joined: Fri Aug 02, 2013 4:47 pm

Re: gdx-setup always badly generate files

Postby Sewer » Tue Feb 12, 2019 3:50 pm

yes, I followed the guide. Everything I did is attached to the pictures. Unfortunately, there were errors with sdk and gradle
https://imgur.com/a/rYgTQ0O
Sewer
 
Posts: 7
Joined: Tue Feb 12, 2019 1:10 pm

Re: gdx-setup always badly generate files

Postby obigu » Tue Feb 12, 2019 4:10 pm

Quick look and you didn't follow the docs. JDK must be 8 (https://libgdx.badlogicgames.com/docume ... oid-studio)
obigu
 
Posts: 130
Joined: Fri Aug 02, 2013 4:47 pm

Re: gdx-setup always badly generate files

Postby Sewer » Tue Feb 12, 2019 4:38 pm

that is, I can not use the new version of java, nothing 8?
Sewer
 
Posts: 7
Joined: Tue Feb 12, 2019 1:10 pm

Re: gdx-setup always badly generate files

Postby Sewer » Tue Feb 12, 2019 4:45 pm

okay, I changed the java version to 8, but unfortunately I still have errors
https://imgur.com/a/n7qxsfe
Sewer
 
Posts: 7
Joined: Tue Feb 12, 2019 1:10 pm

Re: gdx-setup always badly generate files

Postby evilentity » Tue Feb 12, 2019 8:02 pm

When you get it to work you can go play with jdk 10.
Go to the folder with your project in command line and run it with gradle wrapper, ./gradlew desktop:run --stacktrace
If it doesnt work perhaps the error will point you out in right direction
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4768
Joined: Wed Aug 24, 2011 11:37 am

Re: gdx-setup always badly generate files

Postby Sewer » Tue Feb 12, 2019 9:07 pm

again, there are errors ... You may have some idea to fix it? :|
https://pastebin.com/3Vbk1eSe
Sewer
 
Posts: 7
Joined: Tue Feb 12, 2019 1:10 pm

Re: gdx-setup always badly generate files

Postby evilentity » Tue Feb 12, 2019 9:21 pm

Go to the folder and see if the file is there C:/Users/Sewerynek/.m2/repository/org/lwjgl/lwjgl/lwjgl-platform/2.9.2/lwjgl-platform-2.9.2-natives-windows.jar
Probably not.
Is your internet limited? Gradle needs to download a bunch of libraries for stuff to work
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4768
Joined: Wed Aug 24, 2011 11:37 am

Next

Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron