Could not find a package configuration file provided by "Qt5Widgets"

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/baidu_28455067/article/details/80274741

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

猜你喜欢

转载自blog.csdn.net/baidu_28455067/article/details/80274741