Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid error caused by menuconfig: Unable to find the ncurses libraries or the required header files. (GIT8266O-861) #1283

Open
DaniilAlpha opened this issue Jul 9, 2024 · 2 comments · May be fixed by #1287

Comments

@DaniilAlpha
Copy link

DaniilAlpha commented Jul 9, 2024

Similar issue do exist, but is closed and not very relevant as about an arch package.

Environment

  • IDF version: d3a5f99
  • Development Env: CMake
  • Operating System: Fedora 40 (6.9.7-200.fc40.x86_64)

Problem Description

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.

@github-actions github-actions bot 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
@mnganga10
Copy link

very helpful, should be pushed to master branch

@pogojotz pogojotz linked a pull request Sep 5, 2024 that will close this issue
@tikhonp
Copy link

tikhonp commented Nov 1, 2024

yeap this pull request fixes problem for me

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants