curses.h

lisa.tamanti
Posts: 1
Joined: Sat Jun 30, 2018 1:32 pm

curses.h

Postby lisa.tamanti » Mon Jul 02, 2018 9:53 am

Hi !
I'm new to ESP32 and I'm trying to build "hello-world" example in Eclipse enviroment with Windows10
I have this error

11:48:30 **** Incremental Build of configuration Default for project hello_world ****
python "c:\\msys32\\esp\\esp-idf/tools/windows/eclipse_make.py" all
fatal: unable to join threaded lstat
fatal: unable to join threaded lstat
In file included from mconf.c:23:0:
lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
compilation terminated.
make[1]: *** [<builtin>: mconf.o] Error 1
make: *** No rule to make target '/cygdrive/c/msys32/esp/esp-idf/tools/kconfig/conf', needed by '/cygdrive/c/ECLIPSE/ProgettiFW/hello_world/build/include/config/auto.conf'. Stop.
Running make in 'C:/ECLIPSE/ProgettiFW/hello_world'

Someone can help me?
Thank you very much!!!

lisa

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: curses.h

Postby chegewara » Mon Jul 02, 2018 5:35 pm

You have messed something with setup and/or paths. Here you have windows like path:
c:\\msys32\\esp\\esp-idf/tools/windows/eclipse_make.py
and in mingw32 you should use only unix like notations. Here also something odd, unless you have subfolder "c" in folder "cygdrive":
/cygdrive/c/msys32/esp/esp-idf/tools/kconfig/conf

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: curses.h

Postby ESP_Angus » Tue Jul 03, 2018 12:12 am

Hi Lisa,

According to the Eclipse ESP-IDF setup docs for Windows, the Windows-style IDF_PATH environment variable needs to use forward-slashes not backslashes to work correctly. However actually backslashes (as shown) should work with recent ESP-IDF, I just tested them.

I agree that there is something unexpected going on with the other paths shown in the build log, (/cygdrive/xxx). ESP-IDF shouldn't be showing Cygwin-style "cygdrive" paths.

I have a couple of questions to help narrow down the root cause:

Have you downloaded the Windows build environment (msys2 directory), as described here:
https://docs.espressif.com/projects/esp ... hain-setup

Have you set the environment variables in the Eclipse project, as described here:
https://docs.espressif.com/projects/esp ... properties

In particular, please double-check the BATCH_BUILD and PATH variables. The PATH has to be set to only directories which are part of the IDF MSYS2 directory, as shown at the link above.

We are working on making IDE setup less complex, especially for Windows users, in an upcoming ESP-IDF update.

Who is online

Users browsing this forum: jldesigns, Muntazer and 116 guests