Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Mac silicon (arm-64) #4

Open
jumarko opened this issue Feb 21, 2024 · 0 comments
Open

Support for Mac silicon (arm-64) #4

jumarko opened this issue Feb 21, 2024 · 0 comments

Comments

@jumarko
Copy link

jumarko commented Feb 21, 2024

When I try to run JInputHook.initialize(); on MacBook m3,
I get the following error

java.lang.UnsatisfiedLinkError: /private/var/folders/pm/4gmxlr215r1ffxksn8vsxkf40000gn/T/JInputHook-7515375722774249331/libjinput-osx.dylib: dlopen(/private/var/folders/pm/4gmxlr215r1ffxksn8vsxkf40000gn/T/JInputHook-7515375722774249331/libjinput-osx.dylib, 0x0001): tried: '/private/var/folders/pm/4gmxlr215r1ffxksn8vsxkf40000gn/T/JInputHook-7515375722774249331/libjinput-osx.dylib' (fat file, but missing compatible architecture (have 'unknown,i386,x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/pm/4gmxlr215r1ffxksn8vsxkf40000gn/T/JInputHook-7515375722774249331/libjinput-osx.dylib' (no such file), '/private/var/folders/pm/4gmxlr215r1ffxksn8vsxkf40000gn/T/JInputHook-7515375722774249331/libjinput-osx.dylib' (fat file, but missing compatible architecture (have 'unknown,i386,x86_64', need 'arm64'))
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418)
	at java.base/java.lang.Runtime.load0(Runtime.java:852)
	at java.base/java.lang.System.load(System.java:2025)
	at net.java.games.input.OSXEnvironmentPlugin.lambda$loadLibrary$0(OSXEnvironmentPlugin.java:68)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
	at net.java.games.input.OSXEnvironmentPlugin.loadLibrary(OSXEnvironmentPlugin.java:64)
	at net.java.games.input.OSXEnvironmentPlugin.<clinit>(OSXEnvironmentPlugin.java:93)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:421)
	at java.base/java.lang.Class.forName(Class.java:412)
	at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:133)
	at dyorgio.runtime.jinputhook.JInputHook.updateInputDevices(JInputHook.java:158)
	at dyorgio.runtime.jinputhook.JInputHook.<init>(JInputHook.java:85)
	at dyorgio.runtime.jinputhook.JInputHook.initialize(JInputHook.java:308)

Using JDK 21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant