# How to get right OPENGL ES 3.0's lib and dll for PC

**URL:** <https://discourse.glfw.org/t/how-to-get-right-opengl-es-3-0s-lib-and-dll-for-pc/194>\
**Category:** support\
**Created:** [January 21, 2016, 11:17am UTC](https://discourse.glfw.org/t/how-to-get-right-opengl-es-3-0s-lib-and-dll-for-pc/194 "2016-01-21T11:17:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [January 21, 2016, 11:17am UTC](https://discourse.glfw.org/t/how-to-get-right-opengl-es-3-0s-lib-and-dll-for-pc/194/1 "2016-01-21T11:17:39Z")

</div>

**[palmer789](https://sourceforge.net/u/palmer789/)** wrote on [Thursday, January 21, 2016](https://sourceforge.net/p/glfw/discussion/247562/thread/dad3869c/#5cb4):

Hi,  
I have been trying to develop OPENGL ES 3.0 on my PC, and I have a NVIDIA card.I have done such things:  
1.Use the compiled lib and dll from web, and refrence it in my project.I can run opengl code.But if I define GLFW\_INCLUDE\_ES3 and call glfwWindowHint(GLFW\_CONTEXT\_VERSION\_MAJOR, 3), glfwWindowHint(GLFW\_CONTEXT\_VERSION\_MINOR, 0) and  
glfwWindowHint(GLFW\_CLIENT\_API, GLFW\_OPENGL\_ES\_API), the opengl code had none effect, e.g. glCreateShader always retunrned 0.Even thougn I had called it after glfwInit() and glfwCreateWindow().And after I called glGetString(GL\_RENDERER), it retunrd ANGLE.  
[2.So](http://2.So) I thought may be I had used a wrong lib and [dll.So](http://dll.So) I downloaded the source code of GLFW and use CMAKE to compiled it.I had tried a lot of combinations for generating libs and dlls, but all they failed.Must I compile lib and dll myself set GLFW\_LIBARIES to glesv2 and toggle GLFW\_USE\_EGL to get a right version lib and dll?  
There is really few documents that describe how to run OPENGL ES 3.0 on PC thougn every one said GLFW supports OPENGL ES on PC.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [January 23, 2016, 3:24pm UTC](https://discourse.glfw.org/t/how-to-get-right-opengl-es-3-0s-lib-and-dll-for-pc/194/2 "2016-01-23T15:24:59Z")

</div>

**[palmer789](https://sourceforge.net/u/palmer789/)** wrote on [Saturday, January 23, 2016](https://sourceforge.net/p/glfw/discussion/247562/thread/dad3869c/#78f5):

I have got it.  
Just use GLEW with GLFW.
