Closed SpotlightKid closed 1 year ago
Is this possibly a duplicate of #83 ?
Hmm. sort of. I have glu
9.0.2-2, the latest package on Arch, and pkg-config --libs glu
returns:
-lGLU -lOpenGL
not
-lGLU -lGL
I'm not sure what to make of this.
It appears that glu can be built with libglvnd as GL provider. In that case OpenGL and not GL is being used in the pkgconfig integration created by the meson setup as well as created by the autotools setup.
To quote from https://github.com/pantherb/setBfree/pull/83#issuecomment-1008335676
Arch ships a bleeding-edge build of libglu (using meson to build it instead of autotools).
That is technically not correct. 1.4.0 is the latest stable upstream release. Bleeding edge makes it sound as if someone shipped a pre-release or something like that.
Looking at the libraries that are required by the various setbfree components, I believe adding gl
to the list of pkg-config libraries does not pose any issue (worst case it is mentioned twice which is no issue for the linker, best case it works on more than just Debian going forward):
checking linked libraries for setbfree-0.8.11-3-x86_64.pkg.tar.zst
/usr/bin/setBfree
NEEDED libm.so.6
NEEDED libjack.so.0
NEEDED libc.so.6
/usr/bin/setBfreeUI
NEEDED libX11.so.6
NEEDED libOpenGL.so.0
NEEDED libGL.so.1
NEEDED libftgl.so.2
NEEDED libjack.so.0
NEEDED liblo.so.7
NEEDED libm.so.6
NEEDED libc.so.6
/usr/bin/x42-whirl
NEEDED libX11.so.6
NEEDED libpangocairo-1.0.so.0
NEEDED libpango-1.0.so.0
NEEDED libgobject-2.0.so.0
NEEDED libcairo.so.2
NEEDED libOpenGL.so.0
NEEDED libGL.so.1
NEEDED libjack.so.0
NEEDED liblo.so.7
NEEDED libm.so.6
NEEDED libc.so.6
/usr/lib/lv2/b_synth/b_synth.so
NEEDED libm.so.6
NEEDED libc.so.6
/usr/lib/lv2/b_synth/b_synthUI.so
NEEDED libX11.so.6
NEEDED libOpenGL.so.0
NEEDED libGL.so.1
NEEDED libftgl.so.2
NEEDED libc.so.6
/usr/lib/lv2/b_whirl/b_whirl.so
NEEDED libc.so.6
/usr/lib/lv2/b_whirl/b_whirlUI_gl.so
NEEDED libX11.so.6
NEEDED libpangocairo-1.0.so.0
NEEDED libpango-1.0.so.0
NEEDED libgobject-2.0.so.0
NEEDED libcairo.so.2
NEEDED libOpenGL.so.0
NEEDED libGL.so.1
NEEDED libm.so.6
NEEDED libc.so.6
However, I can not make any assumptions as to whether both libOpenGL.so
and libGL.so
are required and how this is handled in the context of setbfree. I guess you can make better assertions there than me ;-)
I believe adding gl to the list of pkg-config libraries does not pose any issue
Just to clarify: so you think this patch should be merged and would pose no harm where pkgconfig --libs gl
already returns -lGL
?
It appears that glu can be built with libglvnd as GL provider. In that case OpenGL and not GL is being used in the pkgconfig integration created by the meson setup as well as created by the autotools setup.
Won't that conflict later on when combined with ftgl and libgl?
FWIW: We have been patching setbfree for adding GL on Arch Linux, so that it links properly and it has caused no issue (to my knowledge). What is keeping this from being merged?
It would have been great to get this fixed before the latest release, as I'll have to continue to carry a patch now :cry:
Nothing, adding it to pkg-config its fine. adding -lGL directly is not. rebased and merged as v0.8.12-1 756437d
Otherwise I get
undefined reference to symbol 'glXSwapBuffers'
when linkingb_synth
UI: