Error when attempting to build json-glib

When attempting to use instructions at https://gitlab.freedesktop.org/geoclue/geoclue/blob/master/HACKING.md
The command json-glib ~ meson --prefix=/usr --sysconfdir /etc -Ddbus-srv-user=geoclue build
produces an error:

The Meson build system
Version: 1.4.1
Source dir: /home/myuser/libraries/json-glib
Build dir: /home/myuser/libraries/json-glib/build
Build type: native build

meson.build:8:0: ERROR: Unknown options: "dbus-srv-user"

A full log can be found at /home/myuser/libraries/json-glib/build/meson-logs/meson-log.txt

Could anyone give an explanation or pointers on what went wrong or how to resolve?

Hi,

This command is for compiling geoclue.
For compiling json-glib, you have to follow README.md · main · GNOME / json-glib · GitLab instead.

Usually, you should not need to manually compile these packages, but instead install them using your distribution package manager → search for something like json-glib-devel.

Thanks. Looking at the wrong documentation.
As you can tell I got lost installing dependencies for geoclue.

compiled it with meson install -C _build

found it with apt search libjson-glib-dev

libjson-glib-dev/stable,stable,stable,now 1.6.6-1 amd64 [installed]
  GLib JSON manipulation library (development files)

Sorry for that.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.