[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Problems building gpsd 3.18.1 from source on Ubuntu 18.

From: Gary E. Miller
Subject: Re: [gpsd-users] Problems building gpsd 3.18.1 from source on Ubuntu 18.04 LTS
Date: Tue, 19 Feb 2019 15:00:06 -0800

Yo Rich!

I see many problems.  Looks like you missed some prerequisites mentioned
in build.txt.

If you keep track of what you have to install to make this work, then
I'll try to improve build.txt to make things a bit more obvious.

On Tue, 19 Feb 2019 14:41:29 -0800
Rich Wales <address@hidden> wrote:

> # scons --config=force timing=True

Output of configure is always worth reading closely.

> Checking pkg-config for ncurses... no
> Turning off ncurses support, library not found.

No ncurses means things like cgps and gpsmon will not be built.

> Checking pkg-config for libusb-1.0... no

No libusb causes issues with some drivers.

> Checking pkg-config for dbus-1... no
> Turning off dbus-export support, library not found.

dbus lets gpsd talk to Firefox, etc.

> Checking for C header file sys/timepps.h... no
> Forcing magic_hat=no since RFC2783 API is unavailable

That means you will not get KPPS.  So you PPS accuracy will suffer
a lot.

> Checking that xsltproc can make man pages... no
> Neither xsltproc nor xmlto found, documentation cannot be built.

No man pages.

> Checking pkg-config for QtNetwork... no
> Turning off Qt support, library not found.

No Qt lib will be built.

The bad news is summarized:

> Altered configuration variables:
> dbus_export = False (default True): enable DBUS export support
> bluez = False (default True): BlueZ support for Bluetooth devices
> ncurses = False (default True): build with ncurses
> qt = False (default True): build QT bindings
> magic_hat = False (default True): special Linux PPS hack for Raspberry
> Pi et al
> Part of the website build requires asciidoc, not installed.

And back to the main problem:

> x86_64-linux-gnu-gcc -pthread -o
> -c
> -Wno-unused-result -Wsign-compare -fPIC -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -I/usr/include/python3.6m os_compat.c
> x86_64-linux-gnu-gcc -pthread -o
> -c
> -Wno-unused-result -Wsign-compare -fPIC -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -I/usr/include/python3.6m packet.c
> x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
> -Wl,-Bsymbolic-functions -specs=/usr/share/dpkg/no-link.specs
> -Wl,-z,relro -o gps/
> -L. -lrt
> x86_64-linux-gnu-gcc: error: /usr/share/dpkg/no-link.specs: No such
> file or directory
> scons: *** [gps/] Error 1
> scons: building terminated because of errors.

I have no idea where the "-specs=/usr/share/dpkg/no-link.specs" thing
is coming from.  I suspect from some of the missing dependencies
covered above.  Maybe you have not installed the "python-dev" package?

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpcQ_zamCvRZ.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]