Solve Qt CentOS compilation (error: cannot find -lGL)

Solve Qt CentOS compilation (error:cannot)
Author CentOS 6.6 64-bit, Qt5.5.1 installation is complete. Feel free to create a new Qt Widgets Application.
Results compiled Qt problems encountered, prompts are as follows:
error: cannot find -lGL
error: collect2: error: ld returned 1 exit status
Because the system lacks the corresponding OpenGL library files, solutions are as follows:
Terminal of the CentOS system, in turn, execute the following command, can be resolved.
su root
yum install mesa-libGL-devel mesa-libGLU-devel
yum install freeglut-devel