You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a duplicate. Before opening a new issue, please search existing issues.
This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
When building the Zed ROS2 wrapper in a docker image based on an Nvidia docker, the wrapper can not find Cuda, and complains that the version that it finds (10.2) is wrong, even though it explicitly states that it has found the correct version (10.2).
Previous issue #18 solves this by downloading SDK v3.3 and sourcing ROS2 Foxy correctly. I fail to see how that would make sense as this dockerfile is essentially untouched ROS-wise before this stage. We are using SDK version 3.5, as is recommended on https://github.com/stereolabs/zed-ros2-wrapper.
Previously, we have mounted folders from host computers into the docker environment and built from that workspace, which has worked fine. We encounter this problem because we are slimming our workspace, and hence moving the Zed stuff to the docker build process.
Steps to Reproduce
On a Jetson AGX Xavier, create a new docker image based on nvcr.io/nvidia/l4t-base:r32.5.0
colcon build --merge-install --packages-select-regex zed.* --cmake-args "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs" "-DCUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/stubs" "-DCMAKE_CXX_FLAGS='-Wl,--allow-shlib-undefined'" as per Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "10.2") [BUG] #18
...
Expected Result
Package finds appropriate dependencies and builds happily.
Actual Result
Starting >>> zed_interfaces
Finished <<< zed_interfaces [1.90s]
Starting >>> zed_components
--- stderr: zed_components
CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found suitable version
"10.2", minimum required is "10.2")
Call Stack (most recent call first):
/usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.21/Modules/FindCUDA.cmake:1264 (find_package_handle_standard_args)
/usr/local/zed/zed-config.cmake:72 (find_package)
CMakeLists.txt:39 (find_package)
---
Failed <<< zed_components [0.79s, exited with code 1]
It finds 10.2, yet thinks that it is another version than 10.2. What?
ZED Camera model
ZED2
Environment
OS: Ubuntu 18.04, from docker image above
CPU: ARM
GPU: Nvidia Jetson AGX Xavier
Other info: ROS2, Foxy. Many packages are built before Zed is built, but they have been left out for brevity. Do tell me if you want a full list.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Preliminary Checks
Description
When building the Zed ROS2 wrapper in a docker image based on an Nvidia docker, the wrapper can not find Cuda, and complains that the version that it finds (10.2) is wrong, even though it explicitly states that it has found the correct version (10.2).
Previous issue #18 solves this by downloading SDK v3.3 and sourcing ROS2 Foxy correctly. I fail to see how that would make sense as this dockerfile is essentially untouched ROS-wise before this stage. We are using SDK version 3.5, as is recommended on https://github.com/stereolabs/zed-ros2-wrapper.
Previously, we have mounted folders from host computers into the docker environment and built from that workspace, which has worked fine. We encounter this problem because we are slimming our workspace, and hence moving the Zed stuff to the docker build process.
Steps to Reproduce
colcon build --merge-install --packages-select-regex zed.* --cmake-args "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs" "-DCUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/stubs" "-DCMAKE_CXX_FLAGS='-Wl,--allow-shlib-undefined'"
as per Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version "10.2") [BUG] #18...
Expected Result
Package finds appropriate dependencies and builds happily.
Actual Result
It finds 10.2, yet thinks that it is another version than 10.2. What?
ZED Camera model
ZED2
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: