【发布时间】:2023-03-29 00:26:01
【问题描述】:
我已经在 64 位 Centos 上安装了 QT。在构建简单的小部件表单应用程序时出现以下错误:
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [untitled] Error 1
08:17:08: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.9.5 GCC 64bit)
When executing step "Make"
下面的命令
locate *libGL.so*
双桅船
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2.0
如何解决问题?
【问题讨论】: