Hello Guest

3.3.2 native JARs missing at MavenCentral

  • 2 Replies
  • 1010 Views
*

Offline sgold

  • *
  • 10
3.3.2 native JARs missing at MavenCentral
« on: June 24, 2023, 11:23:19 »
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?

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: 3.3.2 native JARs missing at MavenCentral
« Reply #1 on: June 24, 2023, 15:35:32 »
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.

*

Offline sgold

  • *
  • 10
Re: 3.3.2 native JARs missing at MavenCentral
« Reply #2 on: June 25, 2023, 00:37:06 »
Thank you for those tips! I'll keep pushing forward with Vulkan and LWJGL ...