Could not find a package configuration file provided by “Qt5SerialPort“ with any of the following

报错信息

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 “Qt5SerialPort”
with any of the following names:
Qt5SerialPortConfig.cmake
qt5serialport-config.cmake
Add the installation prefix of “Qt5SerialPort” to CMAKE_PREFIX_PATH or set
“Qt5SerialPort_DIR” to a directory containing one of the above files. If
“Qt5SerialPort” provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
sentry/CMakeLists.txt:40 (find_package)
– Configuring incomplete, errors occurred!

解决方案
输入以下命令回车安装依赖包:
sudo apt install libqt5serialport5-dev libudev-dev

在这里插入图片描述

会思考,展特色,有内涵,擅表达,懂技巧。

你可能感兴趣的:(Ubuntu,qt,开发语言,qt5,apt-get,qt,creator)