Hello, I wanted to give a try to Makie but I got the following error while trying to install it:
(@v1.5) pkg> build GLMakie
Building ModernGL → `~/.julia/packages/ModernGL/rVuW2/deps/build.log`
Building FFTW ────→ `~/.julia/packages/FFTW/DMUbN/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/4EXKe/deps/build.log`
┌ Error: Error building `GLMakie`:
│ libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
│ libGL error: failed to load driver: iris
│ libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
│ libGL error: failed to load driver: iris
│ libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
│ libGL error: failed to load driver: swrast
│ init error of GLFW
│ ERROR: LoadError: OpenGL/GLFW wasn't installed correctly. This likely means,
│ you don't have an OpenGL capable Graphic Card,
│ you don't have the newest video driver installed,
│ or the GLFW build failed. If you're on linux and `]build` GLFW failed,
│ try manually adding `sudo apt-get install libglfw3` and then `]build GLMakie`.
│ If you're on a headless server, you still need to install x-server and
│ proper GPU drivers. You can take inspiration from this article
│ on how to get Makie running on a headless system:
│ https://nextjournal.com/sdanisch/makie-1.0
│ If you don't have a GPU, there is also a Cairo software backend
│ for Makie which you can use:
│ https://github.com/JuliaPlots/CairoMakie.jl.
│ Please check the below error and open an issue at:
│ https://github.com/JuliaPlots/GLMakie.jl.
│ After you fixed your OpenGL install, please run `]build GLMakie` again!
│ GLMakie will still load, but will be disabled as a default backend for Makie
│
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] top-level scope at /home/lobianco/.julia/packages/GLMakie/4EXKe/deps/build.jl:63
│ [3] include(::String) at ./client.jl:457
│ [4] top-level scope at none:5
│ in expression starting at /home/lobianco/.julia/packages/GLMakie/4EXKe/deps/build.jl:31
│ caused by [exception 1]
│ GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
│ Stacktrace:
│ [1] _ErrorCallbackWrapper(::Int32, ::Cstring) at /home/lobianco/.julia/packages/GLFW/CBo9c/src/callback.jl:43
│ [2] CreateWindow(::Int64, ::Int64, ::String, ::GLFW.Monitor, ::GLFW.Window) at /home/lobianco/.julia/packages/GLFW/CBo9c/src/glfw3.jl:499
│ [3] GLFW.Window(; name::String, resolution::Tuple{Int64,Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Array{Tuple{UInt32,Int64},1}, contexthints::Array{Tuple{UInt32,Integer},1}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window) at /home/lobianco/.julia/packages/GLFW/CBo9c/src/glfw3.jl:344
│ [4] top-level scope at /home/lobianco/.julia/packages/GLMakie/4EXKe/deps/build.jl:34
│ [5] include(::String) at ./client.jl:457
│ [6] top-level scope at none:5
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:942
I am on a recent Ubuntu 20.04 Laptop with Intel graphical card and I do already have libglfw3 to the newest version (3.3.2-1).
(and I don’t know nothing of graphical terms… OpenGL, GLX, GLFW, Cairo…)
Edit: cmake, xorg-dev, build-essential, cmake, mesa-utils, libxrandr-dev, libxinerama-dev, libxcursor-dev, ffmpeg are all installed