3.3.2 native JARs missing at MavenCentral

Started by sgold, June 24, 2023, 11:23:19

Previous topic - Next topic

sgold

I'm trying to build a Vulkan app using Gradle and LWJGL v3.3.2 on Windows 11.
I get the following build error:

```console
> Error while evaluating property 'relativeClasspath' of task ':app:startScripts'.
   > Could not resolve all files for configuration ':app:runtimeClasspath'.
      > Could not find lwjgl-vulkan-3.3.2-natives-windows.jar (org.lwjgl:lwjgl-vulkan:3.3.2).
        Searched in the following locations:
            https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-vulkan/3.3.2/lwjgl-vulkan-3.3.2-natives-windows.jar
```

When I browse to https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-vulkan/3.3.2
I see there are natives for macos and macos-arm64, but not for Linux or Windows.

How should I obtain Linux/Windows native JARs for Vulkan?

spasi

The Vulkan bindings do not require natives to work. LWJGL calls the functions provided by the Vulkan loader/driver directly (via the org.lwjgl.system.JNI class, which lives in the core LWJGL library).

The native jars for macOS are there because macOS does not natively support Vulkan. They contain a build of MoltenVK, which is a Vulkan emulation layer over the Metal API.

sgold

Thank you for those tips! I'll keep pushing forward with Vulkan and LWJGL ...