I am trying to build GLMakie.jl on Manjaro an a Renoir notebook and am getting the following error if I run LIBGL_DEBUG=verbose julia
. Without the debug it just fails without any hint.
(@v1.5) pkg> build GLMakie
Building ModernGL → `~/.julia/packages/ModernGL/rVuW2/deps/build.log`
Building FFTW ────→ `~/.julia/packages/FFTW/eADNB/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/TcsJL/deps/build.log`
┌ Error: Error building `GLMakie`:
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/gkraemer/.drirc: No such file or directory.
│ libGL: using driver amdgpu for 17
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/gkraemer/.drirc: No such file or directory.
│ libGL: pci id for fd 17: 1002:1636, driver radeonsi
│ libGL: MESA-LOADER: dlopen(/usr/lib/dri/radeonsi_dri.so)
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/gkraemer/.drirc: No such file or directory.
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/gkraemer/.drirc: No such file or directory.
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/gkraemer/.drirc: No such file or directory.
│ /usr/share/libdrm/amdgpu.ids version: 1.0.0
│ libGL: Using DRI3 for screen 0
└ @ Pkg.Operations ~/progs/julia/julia-1.5/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:949
If I run LIBGL_DEBUG=verbose LIBGL_ALWAYS_INDIRECT=1 julia
, it still fails and the output is:
┌ Error: Error building `GLMakie`:
│ Initialization error of GLFW
│ ERROR: LoadError: OpenGL/GLFW wasn't loaded correctly or couldn't be initialized.
│ This likely means, you don't have an OpenGL capable Graphic Card,
│ or you don't have an OpenGL 3.3 capable video driver installed.
│ If you're on a headless server, you still need to install x-server and
│ proper graphics drivers.
│ 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`!
│ Otherwise, GLMakie would still load, but would be disabled as a
│ default backend for Makie.
│
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] top-level scope at /home/gkraemer/.julia/packages/GLMakie/TcsJL/deps/build.jl:61
│ [3] include(::String) at ./client.jl:457
│ [4] top-level scope at none:5
│ in expression starting at /home/gkraemer/.julia/packages/GLMakie/TcsJL/deps/build.jl:29
│ caused by [exception 1]
│ GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
│ Stacktrace:
│ [1] _ErrorCallbackWrapper(::Int32, ::Cstring) at /home/gkraemer/.julia/packages/GLFW/CBo9c/src/callback.jl:43
│ [2] CreateWindow(::Int64, ::Int64, ::String, ::GLFW.Monitor, ::GLFW.Window) at /home/gkraemer/.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/gkraemer/.julia/packages/GLFW/CBo9c/src/glfw3.jl:344
│ [4] top-level scope at /home/gkraemer/.julia/packages/GLMakie/TcsJL/deps/build.jl:32
│ [5] include(::String) at ./client.jl:457
│ [6] top-level scope at none:5
└ @ Pkg.Operations ~/progs/julia/julia-1.5/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:949