Commit 05ae6a2e authored by Iqbal Inzamam's avatar Iqbal Inzamam

Add file file contains the build instructions to build and run Geoclue

Fixes #104
parent a909708f
Pipeline #23666 passed with stage
in 5 minutes and 32 seconds
# Building Geoclue
- The following are the dependencies needed to build Geoclue2. But If Geoclue2
is already included in your distro/OS, you should be able to use the
package manager's command to install all build depedndancies.
* gio-2.0
* gio-unix-2.0
* gobject-introspection-1.0
* glib-2.0 (>= 2.34.0)
* json-glib-1.0
* libsoup2.4 (>= 2.42)
* pkg-config
sudo dnf builddep geoclue2
Debian and Ubuntu:
sudo apt build-dep geoclue-2.0
- For a full-fledged build, you also want ModemManager (mm-glib) and
avahi-client and avahi-glib. You want the latter two if you want to use the
[geoclue-share app](
sudo dnf install ModemManager
sudo dnf install avahi-client
sudo dnf install avahi-glib
Debian and Ubuntu:
sudo apt install modemmanager
sudo apt install libavahi-client3
sudo apt install libavahi-glib1
sudo apt install libnotify-dev
- [Install meson](
- Ensure you have a geoclue user on your system. If it already exists, you may
need to modify ``/etc/passwd`` file to make it a login user account.
- Build and install geoclue.
meson --prefix=/usr --sysconfdir /etc -Ddbus-srv-user=geoclue build
# you may need to pass --libdir=/usr/lib64 on some systems (eg. Fedora)
ninja -C build
sudo ninja -C build install
- Then you can run it as:
sudo su geoclue
G_MESSAGES_DEBUG=Geoclue /usr/libexec/geoclue
If you get the following error, make sure ``geoclue`` process is not already
> Failed to acquire name 'org.freedesktop.GeoClue2' on system bus or lost it
- Test
It will give your current location.
......@@ -9,3 +9,8 @@ Geoclue is Free Software, licensed under GNU GPLv2+.
# Troubleshooting and known limitations
* Geoclue requires glib >= 2.44.0, which is not available on Ubuntu 14.04.
# Building Geoclue
Refer to [](
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment