Hi all,
I'm trying to cross-compile LibreELEC for Raspberry Pi 3, to add some touch driver. (Touchsupport)
The PC is on Kubuntu 18.4 x64.
The compilation stops when it compiles cpluff (in Kodi/lib)
Code
/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/readline-7.0/search.c:56:17: note: code may be misoptimized unless -fno-strict-aliasing is used
/tmp/ccQg1g7c.ltrans0.ltrans.o: In function `rl_redisplay':
<artificial>:(.text+0x4f8): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans5.ltrans.o: In function `rl_ding':
<artificial>:(.text+0x918): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans5.ltrans.o: In function `_rl_backspace':
<artificial>:(.text+0xc3c): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans5.ltrans.o: In function `_rl_get_screen_size':
<artificial>:(.text+0xd8c): undefined reference to `tgetnum'
<artificial>:(.text+0xde8): undefined reference to `tgetnum'
/tmp/ccQg1g7c.ltrans6.ltrans.o: In function `rl_deprep_terminal':
<artificial>:(.text+0xca0): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans6.ltrans.o: In function `rl_prep_terminal':
<artificial>:(.text+0x1074): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans9.ltrans.o: In function `cr.lto_priv.73':
<artificial>:(.text+0x518): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans9.ltrans.o: In function `_rl_clear_to_eol':
<artificial>:(.text+0x59c): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans9.ltrans.o: In function `_rl_move_vert':
<artificial>:(.text+0xa38): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans9.ltrans.o:<artificial>:(.text+0xa8c): more undefined references to `tputs' follow
/tmp/ccQg1g7c.ltrans10.ltrans.o: In function `readline':
<artificial>:(.text+0x1c4): undefined reference to `tgetent'
<artificial>:(.text+0x744): undefined reference to `tputs'
<artificial>:(.text+0x8ec): undefined reference to `tgetstr'
<artificial>:(.text+0x948): undefined reference to `tgetflag'
<artificial>:(.text+0x958): undefined reference to `tgetflag'
<artificial>:(.text+0x9d4): undefined reference to `tgetflag'
<artificial>:(.text+0xd70): undefined reference to `tputs'
<artificial>:(.text+0xf10): undefined reference to `PC'
<artificial>:(.text+0xf18): undefined reference to `BC'
<artificial>:(.text+0xf1c): undefined reference to `UP'
/tmp/ccQg1g7c.ltrans11.ltrans.o: In function `update_line.lto_priv.72':
<artificial>:(.text+0x7c8): undefined reference to `tputs'
<artificial>:(.text+0xe24): undefined reference to `tgoto'
<artificial>:(.text+0xe30): undefined reference to `tputs'
<artificial>:(.text+0xf04): undefined reference to `tputs'
<artificial>:(.text+0xf30): undefined reference to `tputs'
<artificial>:(.text+0xf7c): undefined reference to `tputs'
<artificial>:(.text+0x1318): undefined reference to `tgoto'
<artificial>:(.text+0x1324): undefined reference to `tputs'
<artificial>:(.text+0x1350): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans12.ltrans.o: In function `rl_clear_screen':
<artificial>:(.text+0x868): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans24.ltrans.o: In function `_rl_move_cursor_relative':
<artificial>:(.text+0x2b0): undefined reference to `tputs'
<artificial>:(.text+0x328): undefined reference to `tputs'
/tmp/ccQg1g7c.ltrans24.ltrans.o:<artificial>:(.text+0x358): more undefined references to `tputs' follow
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:417: cpluff-console] Error 1
make[6]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/lib/cpluff/console'
make[5]: *** [Makefile:487: all-recursive] Error 1
make[5]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/lib/cpluff'
make[4]: *** [Makefile:398: all] Error 2
make[4]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/lib/cpluff'
make[3]: *** [CMakeFiles/libcpluff.dir/build.make:113: build/cpluff/src/libcpluff-stamp/libcpluff-build] Error 2
make[3]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/.armv7ve-libreelec-linux-gnueabi'
make[2]: *** [CMakeFiles/Makefile2:664: CMakeFiles/libcpluff.dir/all] Error 2
make[2]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/.armv7ve-libreelec-linux-gnueabi'
make[1]: *** [Makefile:128: all] Error 2
make[1]: Leaving directory '/home/guillaume/LibreELEC.tv/build.LibreELEC-RPi2.arm-8.2.5/kodi-a9a7a20/.armv7ve-libreelec-linux-gnueabi'
Makefile:12: recipe for target 'image' failed
make: *** [image] Error 2
Display More
The "undefined reference to `tputs' " seems to be an ncurse lib issue, but it's already in my package folder.
Does anybody have an idea to fix this error ?
Thanks
Guillaume