LWJGL missing EGL .dll

I hope someone here can help me with this. I just tried to add EGL to my game (for shared contexts), and it can't find the egl .dll file. Build.gradle:
val lwjglVersion = "3.3.3"
val jomlVersion = "1.10.7"

val lwjglNatives = ...

dependencies {
api("org.joml:joml:1.10.5")

implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion"))

implementation("org.lwjgl", "lwjgl")
implementation("org.lwjgl", "lwjgl-egl")
implementation("org.lwjgl", "lwjgl-glfw")
implementation("org.lwjgl", "lwjgl-opengl")
runtimeOnly("org.lwjgl", "lwjgl", classifier = lwjglNatives)
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = lwjglNatives)
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = lwjglNatives)
implementation("org.joml", "joml", jomlVersion)

api(project(":glwt"))
api(project("builder"))
}
val lwjglVersion = "3.3.3"
val jomlVersion = "1.10.7"

val lwjglNatives = ...

dependencies {
api("org.joml:joml:1.10.5")

implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion"))

implementation("org.lwjgl", "lwjgl")
implementation("org.lwjgl", "lwjgl-egl")
implementation("org.lwjgl", "lwjgl-glfw")
implementation("org.lwjgl", "lwjgl-opengl")
runtimeOnly("org.lwjgl", "lwjgl", classifier = lwjglNatives)
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = lwjglNatives)
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = lwjglNatives)
implementation("org.joml", "joml", jomlVersion)

api(project(":glwt"))
api(project("builder"))
}
If I try adding
runtimeOnly("org.lwjgl", "lwjgl-egl", classifier = lwjglNatives)
runtimeOnly("org.lwjgl", "lwjgl-egl", classifier = lwjglNatives)
gradle can't find it? Please help, been struggling with this for an hour.
26 Replies
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @The Typhothanian! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
0x150
0x1502mo ago
show errors both the runtime error when it cant find it and the gradle error
The Typhothanian
The TyphothanianOP2mo ago
Sorry
java.lang.UnsatisfiedLinkError: Failed to locate library: libEGL.dll
java.lang.UnsatisfiedLinkError: Failed to locate library: libEGL.dll
then lemme get the gradle one...
Could not determine the dependencies of task ':beryllium:shadowJar'.
> Could not resolve all files for configuration ':beryllium:runtimeClasspath'.
> Could not find lwjgl-egl-3.3.3-natives-windows.jar (org.lwjgl:lwjgl-egl:3.3.3).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-egl/3.3.3/lwjgl-egl-3.3.3-natives-windows.jar

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Could not determine the dependencies of task ':beryllium:shadowJar'.
> Could not resolve all files for configuration ':beryllium:runtimeClasspath'.
> Could not find lwjgl-egl-3.3.3-natives-windows.jar (org.lwjgl:lwjgl-egl:3.3.3).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-egl/3.3.3/lwjgl-egl-3.3.3-natives-windows.jar

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
The Typhothanian
The TyphothanianOP2mo ago
anyone pls?
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
nikcho-kouhai
nikcho-kouhai2mo ago
is the file there? I meant check if its in your local repository. It's probably not considering the error, but if it is delete it and reload your project*
The Typhothanian
The TyphothanianOP2mo ago
It isn't, and I checked where it's looking, and it doesn't exist. The same syntax works for the other things, but not egl I mean for the file and the website
nikcho-kouhai
nikcho-kouhai2mo ago
egl 3.2.3 worked for me on gradle. On maven the higher version works fine. I suppose you can try any of the versions above 3.2.3 and below 3.3.3 see which is the latest one that works for gradle actually 3.3.2 worked so I guess go with that one
The Typhothanian
The TyphothanianOP2mo ago
oh dang lemme check that
nikcho-kouhai
nikcho-kouhai2mo ago
actually 3.3.3 also works after specifying the version? implementation("org.lwjgl", "lwjgl-egl","3.3.3") no idea what gradle is doing
The Typhothanian
The TyphothanianOP2mo ago
Well the base egl stuff works, the natives don't
nikcho-kouhai
nikcho-kouhai2mo ago
GitHub
Failed to locate library: libEGL.dll · Issue #914 · LWJGL/lwjgl3
Version 3.3.2 Platform Windows x64 JDK JustJ OpenJDK 17.0.7 Module EGL Bug description When I downlaod custom package, it don't have egl native jars. When I run the code, the native library is ...
nikcho-kouhai
nikcho-kouhai2mo ago
it turns out "it's not a bug, it's a feature" you are just gonna have to find natives-windows.jar and put it in your classpath
nikcho-kouhai
nikcho-kouhai2mo ago
https://www.lwjgl.org/customize you can use this as pointed out by the installation guide (https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Install) Just uncheck everything, then choose EGL and on the left side there is "natives". Choose whichever platform you want (in your case windows) and download it.
GitHub
1.2. Install
The LWJGL 3 Wiki. Contribute to LWJGL/lwjgl3-wiki development by creating an account on GitHub.
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
The Typhothanian
The TyphothanianOP2mo ago
Tyvm I tried that. Downloaded build.gradle.kts with egl, including natives, and it wasn't there. Even downloaded the zip and it wasn't there. Tried 3.3.3 and 3.3.2.
The Typhothanian
The TyphothanianOP2mo ago
GitHub
How to get EGL natives? · Issue #1022 · LWJGL/lwjgl3
Question Pretty self-explanatory. I can't seem to find the natives for EGL. The customize download site doesn't include the egl natives. Can't find them with the same syntax as other st...
The Typhothanian
The TyphothanianOP2mo ago
hope they can help
nikcho-kouhai
nikcho-kouhai2mo ago
well it's in the zip bundle. It would be great if you can get it working with gradle assuming it's actually in the repositories and not done on purpose.
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
The Typhothanian
The TyphothanianOP2mo ago
Really? My zips don't have egl natives, just lwjgl natives
nikcho-kouhai
nikcho-kouhai2mo ago
you are right. My bad. It's interesting, because egl.dll isn't even listed here: https://www.lwjgl.org/browse/stable/windows/x64 You might have to build it yourself or something.. I guess wait a response on the github issue
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
The Typhothanian
The TyphothanianOP2mo ago
bro it keeps saying that
JavaBot
JavaBot2mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server