问题描述:
CMake Error at CMakeLists.txt:22 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
这里显示Qt5Widgets包不存在,解决办法: 点这里
解决办法:
sudo apt-get install qtbase5-dev
原文作者:叶轮回
原文链接:https://blog.csdn.net/baidu_28455067/article/details/80274741