stereolabs / zed-ros2-wrapper

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

Docker build error | colcon build | foxy-humble-v3.8.2 #187

Closed ironoa closed 7 months ago

ironoa commented 7 months ago

Preliminary Checks

Description

On branch foxy-humble-v3.8.2 the docker image Dockerfile.l4t35_1-humble-release is not building properly.

Steps to Reproduce

  1. docker build -f Dockerfile.l4t35_1-humble-release .

Expected Result

Image being built successfully

Actual Result

25.32 CMake Error at CMakeLists.txt:78 (find_package):
25.32 -- Configuring incomplete, errors occurred!
25.32   Could not find a configuration file for package "ZED" that is compatible
25.32   with requested version "4".
25.32 
25.32   The following configuration files were considered but not accepted:
25.32 
25.32     /usr/local/zed/zed-config.cmake, version: 3.8.2
25.32 
25.32 
25.32 
25.33 -- Check for working CXX compiler: /usr/bin/c++ - skipped
25.33 -- Detecting CXX compile features
25.33 -- Detecting CXX compile features - done
25.33 -- Found ament_cmake: 1.3.4 (/opt/ros/humble/install/share/ament_cmake/cmake)
25.36 --- stderr: zed_components
25.36 CMake Error at CMakeLists.txt:78 (find_package):
25.36   Could not find a configuration file for package "ZED" that is compatible
25.36   with requested version "4".
25.36 
25.36   The following configuration files were considered but not accepted:
25.36 
25.36     /usr/local/zed/zed-config.cmake, version: 3.8.2
25.36 
25.36 
25.36 
25.36 ---
25.36 Failed   <<< zed_components [0.30s, exited with code 1]

ZED Camera model

ZED

Environment

- ARM
- Docker version 24.0.6, build ed223bc

Anything else?

No response

ironoa commented 7 months ago

I fixed it like that

A generic solution should be crafted for branch master

Myzhar commented 7 months ago

Thank you for providing a working solution