Re: [libgpiod] help with GPIOSET_INTERACTIVE

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

 



On Fri, Dec 29, 2023 at 9:58 AM Kent Gibson <warthog618@xxxxxxxxx> wrote:
>
> On Fri, Dec 29, 2023 at 03:14:04AM -0600, Seamus de Mora wrote:
> > I'm trying to add the 'GPIOSET_INTERACTIVE' definition to 'gpioset.c':
> > I've installed 'libeditline-dev' and 'libedit-dev' via apt; each
> > separately, and then both
> >
> > Can someone explain how to add GPIOSET_INTERACTIVE & compile successfully?

> You don't specify your platform and what you've done to get this far -
> you provide the output you are seeing but not the inputs.
> It is apparently a Pi, but the distro and version would be helpful,
> as well as the build commands themselves.
>
> Have you read the BUILDING section of the README?
> How are you performing the build? I would expect autoconf to choke
> if it can't find the required headers before it even gets to the actual
> compile step.

Yes - I read the BUILDING section of the README. When I initially
installed this, I was trying to follow "the RPi way" of doing things,
and I used these commands:

$ ./autogen.sh --enable-tools=yes --prefix=/usr/lib/arm-linux-gnueabihf
$ make
$ sudo make install

This was done on an RPi 3A+, running "raspbian/RPi OS", release
"bullseye", kernel ver "6.1.21-v7+"
Why '/usr/lib/arm-linux-gnueabihf'?
    Because that's where the older ver 1.6.X version of 'libgpiod' &
the "tools" were installed.
Of course that had no effect on my issue, but just so you know.

Also: I was trying to re-compile 'gpioset' from the
'~/libgpiod-2.1/tools' folder, using 'make' - as explained below.

> This works for me on a Pi, both bullseye and bookworm:
>
> $ ./autogen.sh --enable-tools --enable-gpioset-interactive
> $ make

That option ('--enable-gpioset-interactive') seems to have gotten the
job done. I had to back out of 'libgpiod-2.1/tools' to
'~/libgpiod-2.1', and let './autogen.sh' take care of the '#define'...
instead of me trying to add it manually to 'gpioset.c' via '#define
GPIOSET_INTERACTIVE'.  I do have **all** the packages you listed below
installed, so why my manual addition didn't work is still a mystery to
me - but not one worth fretting over.

> That is with the following packages installed:
>  autoconf
>  autoconf-archive
>  libtool
>  m4
>  libedit-dev

Thanks for your help!   :)
~S





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux