help with GPIOSET_INTERACTIVE

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

 



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?




[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