Instalacja lwjgl 3

0

Witam, chciałem zainstalować lwjgl z tej strony: http://www.lwjgl.org/download Próbuję zainstalować według tego poradnika: Gdy pobieram plik i otwieram jego zawartośc NIE MA poszczegółnych plików. Panowie pomóżcie mi w instalacjii tego.

0

Ale z czym masz problem? http://www.lwjgl.org/guide

0

Wydaje mi sie, że robie wszystko jak trzeba. Stworzyłem w projekcie folder lib, skopiowałem wszystkie pliki, nastepnie dodałem do projektu plik lwjgl.jar, w eclipse rozwinąłem ten plik, edytowałem Native library location na folder native. Gdy uruchamiam program wyskakuje mi błąd:Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\Gry\lib\native\lwjgl.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:96)
at org.lwjgl.Sys.<clinit>(Sys.java:117)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
at renderEngine.DisplayManager.createDisplay(DisplayManager.java:23)
at engineTester.MainGameLoop.main(MainGameLoop.java:18)

0

Can't load AMD 64-bit .dll on a IA 32-bit platform
http://stackoverflow.com/questions/23555366/cant-load-ia-32-bit-dll-on-a-amd-64-bit-platform-lwjgl

I had the same problem. I had to look at the LWJGL code to discover that if loading lwjgl64.dll fails, it will try to load the 32 bit version instead. The confusing part is that this failure is silent. You can make it produce a log by activating LWJGL debug mode, with for example:

System.setProperty("org.lwjgl.util.Debug", "true");

Doing that revealed the following error trying to load the 64 bit lib:

[error] [LWJGL] Failed to load 64 bit library: lwjgl64.dll: Access is denied

If you have the same, a solution seems to be giving proper "execute" permissions to the file (this post helped, for me). I'm not sure how to do that in all windows versions, but thankfully I can access my files through linux too, and a simple chmod +x worked.

FIX: Open Build Path Configuration -> Order and Export Tab -> move libraries that depend on lwjgl down at the bottom. Hope this helps others.

0

Przeniosłem ten plik na dół ale dalej nie pomogło

0

A patrzyłeś na bibliotekę LibGDX?:) dodam że też korzysta z lwgl:)

0

Oo thx popatrze :D

1 użytkowników online, w tym zalogowanych: 0, gości: 1