编译报错
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.
解决:
下载开发相关文件:apt-get install qtmultimedia5-dev
(一般QT相关文件下载的名字是 libqt5-xxxxxx-dev,multimedia库有点特殊)
通过该博文才了解到。https://www.cnblogs.com/xia-weiwen/p/10074882.html
什么地方可以知道需要下载qt对应库时要使用的包名字啊。。。