stereolabs / zed-ros2-wrapper

ROS 2 wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros2/
Apache License 2.0
136 stars 141 forks source link

Trouble building with CUDA 11.1 - CUDA_nppicom_LIBRARY not found #25

Closed jknick closed 3 years ago

jknick commented 3 years ago

Is there a dependency on CUDA 10.2 for this wrapper?

When trying to build with colcon for Ubuntu 20.04 with CUDA 11.1 we're hitting this error:

--- stderr: zed_components

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:
CUDA_nppicom_LIBRARY (ADVANCED)
linked by target "zed_camera_component" in directory /home/kanke/ros2_example_ws/src/zed-ros2-wrapper/zed_components

Failed   <<< zed_components [1.72s, exited with code 1]

Summary: 5 packages finished [3.42s]
1 package failed: zed_components
1 package had stderr output: zed_components
2 packages not processed

In digging a little bit it seems that libnppicom.so is no longer part of CUDA, but also I don't see where the reference to this is coming from as it doesn't seem to be reference anywhere in this repo.

Any thoughts? Thanks!

Rayman commented 3 years ago

I've applied this diff to my FindCUDA and it now seems to compile:

https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4929

jknick commented 3 years ago

Thanks, Rayman!

Kismetzc commented 3 years ago

The same question. I'm using Ubuntu18.04, Cuda11.0, SDK3.5 and ros2-eloquent.

Kismetzc commented 3 years ago

@jknick @Rayman Do you solve it?

Myzhar commented 3 years ago

@Kismetzc I suppose this is the solution that they found: https://github.com/stereolabs/zed-ros2-wrapper/issues/25#issuecomment-799383330

Kismetzc commented 3 years ago

@Kismetzc I suppose this is the solution that they found: #25 (comment)

Yeah. Does this mean I should update my cmake version?

Myzhar commented 3 years ago

Yes, it can solve the issue

Kismetzc commented 3 years ago

Yes, it can solve the issue

THX!I will try right now.

Kismetzc commented 3 years ago

Thank you all !!! I have solved this problem.

Myzhar commented 3 years ago

The solution works, so I close the issue