1. 程式人生 > >Qt5.11編譯問題

Qt5.11編譯問題

CentOS 7 64位,安裝完成Qt5.11.0。隨意新建一個Qt Widgets Application。
版本資訊:

Qt Creator 4.6.1
Based on Qt 5.11.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
From revision 065e644d92
Built on May 18 2018 11:55:28

結果遇到Qt編譯問題,提示資訊如下:
error: cannot find -lGL
error: collect2: error: ld returned 1 exit status

解決:
yum install mesa-libGL-devel mesa-libGLU-devel
yum install freeglut-devel