SICKAG / sick_scan_xd

A versatile driver for a wide range of SICK LiDAR and RADAR devices, providing support for both Linux (native, ROS 1, ROS 2) and Windows (native, ROS 2) platforms.
Apache License 2.0
110 stars 86 forks source link

Issues trying to compile in VS2022 Professional for Windows without ROS #404

Closed Nigel-BMV closed 1 month ago

Nigel-BMV commented 1 month ago

I am attempting to build the SDK to get the necessary files that are required to get the example working.

I have followed the instructions in the 'Build on Windows'; as well as the 'Build the shared library on Windows' sections.

Currently the project remains unbuildable. The following error is preventing the full-build of sick_scan_xd :

cannot open source file "json/json.h"

The 'minimum_sick_scan_apiclient' returns the following error **## WARNING SickScanApiLoadLibrary: LoadLibrary("sick_scan_xd_shared_lib.dll") failed

ERROR SickScanApiCreate: library not loaded

ERROR SickScanApi, cacheFunctionPtr(SickScanApiInitByCli): library not initialized

ERROR SickScanApi, cacheFunctionPtr(SickScanApiInitByCli): GetProcAddress failed

ERROR SickScanApiInitByCli: library call SickScanApiInitByCli() failed, error code 3

ERROR SickScanApi, cacheFunctionPtr(SickScanApiRegisterCartesianPointCloudMsg): library not initialized

ERROR SickScanApi, cacheFunctionPtr(SickScanApiRegisterCartesianPointCloudMsg): GetProcAddress failed

ERROR SickScanApiRegisterCartesianPointCloudMsg: library call SickScanApiRegisterCartesianPointCloudMsg() failed, error code 3**_

Likely due to the missing dll.

rostest commented 1 month ago

Thank you for your feedback. File "json.h" is required for an optional dockertests. We updated CMakeLists.txt to avoid this dependency. Please check out the update in branch feature/issue_update_2407xx and rebuild.