0
点赞
收藏
分享

微信扫一扫

Failed to find Qt component “Widgets“问题

求索大伟 2022-03-21 阅读 152
c++linuxqt

在项目中,使用到了Qt6.2.1,安装完Qt后,发现使用QtCreator时候,报这个错误:

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt component "Widgets" config file at ""

 原因是由于Qt虽然安装完了,但是Qt依赖的另外一些库没有安装:

我用的是Ubuntu系统:使用下面命令进行安装(opengl安装)

sudo apt-get install build-essential libgl1-mesa-dev

 源参考位置:

Qt for Linux/X11 | Qt 6.2icon-default.png?t=M276https://doc.qt.io/qt-6/linux.html

举报

相关推荐

0 条评论