Skip to content

[Docker] Missing components for Qt5 when building Docker container (for nav2_rviz_plugins -> rviz_common) #5743

@AJedancov

Description

@AJedancov

Bug report

Required Info:

  • Operating System:
    • Ubuntu 24.04
  • Computer:
  • ROS2 Version:
    • Rolling (as in Dockerfile)
  • Version or commit hash:
    • main branch, most recent commit 9f52555
  • DDS implementation:

Steps to reproduce issue

Clone the project:

git clone https://github.com/ros-navigation/navigation2.git

Create a Docker container:

cd navigation2
docker build --tag navigation2:rolling \
  --cache-from ghcr.io/ros-navigation/navigation2:main \
  .

Expected behavior

Building the project inside the container without errors.

Actual behavior

An error occurred while building nav2_rviz_plugins:

1190.2 Starting >>> nav2_rviz_plugins
1193.1 --- stderr: nav2_rviz_plugins
1193.1 CMake Error at /opt/ros/rolling/share/rviz_common/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
1193.1   Found package configuration file:
1193.1 
1193.1     /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
1193.1 
1193.1   but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
1193.1   FOUND.  Reason given by package:
1193.1 
1193.1   The Qt5 package requires at least one component
1193.1 
1193.1 Call Stack (most recent call first):
1193.1   /opt/ros/rolling/share/rviz_common/cmake/rviz_commonConfig.cmake:41 (include)
1193.1   CMakeLists.txt:17 (find_package)
1193.1 
1193.1 
1193.1 ---
1193.1 Failed   <<< nav2_rviz_plugins [2.81s, exited with code 1]

Reproduction instructions

Additional information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions