Hello Guest

Recent Posts

Pages: 1 [2] 3 4 ... 10
-Dorg.lwjgl.util.DebugLoader=true is not meant to be used as a program argument to be received by your own program in the String[] args array of the main method.
Instead, it is meant (like all "-D" arguments) as a JVM argument. So, in IntelliJ IDEA you do not set this in the "Program Arguments:" edit field, but in the "VM options:" field.
I'm getting the following error. When starting a project in Intellij IDEA.

Code: [Select]
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Stopping due to fatal error!
Successfully Wrote Crash Report!
java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
at org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl/org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl/org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.glfw/org.lwjgl.glfw.GLFW.<clinit>(GLFW.java:674)

I have tried following https://www.youtube.com/watch?v=ZR9hNrnT2QE and https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Install under the "IntelliJ IDEA" subheader. Neither have worked and have given me that error message. I have also tried putting "-Dorg.lwjgl.util.DebugLoader=true" in the program arguments. But it seems to not give me any extra information. In eclipse I would fix this issue by adding the *natives*.jar files into the classpath section. But I don't think I am able to do that in intellij.

Also as expected both of the following lines return null.

Code: [Select]

What can I do to fix this?
Lightweight Java Gaming Library / Re: Recomendations for debug GUI?
« Last post by kappa on December 30, 2019, 14:03:35 »
Just use the LWJGL3 bindings for Nuklear or NanoVG.
Lightweight Java Gaming Library / Re: Recomendations for debug GUI?
« Last post by KaiHH on December 29, 2019, 17:02:07 »
Since LWJGL 3 is not a rendering engine but (merely) Java bindings to low-level libraries like OpenGL, Vulkan, etc., any such solution will obviously depend on your own layers of abstraction in your own application/engine. You can of course simply render a line with OpenGL or Vulkan in many different ways (targeting different versions of OpenGL or Vulkan).
Lightweight Java Gaming Library / Recomendations for debug GUI?
« Last post by Peter M Ashford on December 29, 2019, 09:31:09 »
I wondered if anyone had any suggestions for making a quick and dirty debug GUI layer for LWJGL3?  Something like Gizmos in Unity where you could render lines, maybe points over top of your rendered image? 

Vulkan / Re: How to initialize VkApplicationInfo
« Last post by ealrann on December 25, 2019, 09:42:26 »

There are some Vulkan demo in the LWJGL repository, it's a good start :
OpenGL / Re: lwjgl box color leaking to background
« Last post by Animus_Surge on December 25, 2019, 06:47:07 »
Rrrrrright... but I don't understand it. GL_LIGHTING isn't even being called at all. All that I'm calling beforehand is GL_BLEND_MODE, and that's to help render transparent images.
Vulkan / How to initialize VkApplicationInfo
« Last post by sfulham on December 25, 2019, 05:06:07 »
Hello all,

How am I supposed to initialize a VkApplicationInfo?

BTW I am trying to follow https://vulkan-tutorial.com/

OpenGL / Re: lwjgl box color leaking to background
« Last post by abcdef on December 25, 2019, 01:19:29 »
On your stacktrace you need to read the error message

API_ID_DEPRECATED_TARGET deprecated behavior warning has been generated. Enable of GL_LIGHTING capability is deprecated.
Bug Reports / RFE / Re: Nuklear segfault reading
« Last post by mudlee on December 24, 2019, 14:39:28 »
Spasi you always suprise me. Answering that quickly even in the middle of Christmas... Must give you a huge thumbsup!

You're right, initiating the class does not bind it to anything, hence when the GC is active it will screw up everything. THX!

The other problem was that I accidentally deleted `glfwPollEvents` from the main loop...
Pages: 1 [2] 3 4 ... 10