Could not find a package configuration file provided by “Qt5Widgets”
出差在外,没有固定的时间进行学习,想利用一下空余时间,看看源码.然后就ros中的turtlesim中的源码进行了阅读.
#include <QApplication>
这里头文件不清楚在哪,所以编译了一下.
CMake Error at turtlesim/CMakeLists.txt:6 (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.
这里显示Qt5Widgets包不存在.谷歌了一下,找到了解决方案.解决办法点这里
解决办法
sudo apt-get install qtbase5-dev