Livox-SDK / Livox-SDK2

Drivers for receiving LiDAR data and controlling lidar, support Lidar HAP and Mid-360.
Other
130 stars 88 forks source link

Ubuntu 24.04 Compatibility #76

Open JoLichtenfeld opened 6 months ago

JoLichtenfeld commented 6 months ago

Hello,

is this SDK compatible with Ubuntu 24.04 / do you have plans to port it?

Thanks!

porizou commented 5 months ago

Hi

I am using the LIVOX MID360 with Ubuntu 24.04 LTS and ROS2 Jazzy. By adding <cstdint> to define.h and file_manager.h, I was able to build and use the Livox-SDK2 on Ubuntu 24.04.

diff --git a/sdk_core/comm/define.h b/sdk_core/comm/define.h
index 66996bf..fa4ce9f 100644
--- a/sdk_core/comm/define.h
+++ b/sdk_core/comm/define.h
@@ -33,6 +33,8 @@
 #include <atomic>

 #include "livox_lidar_def.h"
+#include <cstdint>  // add
+

 namespace livox {
 namespace lidar {
diff --git a/sdk_core/logger_handler/file_manager.h b/sdk_core/logger_handler/file_manager.h
index 242a431..21ac536 100644
--- a/sdk_core/logger_handler/file_manager.h
+++ b/sdk_core/logger_handler/file_manager.h
@@ -28,6 +28,7 @@
 #include <string>
 #include <vector>
 #include <map>
+#include <cstdint>  // add
JoLichtenfeld commented 5 months ago

Thanks, works for me as well.

celaraze commented 5 months ago

Very helpful, Thanks.