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

macOS x86 - Missing native .dylib library #13

Open
SonarSonic opened this issue Jan 3, 2025 · 0 comments
Open

macOS x86 - Missing native .dylib library #13

SonarSonic opened this issue Jan 3, 2025 · 0 comments

Comments

@SonarSonic
Copy link

Hello,
Thanks for all your work!
It looks like at the moment the .jar only contains a native .dylib for arm64 and not one for x86.
Below is the report when running on x86, it will fail to find the native library when trying to use setDarkModeForWindowFrame

Thank you,
Ollie

dlopen(/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp, 0x0009): tried: '/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (no such file), '/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))

java.lang.UnsatisfiedLinkError: dlopen(/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp, 0x0009): tried: '/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (no such file), '/Users/USER/Library/Caches/JNA/temp/jna10892866817727672837.tmp' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
	at com.sun.jna.Native.open(Native Method)
	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:298)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:483)
	at com.sun.jna.Library$Handler.<init>(Library.java:197)
	at com.sun.jna.Native.load(Native.java:622)
	at com.pixelduke.window.FXThemesLibrary.<clinit>(MacThemeWindowManager.java:99)
	at com.pixelduke.window.MacThemeWindowManager.setDarkModeForWindowFrame(MacThemeWindowManager.java:26)
	at com.pixelduke.transit.TransitTheme.applyTheme(TransitTheme.java:107)
	at com.pixelduke.transit.TransitTheme$1.invalidated(TransitTheme.java:55)
	at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
	at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:147)
	at com.pixelduke.transit.TransitTheme.setScene(TransitTheme.java:180)
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