title: CentOS 7 install Octave 4.0.2 with GUI (OpenGL support)
body: <p>I'm trying to install Octave 4 from source code in CentOS 7 but I got the warning messages:</p>
  
  <pre><code>configure: WARNING: OpenGL libs (GL and GLU) not found.  Native graphics will be disabled.
  configure: WARNING: OpenGL libs (GL and GLU) not found -- disabling GUI
  configure: WARNING: 
  configure: WARNING: I didn't find the necessary libraries to compile native
  configure: WARNING: graphics.  It isn't necessary to have native graphics,
  configure: WARNING: but you will need to have gnuplot installed or you won't
  configure: WARNING: be able to use any of Octave's plotting commands
  configure: WARNING: 
  configure: 
  configure: NOTE: Libraries or auxiliary programs may be skipped if they are
  configure: NOTE: not found OR if they are missing required features on your
  configure: NOTE: system.
  </code></pre>
  
  <p>I have checked this <a href="https://unix.stackexchange.com/questions/244565/compiling-octave-4-with-opengl-x11-configure-script-linking-error">QUESTION</a> but it didn't help.</p>
  
  <p>I have also done <code>yum install libqt4-opengl-dev</code> but got an error <code>No package libqt4-opengl-dev available.</code></p>
  
  <p>I have got mesa-libGL and mesa-libGL-devel, but it seems like the configure cannot pick up these libraries. </p>
  
  <p><strong>Edit: answer to my own question</strong>
  please see comments below the question.</p>