The officially official Devuan Forum!

You are not logged in.

#1 2025-05-27 22:13:58

igorzwx
Member
Registered: 2024-05-06
Posts: 161  

Bug in Devuan (pkgconf)

What is:

$ pkgconf --libs --cflags gl
-lGL 
$ pkgconf --libs --cflags GL
Package GL was not found in the pkg-config search path.
Perhaps you should add the directory containing `GL.pc'
to the PKG_CONFIG_PATH environment variable
Package 'GL', required by 'virtual:world', not found 

What should be:

$ pkgconf --libs --cflags gl
-I/usr/include/GL -lGL 
$ pkgconf --libs --cflags GL
-I/usr/include/GL -lGL

Otherwise, you may get errors like this:

dependency GL found: NO
OpenGL Spectrum Analyzer: false

A workaround might be obvious, if you do not suffer from dementia.

What might be needed is "/usr/include/" in a sort of 'virtual:path' in the so-called 'virtual:world'. This might be an esoteric problem.
In any case, a simple workaround fixed the problem. Now it looks like this:

dependency GL version: 1.2 found: YES
OpenGL Spectrum Analyzer: true 

However, opengl.pc might also be wrong:

$ pkgconf --libs --cflags opengl
-lOpenGL 

It seems that "gtk+-3.0" was already fixed:

$ pkgconf --libs --cflags gtk+-3.0
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/gio-unix-2.0 -I/usr/include/GL -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 

Offline

Board footer