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

UNITY DllNotFoundException: realsense2 assembly MAC OS M1 #11934

Closed
CodinSegal opened this issue Jun 22, 2023 · 6 comments
Closed

UNITY DllNotFoundException: realsense2 assembly MAC OS M1 #11934

CodinSegal opened this issue Jun 22, 2023 · 6 comments

Comments

@CodinSegal
Copy link

CodinSegal commented Jun 22, 2023


Required Info
Camera Model D400
Firmware Version Latest
Operating System & Version MacOS M1
Platform PC/Laptop
SDK Version SDK 2.0 (v2.54.1)
Language C#/unity
Segment Robot

Issue Description

Hello, So i am currently working on a project with robots of UR where we need to do a pick and place with object dection and we are using the intel sense d435, we are starting to integrate the part of intel sense in unity. So we downloaded the unity package and when I try to run it in unity 2021.3.2f on Mac M1 its says :

DllNotFoundException: realsense2 assembly:<unknown assembly> type:<unknown type> member:(null) Intel.RealSense.Context..cctor () (at <174f4594684e480d948f375945ed1b21>:0) Rethrow as TypeInitializationException: The type initializer for 'Intel.RealSense.Context' threw an exception. RsDeviceListener+<Start>d__10.MoveNext () (at Assets/RealSenseSDK2.0/Misc/Utils/RsDeviceListener.cs:27) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

So we fallowed the steps of the README but we cant make the sample scene working the error we get its the one above,

Do you guys have any suggestion to get this part up and running ?

Cause we can see the dll file there in RealSenseSDK2.0/Plugins

@CodinSegal CodinSegal changed the title DllNotFoundException: realsense2 assembly MAC OS M1 UNITY DllNotFoundException: realsense2 assembly MAC OS M1 Jun 22, 2023
@MartyG-RealSense
Copy link
Collaborator

Hi @CodinSegal In the detailed guide for installation of RealSense on Mac (including M1 models) at the link below, the comments section at the bottom of the page has advice on getting it working with Unity.

https://lightbuzz.com/realsense-macos/

@CodinSegal
Copy link
Author

Hello @MartyG-RealSense, thank you for the suggestion. I followed this tutorial before encountering the issue, but unfortunately, I still can't get it to work on my MacBook Pro. It seems like it might not be compatible with macOS. If you have any other resources or suggestions, I would greatly appreciate it.

@MartyG-RealSense
Copy link
Collaborator

That tutorial is the only guide available for using Unity with modern MacOS versions, unfortunately.

RealSense Unity wrapper installation guidance for Mac is also shared at #1576 (comment) although it is 5 years old and for Intel based Macs rather than the Apple Silicon M1 models of Mac.

There are also currently camera detection problems with the recent MacOS Ventura at the time of writing this. If you are using Ventura then #11815 is the central place on this support forum where I am directing Ventura users who are having problems so that they can discuss it amongst themselves, and you will therefore be notified automatically of any solutions that the RealSense Mac community comes up with for getting librealsense working on Ventura if you have left a comment there.

@MartyG-RealSense
Copy link
Collaborator

Hi @CodinSegal Do you have an update about this case that you can provide, please? Thanks!

@CodinSegal
Copy link
Author

@MartyG-RealSense, thanks for all the links, I have tried to fallow all the references you gave me and i still had problem setting up even out side of unity. So I had to move into a linux enviorment, where I have been using it in a python evironment. Thank you for your support.

@MartyG-RealSense
Copy link
Collaborator

You are very welcome. Thanks very much for the update. As you moved from Mac to Linux, I will close this case. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants