I'm not used to build apps from source and when I do, it's not free from hiccups.
While trying to build the app qman, I was met with this error code:
[1/11] Generating src/config.h with a custom command
FAILED: src/config.h
/usr/bin/cog -d -o src/config.h ../src/config.h.cog
cog: Cannot load more than one URL.
(cog:117462): GLib-GObject-CRITICAL **: 14:35:12.738: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[2/11] Generating src/config.c with a custom command
FAILED: src/config.c
/usr/bin/cog -d -o src/config.c ../src/config.c.cog
cog: Cannot load more than one URL.
(cog:117463): GLib-GObject-CRITICAL **: 14:35:12.739: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
ninja: build stopped: subcommand failed.
After running the command meson compile
. Before that, I used the command meson setup build/ --prefix=/usr/local/stow/qman
. I also installed the required dependencies.
I'm running Debian 13 Trixie.
1 Answer 1
This looks like a tool with the same executable name got installed – but as you noticed yourself (sorry for not stating that, but good work on your end!), you really need the cog
file generation tool as available via pip
(or your python package manager of choice) as cogapp
, or, if you're on debian, Ubuntu, Fedora or derivative distros, as system package called python3-cogapp
.
podman
package,sudo apt install podman
, then runpodman run -it --rm debian:12
to get a clean-slate debian 12 environment)?/usr/bin/cog -h
?