错误介绍:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5Multimedia"
  with any of the following names:

    Qt5MultimediaConfig.cmake
    qt5multimedia-config.cmake

  Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set
  "Qt5Multimedia_DIR" to a directory containing one of the above files.  If
  "Qt5Multimedia" provides a separate development package or SDK, be sure it
  has been installed.

解决方法:

1.先安装依赖(ros对qt pkg的支持)

sudo apt-get install ros-melodic-qt-create
sudo apt-get install ros-melodic-qt-build

2.安装Qtmultimedia5依赖(这个是最重要的)
程序依赖Qtmultimedia实现音频功能,因此需要安装依赖

sudo apt-get install qtmultimedia5-dev

Logo

一站式 AI 云服务平台

更多推荐