You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After idf.py menuconfig is run, ESP8266_RTOS_SDK/tools/kconfig/lxdialog/check-lxdialog.sh reports an error
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
Althought, both ncurses and ncurses-devel is preset on the system.
After a bit of digging, I realized that error is actually not related to ncurses at all. The way script checks for ncurses presence is kida lame not so good, furthermore it relies on non-standard C (ommiting type before the main function), so compiler generates a warning which makes the check fail.
Expected Behavior
Menuconfig builds out of the box.
Actual Behavior
To build menuconfig, tinkering with idf scripts is required.
Steps to repropduce
May be kind of tricky, as it depends on compiler options and the compiler itself. I personaly add -std=c11 at the project-level CMakeLists, but not sure if it matters.
Fix
Adding int before this test main function fixes the problem.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Invalid error caused by menuconfig: Unable to find the ncurses libraries or the required header files.
Invalid error caused by menuconfig: Unable to find the ncurses libraries or the required header files. (GIT8266O-861)
Jul 9, 2024
Similar issue do exist, but is closed and not very relevant as about an arch package.
Environment
Problem Description
After
idf.py menuconfig
is run,ESP8266_RTOS_SDK/tools/kconfig/lxdialog/check-lxdialog.sh
reports an errorAlthought, both
ncurses
andncurses-devel
is preset on the system.After a bit of digging, I realized that error is actually not related to ncurses at all. The way script checks for ncurses presence is
kida lamenot so good, furthermore it relies on non-standard C (ommiting type before themain
function), so compiler generates a warning which makes the check fail.Expected Behavior
Menuconfig builds out of the box.
Actual Behavior
To build menuconfig, tinkering with idf scripts is required.
Steps to repropduce
May be kind of tricky, as it depends on compiler options and the compiler itself. I personaly add
-std=c11
at the project-level CMakeLists, but not sure if it matters.Fix
Adding
int
before this testmain
function fixes the problem.The text was updated successfully, but these errors were encountered: