Configuring backports via menuconfig

Hi,
As per default the BSP2.8 comes with Toradex backports from kernel 5.4. Now i want to configure these backports via menuconfig but however when i open a devshell (bitbake backports -c devshell) and try to start menuconfig the error below occurrs. The library ncurses is already installed, e.g. menuconfig for the kernel is working fine. Any help on that would be great.

arm-angstrom-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/user/oe-core/build/tmp-glibc/work/apalis_tk1_mainline-angstrom-linux-gnueabi/backports/5.4-r0/recipe-sysroot -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -DLOCALE   -c -o mconf.o mconf.c
<command-line>:0:12: fatal error: ncurses.h: No such file or directory
compilation terminated.
<eingebaut>: die Regel für Ziel „mconf.o“ scheiterte
make[2]: *** [mconf.o] Fehler 1
Makefile.real:16: die Regel für Ziel „menuconfig“ scheiterte
make[1]: *** [menuconfig] Fehler 2
Makefile:40: die Regel für Zie

Hi @qojote

Thanks for writing to the Toradex Support.
Could your provide information about Linux Distribution?

Did you install also the dev package of libncurses5 with the following command: sudo apt-get install libncurses5-dev libncursesw5-dev?

Best regards,
Jaski

Hi @jaski.tx
I have installed libncursesw5-dev and now the error changed to the output below. And i have asked a related question here.
Linux distribution is Ubuntu 16.04.6 LTS with xfce.

t# make menuconfig
arm-angstrom-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/user/oe-core/build/tmp-glibc/work/apalis_tk1_mainline-angstrom-linux-gnueabi/backports/5.4-r0/recipe-sysroot -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"  -DNCURSES_WIDECHAR=1 -DLOCALE   -c -o mconf.o mconf.c
cc1: warning: include location "/usr/include/ncursesw" is unsafe for cross-compilation [-Wpoison-system-directories]
In file included from lxdialog/dialog.h:38:0,
                 from mconf.c:23:
/usr/include/ncursesw/curses.h:60:10: fatal error: ncursesw/ncurses_dll.h: No such file or directory
 #include <ncursesw/ncurses_dll.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
<eingebaut>: die Regel für Ziel „mconf.o“ scheiterte
make[2]: *** [mconf.o] Fehler 1
Makefile.real:16: die Regel für Ziel „menuconfig“ scheiterte
make[1]: *** [menuconfig] Fehler 2
Makefile:40: die Regel für Ziel

Hi @qojote

Sorry for the delayed answer.

I tested this on Ubuntu 18.04 with the following packages installed:

libncurses-gst/bionic,bionic 3.2.5-1.1 all
libncurses5/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed]
libncurses5-dbg/bionic-updates 6.1-1ubuntu1.18.04 amd64
libncurses5-dev/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed]
libncursesada-doc/bionic,bionic 6.0.20170708-2 all
libncursesada5/bionic 6.0.20170708-2 amd64
libncursesada5-dev/bionic 6.0.20170708-2 amd64
libncursesw5/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed]
libncursesw5-dbg/bionic-updates 6.1-1ubuntu1.18.04 amd64
libncursesw5-dev/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed]

And it is working fine for me.

Best regards,
Jaski