fabmax / physx-jni

Java JNI bindings for Nvidia PhysX
MIT License
95 stars 9 forks source link

Linux incompatibility #69

Open haubna opened 6 months ago

haubna commented 6 months ago

A user reported a crash on Linux. I am not that familiar with it but it seems like his distribution of Linux is missing something that others have.

Operating System: Linux (amd64) version 6.5.0-35-generic

Caused by: java.lang.IllegalStateException: Failed loading native PhysX libraries for platform LINUX
    at de.fabmax.physxjni.Loader.load(Loader.java:37)
    at physx.NativeObject.<clinit>(NativeObject.java:7)
    ... 9 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/de.fabmax.physx-jni/2.3.2/libPhysXJniBindings_64.so: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /tmp/de.fabmax.physx-jni/2.3.2/libPhysXJniBindings_64.so)
    at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
    at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
    at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
    at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.base/java.lang.Runtime.load0(Unknown Source)
    at java.base/java.lang.System.load(Unknown Source)
    at de.fabmax.physxjni.NativeLib.load(NativeLib.java:49)
    at de.fabmax.physxjni.Loader.load(Loader.java:35)

Edit: The user fixed it by following the instructions here.

rosanyadav08 commented 5 months ago

Can we bind Linux drivers in windows like touchpad driver audio driver etc