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

error message

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!

solution
Enter the following command and press Enter to install the dependency package:
sudo apt install libqt5serialport5-dev libudev-dev

insert image description here

Can think, exhibit characteristics, have connotation, be good at expressing, and understand skills.

Guess you like

Origin blog.csdn.net/qq_42257666/article/details/123487032