在项目中,使用到了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
源参考位置: