# Unable to find a valid OpenGL 3.2 or later implementation.

**URL:** https://discourse.vtk.org/t/unable-to-find-a-valid-opengl-3-2-or-later-implementation/8857
**Category:** Support
**Created:** [July 4, 2022, 6:31am UTC](https://discourse.vtk.org/t/unable-to-find-a-valid-opengl-3-2-or-later-implementation/8857 "2022-07-04T06:31:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [July 4, 2022, 6:31am UTC](https://discourse.vtk.org/t/unable-to-find-a-valid-opengl-3-2-or-later-implementation/8857/1 "2022-07-04T06:31:32Z")

</div>

I am build VTK on Macos M1 ,and here is the CmakeCache.txt  
[CMakeCache.txt](https://discourse.vtk.org/uploads/short-url/9yqEDls401t0Ejj3U5Ao9FSJX23.txt) (162.1 KB)

**Here is application running output :**

```auto
vtkGenericOpenGLRenderWindow (0x7ff2aa10d4f0): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.

```

I see libvtkglew-9.2.dylib is build .  
Can anyone help me to solve this problem ?Thanks so much.

---

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [July 6, 2022, 8:12am UTC](https://discourse.vtk.org/t/unable-to-find-a-valid-opengl-3-2-or-later-implementation/8857/2 "2022-07-06T08:12:18Z")

</div>

Fixed,thanks.

---

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [July 18, 2022, 1:55pm UTC](https://discourse.vtk.org/t/unable-to-find-a-valid-opengl-3-2-or-later-implementation/8857/3 "2022-07-18T13:55:19Z")

</div>

Fixed by add

> ```
> QSurfaceFormat::setDefaultFormat(QVTKOpenGLWindow::defaultFormat());
> 
> ```

in main.cpp
