Problems building
When following the build instructions, I end up with build errors. I tried first with the minimum dependencies listed, which configures fine:
The Meson build system
Version: 0.45.1
Source dir: /home/user/build/buoh
Build dir: /home/user/build/buoh/build
Build type: native build
Project name: buoh
Native C compiler: ccache cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency gtk+-3.0 found: YES 3.22.30
Native dependency glib-2.0 found: YES 2.56.4
Native dependency libsoup-2.4 found: YES 2.62.1
Native dependency libxml-2.0 found: YES 2.9.4
Program appstream-util found: NO
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program gtk-builder-tool found: YES (/usr/bin/gtk-builder-tool)
Program xmllint found: YES (/usr/bin/xmllint)
Program xsltproc found: NO
Program /usr/bin/python3 found: YES (/usr/bin/python3)
Native dependency glib-2.0 found: YES 2.56.4
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Build targets in project: 11
Found ninja-1.8.2 at /usr/bin/ninja
however, upon calling ninja -C build
, it fails to compile:
ccache cc -Isrc/buoh@exe -Isrc -I../src -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 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -pthread '-DCOMICS_DIR="/usr/share/buoh/comics"' '-DGETTEXT_PACKAGE="buoh"' '-DVERSION="0.8.3"' '-DLOCALE_DIR="/usr/share/locale"' -MD -MQ 'src/buoh@exe/meson-generated_.._buoh-enums.c.o' -MF 'src/buoh@exe/meson-generated_.._buoh-enums.c.o.d' -o 'src/buoh@exe/meson-generated_.._buoh-enums.c.o' -c src/buoh-enums.c
src/buoh-enums.c:5:10: fatal error: src/buoh-settings.h: No such file or directory
#include "src/buoh-settings.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
I figured I might need some optional libraries, but after installing them, I can't even configure the project:
The Meson build system
Version: 0.45.1
Source dir: /home/user/build/buoh
Build dir: /home/user/build/buoh/build
Build type: native build
Project name: buoh
Native C compiler: ccache cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency gtk+-3.0 found: YES 3.22.30
Native dependency glib-2.0 found: YES 2.56.4
Native dependency libsoup-2.4 found: YES 2.62.1
Native dependency libxml-2.0 found: YES 2.9.4
Program appstream-util found: YES (/usr/bin/appstream-util)
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program gtk-builder-tool found: YES (/usr/bin/gtk-builder-tool)
Program xmllint found: YES (/usr/bin/xmllint)
Program xsltproc found: YES (/usr/bin/xsltproc)
meson.build:46:8: ERROR: Unknown method "add_dist_script" in object.
I'm not familiar enough with meson to figure this out easily. For the first error, I noticed that the source code isn't copied to the build folder, but buoh-enums.c
does live there. I figure it might be generated, but maybe the main source is compiled from the original src folder? Please help me compile the project