Try this patch to the scripts directory:
--- linux-rpi-3.18.y/scripts/kconfig/Makefile
+++ linux-rpi-3.18.y-menuconfig-patched/scripts/kconfig/Makefile
@@ -212,7 +212,7 @@
HOSTLOADLIBES_nconf = $(shell \
pkg-config --libs menuw panelw ncursesw 2>/dev/null \
|| pkg-config --libs menu panel ncurses 2>/dev/null \
- || echo "-lmenu -lpanel -lncurses" )
+ || echo "-lmenu -lpanel -lncursesw" )
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
ifeq ($(MAKECMDGOALS),xconfig)
--- linux-rpi-3.18.y/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ linux-rpi-3.18.y-menuconfig-patched/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -15,6 +15,7 @@
fi
done
done
+ echo "-lncursesw"
exit 1
}
@@ -25,14 +26,14 @@
echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1'
elif pkg-config --cflags ncurses 2>/dev/null; then
echo '-DCURSES_LOC="<ncurses.h>"'
- elif [ -f /usr/include/ncursesw/curses.h ]; then
- echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"'
+ elif [ -f /usr/local/include/ncursesw/curses.h ]; then
+ echo '-I/usr/local/include/ncursesw -DCURSES_LOC="<curses.h>"'
echo ' -DNCURSES_WIDECHAR=1'
- elif [ -f /usr/include/ncurses/ncurses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
- elif [ -f /usr/include/ncurses/curses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"'
- elif [ -f /usr/include/ncurses.h ]; then
+ elif [ -f /usr/local/include/ncurses/ncurses.h ]; then
+ echo '-I/usr/local/include/ncurses -DCURSES_LOC="<ncurses.h>"'
+ elif [ -f /usr/local/include/ncurses/curses.h ]; then
+ echo '-I/usr/local/include/ncurses -DCURSES_LOC="<curses.h>"'
+ elif [ -f /usr/local/include/ncurses.h ]; then
echo '-DCURSES_LOC="<ncurses.h>"'
else
echo '-DCURSES_LOC="<curses.h>"'