linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* help with GPIOSET_INTERACTIVE
@ 2023-12-29  9:14 Seamus de Mora
  2023-12-29 15:58 ` [libgpiod] " Kent Gibson
  0 siblings, 1 reply; 15+ messages in thread
From: Seamus de Mora @ 2023-12-29  9:14 UTC (permalink / raw)
  To: linux-gpio

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

With 'libeditline-dev' alone I am getting the compile error:
gpioset.c:16:10: fatal error: editline/readline.h: No such file or directory
   16 | #include <editline/readline.h>
      |          ^~~~~~~~~~~~~~~~~~~~~

With 'libedit-dev' alone (or both), I get these errors:
/usr/bin/ld: gpioset.o: in function `tab_completion':
/home/pi/libgpiod-2.1/tools/gpioset.c:732: undefined reference to
`rl_completion_matches'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:713: undefined
reference to `rl_completion_matches'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:725: undefined
reference to `rl_completion_matches'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:725: undefined
reference to `rl_attempted_completion_over'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:725: undefined
reference to `rl_completion_type'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:725: undefined
reference to `rl_completion_append_character'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:725: undefined
reference to `rl_line_buffer'
/usr/bin/ld: gpioset.o: in function `complete_line_id':
/home/pi/libgpiod-2.1/tools/gpioset.c:642: undefined reference to
`rl_line_buffer'
/usr/bin/ld: gpioset.o: in function `interact':
/home/pi/libgpiod-2.1/tools/gpioset.c:748: undefined reference to
`stifle_history'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:769: undefined
reference to `readline'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:853: undefined
reference to `history_list'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:855: undefined
reference to `add_history'
/usr/bin/ld: gpioset.o: in function `print_line_values':
/home/pi/libgpiod-2.1/tools/gpioset.c:484: undefined reference to
`rl_attempted_completion_function'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:484: undefined
reference to `rl_basic_word_break_characters'
/usr/bin/ld: /home/pi/libgpiod-2.1/tools/gpioset.c:484: undefined
reference to `history_length'
collect2: error: ld returned 1 exit status
make: *** [Makefile:513: gpioset] Error 1

Can someone explain how to add GPIOSET_INTERACTIVE & compile successfully?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-12-30  6:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-29  9:14 help with GPIOSET_INTERACTIVE Seamus de Mora
2023-12-29 15:58 ` [libgpiod] " Kent Gibson
2023-12-30  1:50   ` Seamus de Mora
2023-12-30  2:21     ` Kent Gibson
2023-12-30  4:43       ` Seamus de Mora
2023-12-30  5:03         ` Kent Gibson
2023-12-30  5:45           ` Seamus de Mora
2023-12-30  5:53             ` Kent Gibson
2023-12-30  6:25               ` Seamus de Mora
2023-12-30  6:29                 ` Kent Gibson
2023-12-30  6:36                   ` Seamus de Mora
2023-12-30  6:43                     ` Kent Gibson
2023-12-30  6:49                       ` Seamus de Mora
2023-12-30  6:51                         ` Kent Gibson
2023-12-30  6:56                           ` Seamus de Mora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).