Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
guile-opengl: fix dynamic loading of libraries #87281
This uses the absolute path for libraries when opening them at runtime
Previously, the libGL, glu and freeglut weren't dependencies, now they are
I do wonder if there is a better way we could do this (i.e. doesn't Mac OSX have different file extensions for the libraries)? Perhaps somehow we could make autoconf find the libraries, and use the path it found? (I don't know much about autoconf). But this doesn't actually matter here, as the build platforms are linux only.
Guile-opengl doesn't seem to have any referrers, so I don't think this changes anything. I'm trying to package inspekt3d (https://gitlab.com/kavalogic-inc/inspekt3d/), and spotted this problem.
Motivation for this change
This package (or perhaps the guile package setup hooks, as the libraries are in lib/guile/2.2/ccache/*) has a bug where the compiled objects aren't loaded by guile, so I'll investigate that further.
In the meanwhile, you can test it with https://raw.githubusercontent.com/guildhall/guile-opengl/master/examples/particle-system/vbo.scm, e.g.
(I have tested it, it now works, it didn't work previously.)