stereolabs / zed-csharp-api

C# API for the ZED SDK
MIT License
10 stars 3 forks source link

Cann't build the image_Capture for unable to find the sl_zed_interface.dll #10

Closed Lancename closed 4 years ago

Lancename commented 4 years ago

it is like that the sl_zed_interface.dll is created in C , and cann't import in C#. can any one solve it ? thank you very much

obraun-sl commented 4 years ago

sl_zed_interface.dll is a C wrapper library of the C++ SDK. It must be in C so that C# can import the function (through dllimport). Please follow the instructions on the ReadMe to build the C# Net wrapper that will install sl_zed_interface in the appropriate location.

Lancename commented 4 years ago

sl_zed_interface.dll is a C wrapper library of the C++ SDK. It must be in C so that C# can import the function (through dllimport). Please follow the instructions on the ReadMe to build the C# Net wrapper that will install sl_zed_interface in the appropriate location.

thanks for quick reply. i build the stereolabs.zed,and there are the sl_zed_interface.dll and stereolabs.zed.dll in the "bin" ,but however when i build the tutorials, it doesn't work well, and show the error that cann't import the sl_zed_omyerface.dll because it is a C wrapper. I am sure that there is no problem before this, so should i write the code to import this c wrapper by myself(using dllimport) ,or this project already comes with it ?

Lancename commented 4 years ago

sl_zed_interface.dll is a C wrapper library of the C++ SDK. It must be in C so that C# can import the function (through dllimport). Please follow the instructions on the ReadMe to build the C# Net wrapper that will install sl_zed_interface in the appropriate location.

image

Lancename commented 4 years ago

sl_zed_interface.dll is a C wrapper library of the C++ SDK. It must be in C so that C# can import the function (through dllimport). Please follow the instructions on the ReadMe to build the C# Net wrapper that will install sl_zed_interface in the appropriate location.

thanks for quick reply. i build the stereolabs.zed,and there are the sl_zed_interface.dll and stereolabs.zed.dll in the "bin" ,but however when i build the tutorials, it doesn't work well, and show the error that cann't import the sl_zed_omyerface.dll because it is a C wrapper. I am sure that there is no problem before this, so should i write the code to import this c wrapper by myself(using dllimport) ,or this project already comes with it ?

image

Lancename commented 4 years ago

sl_zed_interface.dll is a C wrapper library of the C++ SDK. It must be in C so that C# can import the function (through dllimport). Please follow the instructions on the ReadMe to build the C# Net wrapper that will install sl_zed_interface in the appropriate location.

thank you for your reply. I get it . I remove the sl_zed_interface in the picture and replace it using stereolabs.zed. and it work well.
image