title: Sample Android NDK hello-gl2 unable to compile on Android Studio
body: <p>I'm able to run the hello-jni of the samples provided in the NDK but I can't compile the hello-gl2 sample.</p>
  
  <p>Could you help me? (I think is a problem linking with OpenGL)</p>
  
  <p>This are the errors reported by Android Studio:</p>
  
  <pre><code>C:\AndroidstudioProjects\hello-gl2\app\src\main\jni\gl_code.cpp
  Error:(39) undefined reference to `glGetError'
  Error:(41) undefined reference to `__android_log_print'
  Error:(40) undefined reference to `glGetError'
  Error:(34) undefined reference to `glGetString'
  Error:(35) undefined reference to `__android_log_print'
  Error:(58) undefined reference to `glCreateShader'
  Error:(60) undefined reference to `glShaderSource'
  Error:(61) undefined reference to `glCompileShader'
  Error:(63) undefined reference to `glGetShaderiv'
  Error:(66) undefined reference to `glGetShaderiv'
  Error:(70) undefined reference to `glGetShaderInfoLog'
  Error:(72) undefined reference to `__android_log_print'
  Error:(75) undefined reference to `glDeleteShader'
  ...
  </code></pre>