# OpenGL/GLFW error building GLMakie

**URL:** https://discourse.julialang.org/t/opengl-glfw-error-building-glmakie/47598
**Category:** New to Julia
**Tags:** plotting, makie
**Created:** [October 1, 2020, 1:32pm UTC](https://discourse.julialang.org/t/opengl-glfw-error-building-glmakie/47598 "2020-10-01T13:32:16Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)
#### Post date: [February 7, 2023, 5:39pm UTC](https://discourse.julialang.org/t/opengl-glfw-error-building-glmakie/47598/10 "2023-02-07T17:39:08Z")

</div>

> [@j-fu](#):
>
> `$ LD_PRELOAD=/usr/lib64/libstdc++.so.6 julia`

I you don’t know which to choose you may start with the command:

```julia
$ locate libstdc++.so.6

```

Afterwards, you start julia as described above, in my case “ubuntu 22.04” the right one was:

```julia
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 julia

```

After the command:

```julia
import Pkg; Pkg.precompile()

```

GLMakie was also _ **one time** _ operational inside VScode, but it turns out this is not reproducible on my machine.  
Now comes the question, what do I need to add to my “startup.jl”, to enable GLMakie inside VScode.

---

_[View the full topic](https://discourse.julialang.org/t/opengl-glfw-error-building-glmakie/47598)._
