Livox-SDK / livox_ros_driver2

Livox device driver under Ros(Compatible with ros and ros2), support Lidar HAP and Mid-360.
Other
198 stars 159 forks source link

LIVOX_LIDAR_SDK_LIBRARY not found #128

Open Elaine-yz opened 1 month ago

Elaine-yz commented 1 month ago

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIVOX_LIDAR_SDK_LIBRARY linked by target "livox_ros_driver2_node" in directory /home/fast-drone/ws_livox/src/livox_ros_driver2

-- Configuring incomplete, errors occurred! See also "/home/fast-drone/ws_livox/build/CMakeFiles/CMakeOutput.log". See also "/home/fast-drone/ws_livox/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed 应该如何解决此条错误呢

luvwinnie commented 4 weeks ago

I got this error too. How can I solve it?

Elaine-yz commented 4 weeks ago

sorry,i haven't found a solution yet.

---- Replied Message ---- | From | Leow Chee @.> | | Date | 06/05/2024 15:21 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Livox-SDK/livox_ros_driver2] LIVOX_LIDAR_SDK_LIBRARY not found (Issue #128) |

I got this error too. How can I solve it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

luvwinnie commented 4 weeks ago

Oh, I found the solution by installing this repository. https://github.com/Livox-SDK/Livox-SDK2/tree/master

Elaine-yz commented 4 weeks ago

I downloaded this SDK, but the error still exists. I was thinking it might be a problem with static IP. Perhaps I could ask how your static IP is set.

---- Replied Message ---- | From | Leow Chee @.> | | Date | 06/05/2024 17:28 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Livox-SDK/livox_ros_driver2] LIVOX_LIDAR_SDK_LIBRARY not found (Issue #128) |

Oh, I found the solution by installing this repository. https://github.com/Livox-SDK/Livox-SDK2/tree/master

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

luvwinnie commented 4 weeks ago

No you need to install the SDK not only download it. It have the installation instructions on the readme just as follows.

$ git clone https://github.com/Livox-SDK/Livox-SDK2.git
$ cd ./Livox-SDK2/
$ mkdir build
$ cd build
$ cmake .. && make -j
$ sudo make install
Elaine-yz commented 4 weeks ago

yeah,I have installed it according to GitHub's steps, but the problem still persists

---- Replied Message ---- | From | Leow Chee @.> | | Date | 06/05/2024 17:34 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Livox-SDK/livox_ros_driver2] LIVOX_LIDAR_SDK_LIBRARY not found (Issue #128) |

No you need to install the SDK not only download it. It have the installation instructions on the readme just as follows.

$ git clone https://github.com/Livox-SDK/Livox-SDK2.git $ cd ./Livox-SDK2/ $ mkdir build $ cd build $ cmake .. && make -j $ sudo make install

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

luvwinnie commented 4 weeks ago

May i know whats kind of error messages is it?

Elaine-yz commented 4 weeks ago

I have a full class today and can only send it to you tomorrow. Perhaps you have time tomorrow to help me check this error?

---- Replied Message ---- | From | Leow Chee @.> | | Date | 06/05/2024 17:38 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Livox-SDK/livox_ros_driver2] LIVOX_LIDAR_SDK_LIBRARY not found (Issue #128) |

May i know whats kind of error messages is it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

luvwinnie commented 4 weeks ago

I'm not sure I can response instantly, but you can send the errors once I got time I can response to you.

Elaine-yz commented 4 weeks ago

okay,thanks

---- Replied Message ---- | From | Leow Chee @.> | | Date | 06/05/2024 17:48 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [Livox-SDK/livox_ros_driver2] LIVOX_LIDAR_SDK_LIBRARY not found (Issue #128) |

I'm not sure I can response instantly, but you can send the errors once I got time I can response to you.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Elaine-yz commented 4 weeks ago

hello,I encountered an error as shown in the picture while installing the configuration file for sdk2.

屏幕截图 2024-06-06 170917

11.Today I was able to run the command "./build. sh ROS1". However, when running Livox ROS driver 2, the same error occurred with the command "roslaunch livox_ros_driver2 rviz_HAP. launch" as mentioned above.

屏幕截图 2024-06-06 170801

22.It seems that there is a problem with the link to the LiDAR. Perhaps you have a solution and idea to solve the problem

georgflick commented 4 weeks ago

Do you have an HAP lidar? If so, you need to adjust the IP of the sensor in the HAP_config:28 and change the IP's in the host_net_info to your local host ip of your computer.

hello,I encountered an error as shown in the picture while installing the configuration file for sdk2. <img alt="屏幕截图 2024-06-06 170917" ....

Elaine-yz commented 4 weeks ago

thank you very much~!I am using MID-360 and I have found a solution! It turned out that my Ethernet IP was set incorrectly.