Hello,
I am trying to install shapediver on an M1Pro Macbook via the package manager.
During Installation and when opening Rhino I get this error:
An exception happened when loading the SdRhinoStargateClient plugin:
System.DllNotFoundException: Unable to load shared library '/Users/robin/Library/Application Support/McNeel/Rhinoceros/packages/8.0/ShapeDiver/1.17.3/runtimes/osx-arm64/native/librhino3dm_native.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/robin/Library/Application Support/McNeel/Rhinoceros/packages/8.0/ShapeDiver/1.17.3/runtimes/osx-arm64/native/librhino3dm_native.dylib, 0x0001): tried: '/Users/robin/Library/Application Support/McNeel/Rhinoceros/packages/8.0/ShapeDiver/1.17.3/runtimes/osx-arm64/native/librhino3dm_native.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/robin/Library/Application Support/McNeel/Rhinoceros/packages/8.0/ShapeDiver/1.17.3/runtimes/osx-arm64/native/librhino3dm_native.dylib' (no such file), '/Users/robin/Library/Application Support/McNeel/Rhinoceros/packages/8.0/ShapeDiver/1.17.3/runtimes/osx-arm64/native/librhino3dm_native.dylib' (no such file)
at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
at ShapeDiver.Common.Container.IocContainerSingleton.LoadNativeLibrary(String library)
at ShapeDiver.Common.Container.IocContainerSingleton.LoadNativeLibraries(IEnumerable`1 libraries)
at ShapeDiver.Common.Container.Initializer.InitializeContainer(Assembly assembly, IEnumerable`1 assemblyNames, IHandlerSelector selector, IEnumerable`1 nativeLibraries)
at ShapeDiver.Common.Container.Initializer.InitializeContainer(Assembly assembly, IEnumerable`1 assemblyNames, IHandlerSelector selector, String nativeLibrary)
at SdRhinoStargateClient.SdRhStargateIocContainer.Init()
The folder where the files are installed looks like this:
as you can see the filepaths are wrong. They use a backslah instead of a slash which leads to the folders not getting created correctly.
What is the solution to this?
Is there a special install procedure on mac?
Thank you for your help.
Edit:
Fixing the filepaths does indeed fix the problem and lets me open Rhino and Grasshopper without an Error. This is a workaround at best but it seems as though this issue should be easy to fix in the installation script.