FXThemes icon indicating copy to clipboard operation
FXThemes copied to clipboard

macOS x86 - Missing native .dylib library

Open SonarSonic opened this issue 11 months ago • 1 comments

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)

SonarSonic avatar Jan 03 '25 15:01 SonarSonic

Hi Ollie,

Sorry for the late reply,

I don't have the resources to support x86 unfortunately (time, etc). I only intend to support windows and mac's latest versions (although I also support windows 10 which is older).

Thanks, kind regards,

On Fri, Jan 3, 2025 at 3:11 PM Ollie Lansdell @.***> wrote:

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.(Library.java:197) at com.sun.jna.Native.load(Native.java:622) at com.pixelduke.window.FXThemesLibrary.(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)

— Reply to this email directly, view it on GitHub https://github.com/dukke/FXThemes/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUVAHZPFRTK5AXTD6Z5KMT2I2SDBAVCNFSM6AAAAABUR3FZHWVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DONZTGQYTIOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Pedro Duque Vieira (Duke) - https://www.pixelduke.com

dukke avatar May 25 '25 21:05 dukke