# OpenGL+LablGL on Mac

**URL:** <https://discuss.ocaml.org/t/opengl-lablgl-on-mac/9605>\
**Category:** Learning\
**Tags:** mac, opengl\
**Created:** [March 29, 2022, 7:17pm UTC](https://discuss.ocaml.org/t/opengl-lablgl-on-mac/9605 "2022-03-29T19:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Harrop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/jon_harrop/32/2015_2.png) [@Jon\_Harrop](https://discuss.ocaml.org/u/Jon_Harrop)\
**Post date:** [March 29, 2022, 7:17pm UTC](https://discuss.ocaml.org/t/opengl-lablgl-on-mac/9605/1 "2022-03-29T19:17:28Z")

</div>

I have some old OCaml code that uses OpenGL. I gather OpenGL is now deprecated on Mac but I’m wondering how I might resurrect this code on my Mac?

LablGL installs but compiling my code with it fails with:

```
File "_none_", line 1:              
Error: No implementations provided for the following modules:
        Glut referenced from bin/.main.eobjs/native/dune __exe__ Main.cmx
```

---

<div class="post-metadata">

**Author:** ![mbacarella](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/mbacarella/32/6765_2.png) [@mbacarella](https://discuss.ocaml.org/u/mbacarella)\
**Post date:** [March 29, 2022, 10:58pm UTC](https://discuss.ocaml.org/t/opengl-lablgl-on-mac/9605/2 "2022-03-29T22:58:55Z")

</div>

Did you list `lablgl.glut` in the libraries stanza?

---

<div class="post-metadata">

**Author:** ![Jon\_Harrop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/jon_harrop/32/2015_2.png) [@Jon\_Harrop](https://discuss.ocaml.org/u/Jon_Harrop)\
**Post date:** [March 30, 2022, 2:34pm UTC](https://discuss.ocaml.org/t/opengl-lablgl-on-mac/9605/3 "2022-03-30T14:34:06Z")

</div>

Oh wow! Now everything just works. Thank you so much! 🙂
