# Getting Glfw to build, link with angle gles3.0+ on MacOs

**URL:** <https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246>\
**Category:** support\
**Created:** [December 6, 2022, 1:58am UTC](https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246 "2022-12-06T01:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkennard](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pkennard](https://discourse.glfw.org/u/pkennard)\
**Post date:** [December 6, 2022, 1:58am UTC](https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246/1 "2022-12-06T01:58:47Z")

</div>

I have angleproject building on MacOS Monterey on an M2 machine. Ideally I could find a glfw “hello triangle” program, and sample CMake build options for building Gltf for this context and get it to link and run - then I will convert my app shell to do the same.

Any recent hints or docs about ? ( I have searched but … )

Thanks !

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [December 6, 2022, 11:04am UTC](https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246/2 "2022-12-06T11:04:14Z")

</div>

I think GLFW should build by default to be able to run using ANGLE. There is an OpenGL ES Triangle program which you can test with:

> <https://github.com/glfw/glfw/blob/master/examples/triangle-opengles.c>

GLFW dynamically loads libGLESv2 and libEGL, and use GLAD to load the GLES2 function entry points.

Note that I’ve not tried this with ANGLE on MacOS.

---

<div class="post-metadata">

**Author:** ![pkennard](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pkennard](https://discourse.glfw.org/u/pkennard)\
**Post date:** [December 7, 2022, 8:16pm UTC](https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246/3 "2022-12-07T20:16:59Z")

</div>

Will try - xxxxxxxxxxxxx 🙂

---

<div class="post-metadata">

**Author:** ![pkennard](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pkennard](https://discourse.glfw.org/u/pkennard)\
**Post date:** [December 9, 2022, 8:49pm UTC](https://discourse.glfw.org/t/getting-glfw-to-build-link-with-angle-gles3-0-on-macos/2246/4 "2022-12-09T20:49:00Z")

</div>

Well tried it - BUT ( isn’t there always a but ? )  
So with Glad seems it is set up to use a website to generate headers and a “c” file.

So I downloaded their python tool from github, and installed the requisite python module “Jinja” -

Well the issue now is I want a python command or a set of commands to do exactly what the web site does when executing them from the command line locally. The samples are a bit vague on this … So far unable to find that concise “do this” script.

This so our build can just call their python generator with the right arguments to generate the headers …

🙂 :). its never easy …
