-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
sweethome3d: fix list of platforms and darwin build #359837
base: master
Are you sure you want to change the base?
Conversation
221f9b5
to
433e320
Compare
433e320
to
4801848
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream doesn't seem to include binaries for all architectures supported by jdk
.
See ${src}/lib
Edit:
Seems like only the following systems should be supported by this:
i686-linux
i686-windows
x86_64-darwin
x86_64-linux
x86_64-windows
Obviously, the Windows ones aren't really relevant for Nixpkgs.
Edit 2:
When trying to start the application on aarch64-linux:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.eteks.sweethome3d.SweetHome3DBootstrap.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load library 'gluegen_rt' generically including [/nix/store/1kpzmzzbr72ppjml5jdvc1dk4n23dvfj-libglvnd-1.7.0/lib, /nix/store/3zbirj0yiss34apibqs3gscfxnxwc9rb-pipewire-1.2.6-jack/lib], nor as [/nix/store/1kpzmzzbr72ppjml5jdvc1dk4n23dvfj-libglvnd-1.7.0/lib/libgluegen_rt.so, /nix/store/3zbirj0yiss34apibqs3gscfxnxwc9rb-pipewire-1.2.6-jack/lib/libgluegen_rt.so, /usr/java/packages/lib/libgluegen_rt.so, /usr/lib64/libgluegen_rt.so, /lib64/libgluegen_rt.so, /lib/libgluegen_rt.so, /usr/lib/libgluegen_rt.so, /home/scrumplex/Projects/nixpkgs/libgluegen_rt.so, /home/scrumplex/Projects/nixpkgs/natives/linux-aarch64/libgluegen_rt.so]
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:634)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
at com.jogamp.common.os.Platform$1.run(Platform.java:321)
at com.jogamp.common.util.SecurityUtil.doPrivileged(SecurityUtil.java:80)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:151)
at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:83)
at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:66)
at com.jogamp.common.util.SecurityUtil.doPrivileged(SecurityUtil.java:80)
at jogamp.opengl.ThreadingImpl.<clinit>(ThreadingImpl.java:66)
at com.jogamp.opengl.Threading.disableSingleThreading(Threading.java:164)
at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:129)
at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267)
at javax.media.j3d.GraphicsConfigTemplate3D.isGraphicsConfigSupported(GraphicsConfigTemplate3D.java:348)
at com.eteks.sweethome3d.j3d.Component3DManager.createGraphicsConfigurationTemplate3D(Unknown Source)
at com.eteks.sweethome3d.j3d.Component3DManager.<init>(Unknown Source)
at com.eteks.sweethome3d.j3d.Component3DManager.getInstance(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.addComponent3DRenderingErrorObserver(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.init(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.main(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
03b50c1
to
024a3d6
Compare
024a3d6
to
ea674d1
Compare
Technically this package does not run on aarch64-darwin though. Obviously many people enable Rosetta on their systems, but this package is technically x86_64-darwin only. You would still be able to use this package on |
@Scrumplex which package doesn't run on aarch64-darwin? I just tried it and it seems fine (no Rosetta installed, see terminal to the right) |
That's interesting. I wonder what's up with the missing macOS aarch64 natives. Are they not needed at all? |
Opened #375760 where I use ![]() |
Added darwin support to this java package
#ZurichZHF
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.