/srv/irclogs.ubuntu.com/2022/04/11/#netplan.txt

netdeverHi there! I've forked netplan and I'm attempting to compile my changes for testing on my Ubuntu laptop. Seeing "meson: error: unrecognized arguments: [-Db_coverage=true]", and if I leave that argument off, I see "meson.build:12:0: ERROR: Dependency "glib-2.0" not found, tried pkgconfig and cmake." Has anyone seen this before?14:18
schopinnetdever: Run `sudo apt build-dep netplan.io` to get all dev dependencies (except meson as its support is *really* new)14:47
netdeverHmm, which deb-src do I need? "Unable to find a source package for netplan.io"14:58
schopinThe same URL as the mirror for main should suffice.15:01
netdeverGot it with "deb-src https://mirrors.kernel.org/ubuntu focal main" -- but the issue persists. Getting the same errors trying to build with meson.15:40
schopinnetdever: you can use the Makefile-based build system instead ('make', 'make check', etc...)15:49
netdevermake is also unable to find glib "fatal error: glib.h: No such file or directory"15:57
schopinThat's weird. Are you sure you have libglib2.0-dev installed ? (should have come with the build-dep apt command)16:00
netdeverYes, it is installed, and glib.h is present at "/usr/include/glib-2.0/glib.h" -- and the Makefile includes the directory "/usr/include/"16:03
schopinSorry then, I'm out of ideas.16:07
netdeverNo worries, thanks for your help - I'm going to try on a different device16:17
cyphermoxI'd check what pkgconfig says about glib-2.0; that might tell you why it's not finding glib.h (ie. not actually adding /usr/include/glib-2.0 anywhere)18:09
cyphermoxnetdever: ^18:09
nicolasbockCould someone review https://github.com/canonical/netplan/pull/270 ?21:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!