Hello Guest

lwjgl 3.3.0 glfw .UnsatisfiedLinkError

  • 5 Replies
  • 1466 Views
lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« on: November 17, 2021, 19:02:45 »
hi i wanted to try the NFD lib so i take the come from this repo
https://github.com/LWJGL/lwjgl3/blob/master/modules/samples/src/test/java/org/lwjgl/demo/util/nfd/HelloNFD.java
and try it and on the 3.2.3 version is working just fine and when i wanted to try the new 3.3.0 version
is throw this Exception
Code: [Select]
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'int org.lwjgl.system.libffi.FFIClosure.offsets(long)'
at org.lwjgl.system.libffi.FFIClosure.offsets(Native Method)
at org.lwjgl.system.libffi.FFIClosure.<clinit>(FFIClosure.java:48)
at org.lwjgl.system.Callback.<clinit>(Callback.java:43)
at app.boot.Run.helloNFD(Run.java:46)
at app.boot.Run.main(Run.java:35)

Re: lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« Reply #1 on: November 17, 2021, 19:04:12 »
is on the GLFWErrorCallback.createPrint(System.err).set(); function

*

Offline spasi

  • *****
  • 2228
    • WebHotelier
Re: lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« Reply #2 on: November 17, 2021, 21:17:31 »
Try running your app with -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true. It will print some output that will likely help you resolve the issue.

Re: lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« Reply #3 on: November 19, 2021, 16:44:27 »
were do i add thoes commands in the intellij?

*

Offline spasi

  • *****
  • 2228
    • WebHotelier
Re: lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« Reply #4 on: November 19, 2021, 16:48:10 »
Run menu -> Edit configurations -> select your app -> Modify options -> Add VM options

(I'm on IDEA 2021.2.3)

Re: lwjgl 3.3.0 glfw .UnsatisfiedLinkError
« Reply #5 on: November 20, 2021, 09:32:57 »
Code: [Select]
[LWJGL] Version: 3.3.0 build 21
[LWJGL] OS: Windows 10 v10.0
[LWJGL] JRE: Windows amd64 17.0.1
[LWJGL] JVM: Java HotSpot(TM) 64-Bit Server VM v17.0.1+12-LTS-39 by Oracle Corporation
[LWJGL] Loading JNI library: lwjgl
[LWJGL] Module: org.lwjgl
[LWJGL] Using SharedLibraryLoader...
[LWJGL] Found at: C:\Users\matan\AppData\Local\Temp\lwjglmatan\3.3.0-build-21\lwjgl.dll
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\matan\AppData\Local\Temp\lwjglmatan\3.3.0-build-21\lwjgl.dll
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'int org.lwjgl.system.libffi.FFIClosure.offsets(long)'
at org.lwjgl.system.libffi.FFIClosure.offsets(Native Method)
at org.lwjgl.system.libffi.FFIClosure.<clinit>(FFIClosure.java:48)
at org.lwjgl.system.Callback.<clinit>(Callback.java:43)
at app.boot.Run.helloNFD(Run.java:45)
at app.boot.Run.main(Run.java:35)