Skip to content

Latest commit

 

History

History
35 lines (17 loc) · 840 Bytes

how_to_create_a_csharp_project.md

File metadata and controls

35 lines (17 loc) · 840 Bytes

How to create a csharp project

You can follow a sample setup:

  • You need to install Swig.
  • Set BUILD_CSHARP option to ON
  cmake -DBUILD_CSHARP=ON .. -G "Visual Studio 15 2017 Win64" "-DCMAKE_TOOLCHAIN_FILE=[vcpkgroot]\scripts\buildsystems\vcpkg.cmake"
  • Compiling the SDK will generate the CSharp interface file and ydlidar_csharp.dll library

0

  • Copy all *.cs files generated by the YDLidar-SDK to your project

1

  • If the following error occurs, you need to copy the compiled ydlidar_csharp.dll to the binary directory

2

  • Copy ydlidar_csharp.dll to your project Binary directory

2

  • Set up lidar test for TG30

2