gpsd-dev
[Top][All Lists]
Advanced

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

Re: Is libusb required?


From: Gary E. Miller
Subject: Re: Is libusb required?
Date: Fri, 16 Jul 2021 16:26:06 -0700

Yo Sanjeev!

On Sat, 17 Jul 2021 00:23:48 +0800
Sanjeev Gupta <ghane0@gmail.com> wrote:

> Fresh Ubuntu 21.10(sic)

OK.

> | Userspace access to USB  devices
> 
> Which, to my mind, implies that I do not need it.

Correct.  BSD has no libusb, and works fine with gpsd.  Only the
Garmin driver ever uses libusb.  libusb could be used for better device
detection, but no one has submitted any ideas for that.

> But running scons:
> 
> sanjeev@impy-T450s:~/SRC/gpsd$ scons
> scons: Reading SConscript files ...
> scons version: 4.0.1
> scons is running under Python version: 3.9.6.final.0
> gpsd version: release-3.22-468-gcce496368
> This system is: linux
> Checking whether the C compiler works... (cached) yes
> Checking if compiler accepts -pthread... (cached) yes
> Checking whether the C++ compiler works... (cached) yes
> Checking for C header file curses.h... (cached) yes
> Checking pkg-config for ncurses... (cached) yes
> Checking pkg-config for tinfo... (cached) yes
> Checking pkg-config for libusb-1.0... (cached) yes

Notice that you do, in fact, have libusb-1.0 installed!  scons deetecetd
it fine.

[...]

> directory Package libusb-1.0 was not found in the pkg-config search
> path. Perhaps you should add the directory containing `libusb-1.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libusb-1.0' found
> OSError: 'pkg-config --cflags --libs libusb-1.0' exited 1:
>   File "/home/sanjeev/SRC/gpsd/SConstruct", line 63:
>     SConscript('SConscript',

Looks like you libusb package s broken.  It is installed, but not installed.

Unless, maybe you removed the package for tests, and forgot the run
"scons -c" to get a fresh configuration?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  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: pgp_nowZlGDj5.pgp
Description: OpenPGP digital signature


reply via email to

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