直到现在我才能够make menuconfig
成功运行。我尝试安装 cmake 软件包,然后我得到,
make menuconfig
:
make[1]: Entering directory '/home/dullollis/esp/esp-idf/tools/kconfig'
lxdialog/check-lxdialog.sh -check /usr/bin/gcc -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L -I/mingw32/include -I/mingw32/include/ncursesw -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MD -L/mingw32/lib -lncursesw -lgnurx -ltre -lintl -liconv -lpsapi -lintl
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [Makefile:203: dochecklxdialog] Error 1
make[1]: Leaving directory '/home/dullollis/esp/esp-idf/tools/kconfig'
make: *** No rule to make target '/home/dullollis/esp/esp-idf/tools/kconfig/conf', needed by '/home/dullollis/esp/CAN/build/include/config/auto.conf'. Stop.
虽然我有最新的 ncurses (ncurses-devel) 库。
我缺少什么?
答案1
这一行显示了一个问题:
lxdialog/check-lxdialog.sh -check /usr/bin/gcc -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L -I/mingw32/include -I/mingw32/include/ncursesw -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -MD -L/mingw32/lib -lncursesw -lgnurx -ltre -lintl -liconv -lpsapi -lintl
看起来好像用户的环境已经设置CC
或者CFLAGS
交叉编译明GW32,这很令人困惑check-lxdialog.sh
(通过查找无法链接的库)。