MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.41k stars 310 forks source link

Use GLFW Artifact in GLMakie? #775

Closed j-fu closed 3 years ago

j-fu commented 3 years ago

Hi, my colleague @chmerdon has the following problem:

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/Pway1/deps/build.log`
┌ Error: Error building `GLMakie`:
│ Invalid MIT-MAGIC-COOKIE-1 keyERROR: 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`.

I tracked this down to the fact that GLMakie does not yet use artifacts to access GLFW, so seems to rely on the system installation. The GLFW artifact surely is there:

https://github.com/JuliaPackaging/Yggdrasil/blob/master/G/GLFW/build_tarballs.jl

Is there any technical reason for this ?

j-fu commented 3 years ago

Seems to be linked also to JuliaGL/GLFW.jl#198 and #712 and #630

j-fu commented 3 years ago

Was puzzled by the presence of the deps subdir....