LWJGL 3.1.1 libraries to connect ideas

Started by wartemw, November 26, 2016, 10:58:00

Previous topic - Next topic

wartemw

how to connect LWJGL 3.1.1 library to intellij idea?

spasi

Do you use Maven or Gradle? Or do you want to add the LWJGL jars manually?

wartemw

QuoteDo you use Maven or Gradle? Or do you want to add the LWJGL jars manually?
manually

spasi

Go to our download page, select nightly, select zip bundle, review the options and choose the bindings you're interested in, then click on Generate Bundle.

When the download is complete, extract its contents in your project.

In IntelliJ, go to Project Structure -> Libraries -> New Project Library. Add all LWJGL JARs (including the natives) to the library and add the library as a dependency to your project module(s). You do not need to extract the native libraries, it will work fine.

If you want to match the Maven/Gradle behavior exactly, you could create 2 separate libraries:

- One with the class+source JARs, make it a compile dependency of your module(s).
- One with the natives JARs, make it a runtime dependency of your module(s).

You can do this in the Project Structure -> Modules -> select a module -> Dependencies tab, by changing the Scope of each dependency.

wartemw

Quotespasi
Is everything being done properly?

spasi

The lwjgl*-natives-windows.jar files are missing. They should be added as classes (i.e. as simple jars on the classpath).

wartemw

QuoteThe lwjgl*-natives-windows.jar files are missing. They should be added as classes (i.e. as simple jars on the classpath).
the same mistake

spasi

Try Run -> Edit Configurations... -> VM options: -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true

This will print additional output that may help with identifying the issue.

wartemw

QuoteTry Run -> Edit Configurations... -> VM options: -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true

spasi

Is lwjgl-natives-windows.jar in the library?

wartemw

QuoteIs lwjgl-natives-windows.jar in the library?
Thank! all natives bedides lwjgl-natives-windows.jar )