title: Qt on Centos 7 with OpenGl not working
body: <p>I have installed Qt on a CentOS 7 machine following the recommendation of QT documentation:</p>
  
  <pre><code>sudo yum groupinstall "C Development Tools and Libraries"
  
  sudo yum install mesa-libGL-devel
  </code></pre>
  
  <p>a real nightmare as "C Development Tools and Libraries" does not exist. I have found and installed "Development Tools": manually as the groupinstall does not work!</p>
  
  <p>I managed to run Qt creator but whenever I try to build and run any C++ application I got a cascade of errors:</p>
  
  <blockquote>
    <p>:-1: error: skipping incompatible
    /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libGL.so when
    searching for -lGL</p>
    
    <p>:-1: error: skipping incompatible /lib/libGL.so when searching for
    -lGL</p>
    
    <p>:-1: error: skipping incompatible /usr/lib/libGL.so when searching for
    -lGL</p>
    
    <p>:-1: error: cannot find -lGL</p>
    
    <p>:-1: error: collect2: error: ld returned 1 exit status</p>
  </blockquote>
  
  <p>I need to run the OpenGl library as my application requires the use of the Three libraries. Did anybody successfully installed Qt and OpenGL on a CentOS 7 operating system? </p>