luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

[Dockerfile humble] Doesn't build #545

Closed fzoric8 closed 1 week ago

fzoric8 commented 2 weeks ago

When calling:

docker build -t depthai_img:humble .

Build fails with following output:

 Finished <<< depthai_descriptions [0.70s]
11.36 --- stderr: depthai_bridge
11.36 In file included from /ws/src/depthai-ros/depthai_bridge/src/TrackDetectionConverter.cpp:1:
11.36 /ws/src/depthai-ros/depthai_bridge/include/depthai_bridge/TrackDetectionConverter.hpp:8:10: fatal error: depthai_ros_msgs/msg/track_detection2_d_array.hpp: No such file or directory
11.36     8 | #include "depthai_ros_msgs/msg/track_detection2_d_array.hpp"
11.36       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11.36 compilation terminated.
11.36 gmake[2]: *** [CMakeFiles/depthai_bridge.dir/build.make:160: CMakeFiles/depthai_bridge.dir/src/TrackDetectionConverter.cpp.o] Error 1
11.36 gmake[2]: *** Waiting for unfinished jobs....
11.36 In file included from /ws/src/depthai-ros/depthai_bridge/src/TrackSpatialDetectionConverter.cpp:1:
11.36 /ws/src/depthai-ros/depthai_bridge/include/depthai_bridge/TrackSpatialDetectionConverter.hpp:8:10: fatal error: depthai_ros_msgs/msg/track_detection2_d_array.hpp: No such file or directory
11.36     8 | #include "depthai_ros_msgs/msg/track_detection2_d_array.hpp"
11.36       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11.36 compilation terminated.
11.36 gmake[2]: *** [CMakeFiles/depthai_bridge.dir/build.make:174: CMakeFiles/depthai_bridge.dir/src/TrackSpatialDetectionConverter.cpp.o] Error 1
11.36 gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/depthai_bridge.dir/all] Error 2
11.36 gmake: *** [Makefile:146: all] Error 2
11.36 ---
11.36 Failed   <<< depthai_bridge [10.7s, exited with code 2]
11.40 
11.40 Summary: 1 package finished [10.9s]
11.40   1 package failed: depthai_bridge
11.40   2 packages had stderr output: depthai_bridge depthai_descriptions
11.40   1 package not processed
------
Dockerfile:18
--------------------
  16 |     RUN cd .$WS/ && rosdep install --from-paths src --ignore-src  -y
  17 |     
  18 | >>> RUN cd .$WS/ && . /opt/ros/${ROS_DISTRO}/setup.sh && ./src/depthai-ros/build.sh -s $BUILD_SEQUENTIAL -r 1 -m 1 
  19 |     RUN if [ "$USE_RVIZ" = "1" ] ; then echo "RVIZ ENABLED" && sudo apt install -y ros-${ROS_DISTRO}-rviz2 ros-${ROS_DISTRO}-rviz-imu-plugin ; else echo "RVIZ NOT ENABLED"; fi
  20 |     RUN echo "if [ -f ${WS}/install/setup.zsh ]; then source ${WS}/install/setup.zsh; fi" >> $HOME/.zshrc
--------------------
ERROR: failed to solve: process "/bin/sh -c cd .$WS/ && . /opt/ros/${ROS_DISTRO}/setup.sh && ./src/depthai-ros/build.sh -s $BUILD_SEQUENTIAL -r 1 -m 1" did not complete successfully: exit code: 2

Which means that colcon build of the depthai packages fails for