编译报错:
ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.
缺少opengl库,根据文档:
https://doc.qt.io/qt-6/linux.html
需要安装:
sudo yum install mesa-libGL-devel
注意一定要清掉编译产物。否则,会使用之前的缓存,一直报错!!!