I have been working on my LWJGL project for some time now. I have been updating my IDE
, IntelliJ in this case, and afterwards, my project has issues to find certain native DLLs.
The lib really came a long way (I first encountered it in its early 2.0 days) and plenty of nice convient tools exist now, like the Maven-POM Generator on the website. Since I am using XML-code generated (partially, I admit) by said tool, I think the POM-stuff is in order and it did work fine
beforehand. Compilation still works but running the code generates these errors:
[LWJGL] Failed to load a library
Well, obviously this happens only at runtime, the bane of the native code. In this case, it is having an issue with lwjgl_stb.dll
but I think this is just because it hits that part of the code first. I debugged a bit and figured out that, to my surprise, the native-DLLs are taken from a temporary folder, in this case it was C:\Users\[MYUSR]~1\AppData\Local\Temp\lwjgl[MYUSR]\3.2.3-build-13
. That directory contained:
which is certainly not enough, I would have expected a few more DLLs, given my code, including the STB-ones. I must admit that I was a bit confused about this temp-business, what exactly is going on there? I would have expected some JARs in my target folder, instead there is a temporary one while the only JAR in the target-folder is the lwjglx-debug-1.0.0.jar
-one, probably due to my debugging.
A call with
tells me that lwjgl-natives-windows-amd64
is active, which seems okay to me.Is there some known incompatibility with Java 15, the IntelliJ IDEA or newer Maven versions?
Thanks in advance. Happy new year EDIT:
every time I try to attach the POM, the ngix
of the forum gives me a 500