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

dotnet run / watch on MacOS cannot load StereoKitC #775

Open
mrstruijk opened this issue Nov 14, 2023 · 2 comments
Open

dotnet run / watch on MacOS cannot load StereoKitC #775

mrstruijk opened this issue Nov 14, 2023 · 2 comments

Comments

@mrstruijk
Copy link

Description

When do either dotnet run or dotnet watch, the logs state that StereoKitC cannot be found, even though it's installed, and building to device works as well. Is this something Mac specific, or am I doing something wrong? I get the issue when doing the exact steps in the Getting Started VS Code documentation

Platform / Environment

I'm working on M1 macOS 14.1, I'm using latest VS Code 1.84.1. I've installed dotnet 7.0.483, the android workload, openJDK 17, Android API level 33 via Android Studio, Xamarin via VS.
Stereokit was installed (latest), as was the Templates (latest)

Logs or exception details

➜ ProjectName dotnet run
[SK error] Failed to load StereoKitC!
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'StereoKitC' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC.dylib, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC.dylib' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC.dylib' (no such file)
dlopen(/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC.dylib, 0x0001): tried: '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC.dylib' (no such file), '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC.dylib' (no such file)
dlopen(StereoKitC.dylib, 0x0001): tried: 'StereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSStereoKitC.dylib' (no such file), '/usr/lib/StereoKitC.dylib' (no such file, not in dyld cache), 'StereoKitC.dylib' (no such file), '/usr/local/lib/StereoKitC.dylib' (no such file), '/usr/lib/StereoKitC.dylib' (no such file, not in dyld cache)
dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC.dylib, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC.dylib' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC.dylib' (no such file)
dlopen(/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC.dylib, 0x0001): tried: '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC.dylib' (no such file), '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC.dylib' (no such file)
dlopen(libStereoKitC.dylib, 0x0001): tried: 'libStereoKitC.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibStereoKitC.dylib' (no such file), '/usr/lib/libStereoKitC.dylib' (no such file, not in dyld cache), 'libStereoKitC.dylib' (no such file), '/usr/local/lib/libStereoKitC.dylib' (no such file), '/usr/lib/libStereoKitC.dylib' (no such file, not in dyld cache)
dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/StereoKitC' (no such file)
dlopen(/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC, 0x0001): tried: '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC' (no such file), '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/StereoKitC' (no such file)
dlopen(StereoKitC, 0x0001): tried: 'StereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OSStereoKitC' (no such file), '/usr/lib/StereoKitC' (no such file, not in dyld cache), 'StereoKitC' (no such file), '/usr/local/lib/StereoKitC' (no such file), '/usr/lib/StereoKitC' (no such file, not in dyld cache)
dlopen(/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC, 0x0001): tried: '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC' (no such file), '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.13/libStereoKitC' (no such file)
dlopen(/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC, 0x0001): tried: '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC' (no such file), '/Users/mrstruijk/Current StereoKit Projects/ProjectName/bin/Debug/net7.0/libStereoKitC' (no such file)
dlopen(libStereoKitC, 0x0001): tried: 'libStereoKitC' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibStereoKitC' (no such file), '/usr/lib/libStereoKitC' (no such file, not in dyld cache), 'libStereoKitC' (no such file), '/usr/local/lib/libStereoKitC' (no such file), '/usr/lib/libStereoKitC' (no such file, not in dyld cache)

at StereoKit.NativeAPI.sk_step(Action app_update)
at StereoKit.SK.Step(Action onStep) in //StereoKit/SK.cs:line 198
at StereoKit.SK.Run(Action onStep, Action onShutdown) in /
/StereoKit/SK.cs:line 227
at Program.

$(String[] args) in /Users/mrstruijk/Current StereoKit Projects/ProjectName/Program.cs:line 4

@maluoi
Copy link
Collaborator

maluoi commented Nov 14, 2023

The Simulator won't run on Mac 😢 StereoKit doesn't have a Mac OS backend, or a Metal rendering implementation!

MacOS backend might not be terrible to add, but Metal would be a lot of work. An alternative to Metal might be coaxing out some of Mac's legacy OpenGL support, if it's still there, but I think there's some limitations there. I'm not really planning on doing this work myself anytime soon.

@mrstruijk
Copy link
Author

Ajjj! That's unfortunate. Not a worry though. Thanks for the info :)

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

2 participants