failed to compile idf when i update esp-idf.
Posted: Sat Dec 08, 2018 8:10 am
I had sucess compile application base esp-idf,but when i update idf to v3.2,i failed finish the compile。
when i input make menuconfig,the error log follow as:
when i input make menuconfig,the error log follow as:
Toolchain path: /home/kaka/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
make[1]: Entering directory '/mnt/share/esp32/esp-idf/tools/kconfig'
make[1]: /mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/check-lxdialog.sh:命令未找到
cc -c -DLOCALE -MMD /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c -o mconf.o
In file included from /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:23:0:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:38:10: error: #include expects "FILENAME" or <FILENAME>
#include CURSES_LOC
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:103:2: error: unknown type name ‘chtype’
chtype atr; /* Color attribute */
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:200:16: error: unknown type name ‘WINDOW’
int on_key_esc(WINDOW *win);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:221:17: error: unknown type name ‘WINDOW’
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:221:54: error: unknown type name ‘chtype’
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:223:21: error: unknown type name ‘WINDOW’
void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:224:19: error: unknown type name ‘WINDOW’
void print_button(WINDOW * win, const char *label, int y, int x, int selected);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:225:18: error: unknown type name ‘WINDOW’
void print_title(WINDOW *dialog, const char *title, int width);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:226:15: error: unknown type name ‘WINDOW’
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:226:66: error: unknown type name ‘chtype’
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:227:8: error: unknown type name ‘chtype’
chtype border);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:228:18: error: unknown type name ‘WINDOW’
void draw_shadow(WINDOW * win, int y, int x, int height, int width);
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘conf’:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: error: ‘KEY_MAX’ undeclared (first use in this function)
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: note: each undeclared identifier is reported only once for each function it appears in
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘show_help’:
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:793:19: warning: implicit declaration of function ‘getmaxx’ [-Wimplicit-function-declaration]
help.max_width = getmaxx(stdscr) - 10;
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:793:27: error: ‘stdscr’ undeclared (first use in this function)
help.max_width = getmaxx(stdscr) - 10;
^
In file included from /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:23:0:
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘conf_choice’:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: error: ‘KEY_MAX’ undeclared (first use in this function)
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:855:9: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
case -ERRDISPLAYTOOSMALL:
^
Makefile:171: recipe for target 'mconf.o' failed
make[1]: *** [mconf.o] Error 1
make[1]: Leaving directory '/mnt/share/esp32/esp-idf/tools/kconfig'
make: *** No rule to make target '/mnt/share/esp32/esp-idf/tools/kconfig/conf-idf', needed by '/mnt/share/esp32/projects/hello_world/build/include/config/auto.conf'。 停止。