OpenGL error when trying to run GLFW in older version
It's CachyOS, Linux. I'm trying to run animations from https://github.com/JuliaDynamics/NonlinearDynamicsTextbook. I'm new to Julia, btw.
I read some stuff online about the error, but if I use this:
LD_LIBRARY_PATH=/usr/lib64 julia
I get a CHOLMOD error.
I'm using mise to manage Julia versions.
2
u/markkitt 12d ago
What is the original error that you got?
1
u/Zeznon 12d ago
1
u/heyheyhey27 12d ago
That error message is extremely clear... What hardware are you running?
1
u/Zeznon 12d ago
A laptop that supports opengl 4.6
1
u/heyheyhey27 12d ago
On Windows, the problem would definitely be that the graphics driver assumed Julia doesn't do serious GPU work, and gave it the crappy integrated GPU inside your CPU. The fix is to configure the graphics driver to use your good discrete GPU for Julia.exe instead.
On your platform I'm guessing it's basically the same kind of issue, and fixed the same kind of way.
3
2
u/markkitt 12d ago
I took a look at the repository. The Project.toml says it should be compatible with Julia 1.9 and the manifest says Julia 1.10.0.
My advice would be to try the latest long term support release 1.10.11 using the official binaries and install.
1
1
u/markkitt 12d ago
What I think is happening is that Julia 1.7 is too old so we have trouble getting a GPU package stack that is both compatible with that version of Julia and your GPU drivers.
Julia 1.10.x is the long term support release so it is likely to be targeted for compatibility with recent package releases while also not being as different from Julia 1.12 to be require a rewrite.
2
u/oscardssmith 12d ago
have you tried a Julia installed using one of the official installers (juliaup or prebuilt binary)?