Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5361

Beginners • Re: Updating to the newest libgpiod

$
0
0
According to the README once you have downloaded and extracted the source -

Code:

./autogen.sh --enable-tools=yes --prefix=<install path>makemake install
I don't know what the '--prefix=' should be set to so left that out, then ran make and got local binaries in the './tools' directory.

I skipped that 'make install' having not set '--prefix=', and I'd also guess it might need to be a 'sudo make install'.

Code:

cd ~/apps/libgpiodmkdir 2.1.1cd 2.1.1wget https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-2.1.1.tar.gztar zxvf libgpiod-2.1.1.tar.gzcd libgpiod-2.1.1./autogen.sh --enable-tools=yesmake

Code:

pi@Pi4B:~/apps/libgpiod/2.1.1/libgpiod-2.1.1 $ ls ./toolsgpiodetect    gpioinfo    gpionotify    gpio-tools-test.bash  tools-common.hgpiodetect.c  gpioinfo.c  gpionotify.c  libtools-common.la    tools-common.logpiodetect.o  gpioinfo.o  gpionotify.o  Makefile              tools-common.ogpioget       gpiomon     gpioset       Makefile.amgpioget.c     gpiomon.c   gpioset.c     Makefile.ingpioget.o     gpiomon.o   gpioset.o     tools-common.c

Code:

pi@Pi4B:~/apps/libgpiod/2.1.1/libgpiod-2.1.1 $ ./tools/gpioset --versiongpioset (libgpiod) v2.1.1Copyright (C) 2017-2023 Bartosz GolaszewskiLicense: GPL-2.0-or-later
So, figure out what '--prefix=' should be set to, finish with 'sudo make install' and I expect that will have done the job. E&OE. YMMV.

Statistics: Posted by hippy — Tue Apr 30, 2024 11:32 pm



Viewing all articles
Browse latest Browse all 5361

Trending Articles