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

在这里插入图片描述

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

猜你喜欢

转载自blog.csdn.net/qq_42257666/article/details/123487032