Hello Guest

Recent Posts

Pages: 1 ... 8 9 [10]
91
Lightweight Java Gaming Library / Re: Failed to locate library: lwjgl.dll
« Last post by Herter on September 11, 2019, 18:56:21 »
Make sure IntelliJ has added the LWJGL jars (including the -native ones) to the classpath. You can verify this by expanding the JVM launch command in the Run output (click on the gray "C:\Program ...).

If you're still having trouble, attach some screenshots of the IntelliJ project setup. Specifically, the LWJGL library configuration and the module dependencies tab.

Hi thanks for your advice as I hadn't actually checked the classpath. But they seem to all be there and the files do exist in that folder.

Output:
Code: [Select]
"C:\Program Files\Java\java-se-8u40-ri\bin\java" -Didea.launcher.port=7537 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\java-se-8u40-ri\jre\lib\charsets.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\jce.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\jsse.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\management-agent.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\resources.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\rt.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\dnsns.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\localedata.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\nashorn.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\sunec.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\java-se-8u40-ri\jre\lib\ext\zipfs.jar;C:\Dev\lwjgl-test\out\production\lwjgl-test;C:\Dev\lwjgl-test\libs\lwjgl.jar;C:\Dev\lwjgl-test\libs\lwjgl-egl.jar;C:\Dev\lwjgl-test\libs\lwjgl-lz4.jar;C:\Dev\lwjgl-test\libs\lwjgl-nfd.jar;C:\Dev\lwjgl-test\libs\lwjgl-ovr.jar;C:\Dev\lwjgl-test\libs\lwjgl-par.jar;C:\Dev\lwjgl-test\libs\lwjgl-sse.jar;C:\Dev\lwjgl-test\libs\lwjgl-stb.jar;C:\Dev\lwjgl-test\libs\lwjgl-vma.jar;C:\Dev\lwjgl-test\libs\lwjgl-bgfx.jar;C:\Dev\lwjgl-test\libs\lwjgl-cuda.jar;C:\Dev\lwjgl-test\libs\lwjgl-glfw.jar;C:\Dev\lwjgl-test\libs\lwjgl-jawt.jar;C:\Dev\lwjgl-test\libs\lwjgl-llvm.jar;C:\Dev\lwjgl-test\libs\lwjgl-lmdb.jar;C:\Dev\lwjgl-test\libs\lwjgl-meow.jar;C:\Dev\lwjgl-test\libs\lwjgl-odbc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opus.jar;C:\Dev\lwjgl-test\libs\lwjgl-yoga.jar;C:\Dev\lwjgl-test\libs\lwjgl-zstd.jar;C:\Dev\lwjgl-test\libs\lwjgl-assimp.jar;C:\Dev\lwjgl-test\libs\lwjgl-nanovg.jar;C:\Dev\lwjgl-test\libs\lwjgl-openal.jar;C:\Dev\lwjgl-test\libs\lwjgl-opencl.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengl.jar;C:\Dev\lwjgl-test\libs\lwjgl-openvr.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyfd.jar;C:\Dev\lwjgl-test\libs\lwjgl-tootle.jar;C:\Dev\lwjgl-test\libs\lwjgl-vulkan.jar;C:\Dev\lwjgl-test\libs\lwjgl-xxhash.jar;C:\Dev\lwjgl-test\libs\lwjgl-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-nuklear.jar;C:\Dev\lwjgl-test\libs\lwjgl-shaderc.jar;C:\Dev\lwjgl-test\libs\lwjgl-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyexr.jar;C:\Dev\lwjgl-test\libs\lwjgl-jemalloc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengles.jar;C:\Dev\lwjgl-test\libs\lwjgl-remotery.jar;C:\Dev\lwjgl-test\libs\lwjgl-rpmalloc.jar;C:\Dev\lwjgl-test\libs\lwjgl-libdivide.jar;C:\Dev\lwjgl-test\libs\lwjgl-egl-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-egl-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-lz4-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-lz4-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-nfd-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-nfd-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-ovr-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-ovr-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-par-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-par-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-sse-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-sse-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-stb-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-stb-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-vma-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-vma-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-bgfx-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-bgfx-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-cuda-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-cuda-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-glfw-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-glfw-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-jawt-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-jawt-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-llvm-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-llvm-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-lmdb-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-lmdb-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-meow-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-meow-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-odbc-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-odbc-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-opus-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opus-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-yoga-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-yoga-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-zstd-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-zstd-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-assimp-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-assimp-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-nanovg-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-nanovg-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-openal-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-openal-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-opencl-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opencl-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengl-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengl-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-openvr-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-openvr-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyfd-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyfd-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-tootle-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-tootle-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-vulkan-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-vulkan-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-xxhash-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-xxhash-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-nuklear-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-nuklear-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-shaderc-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-shaderc-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyexr-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyexr-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-jemalloc-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-jemalloc-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengles-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengles-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-remotery-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-remotery-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-rpmalloc-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-rpmalloc-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-libdivide-javadoc.jar;C:\Dev\lwjgl-test\libs\lwjgl-libdivide-sources.jar;C:\Dev\lwjgl-test\libs\lwjgl-lz4-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-nfd-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-ovr-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-par-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-sse-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-stb-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-vma-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-bgfx-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-glfw-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-llvm-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-lmdb-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-meow-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-opus-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-yoga-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-zstd-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-assimp-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-nanovg-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-openal-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengl-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-openvr-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyfd-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-tootle-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-xxhash-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-nuklear-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-shaderc-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-tinyexr-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-jemalloc-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-opengles-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-remotery-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-rpmalloc-natives-windows.jar;C:\Dev\lwjgl-test\libs\lwjgl-libdivide-natives-windows.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain HelloWorld
Hello LWJGL 3.2.3 build 13!
[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.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
at org.lwjgl.system.Callback.<clinit>(Callback.java:41)
at HelloWorld.init(HelloWorld.java:37)
at HelloWorld.run(HelloWorld.java:22)
at HelloWorld.main(HelloWorld.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

Process finished with exit code 1
92
General Java Game Development / Re: Several errors during build
« Last post by Lobo on September 11, 2019, 13:57:15 »
Very cool. It works great thanks!
93
General Java Game Development / Re: Several errors during build
« Last post by spasi on September 11, 2019, 13:41:19 »
Yes, with "ant release". More instructions:

Code: [Select]
set JAVA8_HOME=<path to JDK 8> // optional, without it you'll get a warning
set JAVA_HOME=<path to JDK 10+> // can build with 8 or 9 too, but 10+ will build all multi-release classes and modern javadoc
set LWJGL_BUILD_OFFLINE=true // optional, without it native libraries will be downloaded from latest LWJGL snapshot. Useful when testing local native code changes.
ant release // see the RELEASE folder when done
ant release -Djavadoc.skip=true // much faster, does not build the per-module javadoc
94
General Java Game Development / Re: Several errors during build
« Last post by Lobo on September 11, 2019, 11:23:16 »
Oh great that works! Thanks a lot!

I didnt changed the build-bindings.xml. I giess the full instruction was that what was missing on my attempt to build.

Maybe just a naive question. The build is done and I have a lot of class files now, is there a way that the ant build creates jar files at the end?

Thanks
95
General Java Game Development / Re: Several errors during build
« Last post by spasi on September 11, 2019, 09:32:48 »
About the initial error: Did you disable some bindings in build-bindings.xml? The build script hasn't been updated to handle every combination gracefully (e.g. a recent change has made GLFW depend on all of: EGL, OpenGL, OpenGL ES, Vulkan). Out of the box though, it should build fine.

On Windows, native compilation requires the MSVC toolchain to be configured properly. The easiest way is to add the vcvarsall.bat script to your PATH (for VS 2019 its default location is: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary). Then run:

Code: [Select]
vcvarsall amd64 // for a x64 build, or
vcvarsall amd64_x86 // for a x86 build (you must also run the LWJGL build with a x86 JDK)

Full instructions for Windows x64:

Code: [Select]
// install VS 2017 or 2019
// install JDK 8+
// install Apache Ant
set JAVA_HOME=<path to JDK 8+>
vcvarsall amd64
ant // compiles templates, generates code, compiles Java and native code, runs tests
ant demo -Dclass=org.lwjgl.demo.glfw.Gears // runs the Gears sample
96
Lightweight Java Gaming Library / Re: Failed to locate library: lwjgl.dll
« Last post by spasi on September 11, 2019, 09:12:36 »
Make sure IntelliJ has added the LWJGL jars (including the -native ones) to the classpath. You can verify this by expanding the JVM launch command in the Run output (click on the gray "C:\Program ...).

If you're still having trouble, attach some screenshots of the IntelliJ project setup. Specifically, the LWJGL library configuration and the module dependencies tab.
97
General Java Game Development / Re: Several errors during build
« Last post by Lobo on September 11, 2019, 09:02:52 »
Thanks for the answer. I added my installed VS 2017 to the Path variable.

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;"

If I check out the project new, I get still the same errors. If I try to rebuild I get now new errors, see attachment.

Would be great if you have another idea why it doesnt want to build.

Thanks

Best
Lobo

98
Lightweight Java Gaming Library / Re: Failed to locate library: lwjgl.dll
« Last post by Herter on September 11, 2019, 08:13:52 »
Please see: https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Install

That is the guide I followed. I've restarted several times, same error everytime. :(
99
General Java Game Development / Re: Several errors during build
« Last post by KaiHH on September 11, 2019, 07:58:27 »
You need a native compiler chain in the path (e.g. Visual Studio 2019) to fully build LWJGL, because native libraries are being built as part of the ant build.
Pages: 1 ... 8 9 [10]