最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[Solved] can not found curses.h when make menuconfig for buildroot

工作和技术 crifan 3036浏览 0评论

[Solved] can not found curses.h when make menuconfig for buildroot

when do "make menuconfig" for buildroot, occur error:
————————————————————————————————–
crifan@ubuntu810:/usr/crifan/develop/buildroot/buildroot$ make menuconfig
make CC="/usr/bin/gcc" -C package/config conf mconf
make[1]: Entering directory `/usr/crifan/develop/buildroot/buildroot/package/config’
/usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -g -O2 -MM *.c > .depend 2>/dev/null || :
make[1]: Leaving directory `/usr/crifan/develop/buildroot/buildroot/package/config’
make[1]: Entering directory `/usr/crifan/develop/buildroot/buildroot/package/config’
/usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -g -O2 -c conf.c -o conf.o
conf.c: In function ‘conf_askvalue’:
conf.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
conf.c: In function ‘conf_choice’:
conf.c:363: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -g -O2 -c kxgettext.c -o kxgettext.o
/usr/bin/gcc -DCURSES_LOC="<curses.h>" -DLOCALE -g -O2 -c lxdialog/checklist.c -o lxdialog/checklist.o
In file included from lxdialog/checklist.c:24:
lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from lxdialog/checklist.c:24:
lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’
lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:194: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:199: error: expected ‘)’ before ‘*’ token
lxdialog/dialog.h:201: error: expected ‘)’ before ‘*’ token
lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
lxdialog/checklist.c: In function ‘dialog_checklist’:
lxdialog/checklist.c:116: error: ‘WINDOW’ undeclared (first use in this function)
lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
lxdialog/checklist.c:116: error: for each function it appears in.)
lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use in this function)
lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in this function)
lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use in this function)
lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use in this function)
lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in this function)
lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use in this function)
lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in this function)
lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use in this function)
lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first use in this function)
lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use in this function)
lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first use in this function)
lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first use in this function)
lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)
make[1]: *** [lxdialog/checklist.o] Error 1
make[1]: Leaving directory `/usr/crifan/develop/buildroot/buildroot/package/config’
make: *** [package/config/mconf] Error 2

————————————————————————————————–

it seems we are lack of the ncurses lib, so go to search related lib:
————————————————————————————————–
crifan@ubuntu810:/usr/crifan/develop/buildroot/buildroot$ sudo apt-cache search curses
bittornado – bittorrent client with enhanced curses interface
hunspell – spell checker and morphological analyzer (program)
hunspell-tools – tools for hunspell
iptraf – Interactive Colorful IP LAN Monitor
lib64ncurses5 – Shared libraries for terminal handling (64-bit)
lib64ncurses5-dev – Developer’s libraries for ncurses (64-bit)
libcwidget-dev – high-level terminal interface library for C++ (development files)
libcwidget-doc – high-level terminal interface library for C++ (documentation)
libcwidget3 – high-level terminal interface library for C++ (runtime files)
libcwidget3-dbg – high-level terminal interface library for C++ (debugging files)
libhunspell-1.2-0 – spell checker and morphological analyzer (shared library)
libhunspell-dev – spell checker and morphological analyzer (development)
libncurses5 – Shared libraries for terminal handling
libncurses5-dbg – Debugging/profiling libraries for ncurses
libncurses5-dev – Developer’s libraries and docs for ncurses
libncursesw5 – Shared libraries for terminal handling (wide character support)
libncursesw5-dbg – Debugging/profiling libraries for ncurses
libncursesw5-dev – Developer’s libraries for ncursesw
linux-ports-source-2.6.25 – Linux kernel source for version 2.6.25 with Ubuntu patches
lynx – Text-mode WWW Browser
mtr-tiny – Full screen ncurses traceroute tool
ncurses-base – Descriptions of common terminal types
ncurses-bin – Terminal-related programs and man pages
ncurses-term – Additional terminal type definitions
whiptail – Displays user-friendly dialog boxes from shell scripts
abook – text-based ncurses address book application
alpine – Text-based email client, friendly for novices but powerful
alpine-dbg – Text-based email client’s debugging symbols
apachetop – Realtime Apache monitoring tool
atom4 – An original two-player color puzzle game
audtty – ncurses based frontend to audacious
aumix – Simple text-based mixer control program
aumix-gtk – Simple mixer control program with GUI and text interfaces
avida-viewer – ncurses viewer for avida
aview – A high quality ASCII art image viewer and video player
aylet – ncurses-based player for Spectrum ‘.ay’ music files
barnowl – A curses-based tty Jabber and Zephyr client
barnowl-irc – Provide IRC support for the BarnOwl Zephyr client
bmon – portable bandwidth monitor and rate estimator
bochs-term – Terminal (ncurses-based) plugin for Bochs
btscanner – ncurses-based scanner for Bluetooth devices
bwm-ng – small and simple console-based bandwidth monitor
c3270 – Curses program for telnet sessions to IBM mainframes
cabber – Easy and basic jabber console client
cbm – display the current network traffic in colors
cdw – Tool for burning CD’s – console version
centerim-utf8 – A text-mode multi-protocol instant messenger client
cgdb – a curses-based interface to the GNU Debugger (GDB)
clex – command line file manager which uses the ncurses library
colrconv – Convers client with curses color support
colrdx – DX-cluster client with curses color support
conquest – a real-time, multi-player space warfare game (curses client)
console-freecell – console version of freecell game
cwcp – Ncurses frontend to unixcw
dares – rescue files from damaged CDs and DVDs (ncurses-interface)
dav-text – A minimalist ncurses-based text editor
ekg – console Gadu Gadu client for UNIX systems
ettercap-gtk – Multipurpose sniffer/interceptor/logger for switched LAN
fama – text-based instant messaging software built on Telepathy
fbb – Packet radio mailbox and utilities
fp-units-base – Free Pascal — base units
giftcurs – text-based interface to the giFT file-sharing system
gom – Command line and interactive ncurses-based OSS audio mixer
gopher – Distributed Hypertext Client, Gopher protocol
greed – curses-based clone of the DOS freeware game Greed
gtypist – A simple ncurses touch typing tutor
herrie – Minimalistic audio player built upon Ncurses
hexcurse – A ncurses-based hex editor with many features
hnb – Hierarchical notebook
hrd – the puzzle game of HuaRongDao
imediff2 – interactive full screen 2-way merge tool
irmp3-ncurses – irmp3 control frontend
iselect – An interactive line selection tool for ASCII files
jmon – distributed resource monitor
juke – A curses-based jukebox program
latrine – curses-based LAnguage TRaINEr
libcdio-utils – sample applications based on the CDIO libraries
libcdk-perl – Perl interface for a curses widget library
libcdk5 – C-based curses widget library
libcdk5-dev – C-based curses widget library (development files)
libcunit1-ncurses – Unit Testing Library for C (ncurses)
libcunit1-ncurses-dev – Unit Testing Library for C (ncurses) — development files
libcurses-ocaml – OCaml bindings for the ncurses library
libcurses-ocaml-dev – OCaml bindings for the ncurses library
libcurses-perl – Curses interface for Perl
libcurses-ruby – transitional dummy package
libcurses-ui-perl – curses-based OO user interface framework for Perl
libcurses-widgets-perl – Curses widget interface for Perl
libdevel-ebug-perl – Simple, extensible Perl debugger
libggi-target-terminfo – General Graphics Interface TermInfo display target
libkaya-ncurses-dev – Ncurses binding for kaya
libkaya-ncursesw-dev – Ncurses binding for kaya
libncurses-gst – Ncurses bindings for GNU Smalltalk
libncurses-ruby – ruby Extension for the ncurses C library
libncurses-ruby1.8 – ruby Extension for the ncurses C library
libncurses-ruby1.9 – ruby Extension for the ncurses C library
libperlmenu-perl – Menu and Template (curses-based) UI for Perl
libruby – Libraries necessary to run Ruby 1.8.x
libruby-extras – a bundle of additional libraries for Ruby
libruby1.8-extras – a bundle of additional libraries for Ruby 1.8
libstfl-dev – structured terminal forms language/library
libstfl-perl – Perl bindings for the structured terminal forms language/library
libstfl-ruby – Ruby bindings for the structured terminal forms language/library
libstfl-ruby1.8 – Ruby bindings for the structured terminal forms language/library
libstfl-ruby1.9 – Ruby bindings for the structured terminal forms language/library
libstfl-spl – SPL bindings for the structured terminal forms language/library
libterm-visual-perl – split-terminal user interface for Perl
libtexttools-dev – Ada and C++ library for writing console applications
libtexttools2.0.5 – Ada and C++ library for writing console applications
mcdp – small console CD player
mgdiff – xdiff clone
mp3c – MP3Creator – Creator for MP3/OGG-files
mp3info – An MP3 technical info viewer and ID3 1.x tag editor
mp3info-gtk – MP3 info viewer and ID3 1.x tag editor — GTK+ version
mped – Minimum Profit, a programmer’s text editor
mtr – Full screen ncurses and X11 traceroute tool
mucous – Python/curses client for museekd
multimail – Offline reader for Blue Wave, QWK, OMEN and SOUP
multitail – view multiple logfiles windowed on console
mybashburn – Burn data and create songs with interactive dialog box
nast – packet sniffer and lan analyzer
ncdu – ncurses disk usage viewer
ncftp – A user-friendly and well-featured FTP client
ncurses-hexedit – Edit files/disks in hex, ASCII and EBCDIC
ninvaders – A space invaders-like game using ncurses
nn – Heavy-duty USENET news reader (curses-based client)
nrss – A ncurses-based RSS reader
orpheus – light-weight text mode menu- and window-driven audio player
owl – A curses-based tty Zephyr client.
pacman4console – a console based pacman game
pente – Five in a row game for X and the console
pinentry-curses – curses-based PIN or pass-phrase entry dialog for GnuPG
pinfo – An alternative info-file viewer
pork – Console-based AOL Instant Messenger & IRC client
psk31lx – Soundcard-based ncurses program for operating PSK31
pymissile – Control Marks and Spencer USB Missile Launcher
python-stfl – python bindings for the structured terminal forms language/library
python-urwid – curses-based UI/widget library for Python
pytone – Music jukebox with advanced features for DJs and a text-mode user interface
radio – ncurses-based radio application
rexima – a simple ncurses/command-line mixer
rolo – text-based (vCard) contact management software
rtorrent – ncurses BitTorrent client based on LibTorrent
saidar – curses-based program which displays live system statistics
siggen – Waveform generation tools
signing-party – Various OpenPGP related tools
sillypoker – A poker game
smbc – samba-commander – curses based samba network browser
sntop – A curses-based utility that polls hosts to determine connectivity
squidview – monitors and analyses squid access.log files
stymulator – Curses based player and converter for the YM chiptune format
sudoku – console based sudoku
tack – terminfo action checker
tack-dbg – terminfo action checker (debug)
tcd – Portable CD player with an ncurses interface
tig – ncurses-based Git repository browser
tina – A curses personal information manager.
tlf – Console mode purpose CW keyer, logging- and contest program
tpp – text presentation program
ttyrec – Terminal interaction recorder and player (for tty)
tweak – an efficient hex editor
uim-fep – uim Front End Processor
vche – Virtual Console Hex Editor
vdr-plugin-examples – Plugins for vdr to show some possible features
vfu – A versatile text-based filemanager
vifm – a ncurses based file manager with vi like keybindings
webmagick – create gallery thumbnails for website
weechat-common – Common files for WeeChat
weechat-curses – Fast, light and extensible IRC client
whowatch – Real-time user logins monitoring tool
winpdb – Platform independent Python debugger
worklog – Keep Track of Time worked on Projects
wulfstat – curses based wulfware for monitoring cluster nodes
wyrd – text-based calendar application
x3270 – X11 program for telnet sessions to IBM mainframes
yacpi – ncurses based acpi monitor for text mode
yorick-curses – interface to the (n)curses library for the Yorick language
atari800 – Atari emulator for X/curses/SDL
ydpdict – interface for Collins and Langenscheidt dictionaries
alsa-utils – ALSA utilities
libruby1.8 – Libraries necessary to run Ruby 1.8
php5-cli – command-line interpreter for the php5 scripting language
procps – /proc file system utilities
moc – ncurses based console audio player
moc-ffmpeg-plugin – ncurses based console audio player – ffmpeg plugin
cmus – Lightweight ncurses audio player

————————————————————————————————–

and found some realted libs, libncurses5 and libncurses5-dev , so install them:
————————————————————————————————–
crifan@ubuntu810:/usr/crifan/develop/buildroot/buildroot$ sudo apt-get install libncurses5 libncurses5-dev
Reading package lists… Done
Building dependency tree      
Reading state information… Done
libncurses5 is already the newest version.
The following NEW packages will be installed:
libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 277 not upgraded.
Need to get 1483kB of archives.
After this operation, 6480kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com intrepid/main libncurses5-dev 5.6+20071124-1ubuntu2 [1483kB]
Get:2 http://cn.archive.ubuntu.com intrepid/main libncurses5-dev 5.6+20071124-1ubuntu2 [1483kB]
Fetched 1468kB in 7min36s (3217B/s)                                                            
Selecting previously deselected package libncurses5-dev.
(Reading database … 100026 files and directories currently installed.)
Unpacking libncurses5-dev (from …/libncurses5-dev_5.6+20071124-1ubuntu2_i386.deb) …
Processing triggers for man-db …
Setting up libncurses5-dev (5.6+20071124-1ubuntu2) …

————————————————————————————————–
after installed , we can do make menuconfig successfully:
————————————————————————————————–
crifan@ubuntu810:/usr/crifan/develop/buildroot/buildroot$ make menuconfig
make CC="/usr/bin/gcc" -C package/config conf mconf
make[1]: Entering directory `/usr/crifan/develop/buildroot/buildroot/package/config’
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/checklist.c -o lxdialog/checklist.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/inputbox.c -o lxdialog/inputbox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/menubox.c -o lxdialog/menubox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/textbox.c -o lxdialog/textbox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/util.c -o lxdialog/util.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c lxdialog/yesno.c -o lxdialog/yesno.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -c mconf.c -o mconf.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 -I. -c zconf.tab.c -o zconf.tab.o
In file included from zconf.tab.c:2475:
confdata.c: In function ‘conf_write’:
confdata.c:500: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
confdata.c: In function ‘conf_write_autoconf’:
confdata.c:749: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
confdata.c:750: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
In file included from zconf.tab.c:2476:
expr.c: In function ‘expr_print_file_helper’:
expr.c:1084: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 conf.o zconf.tab.o -lncurses -o conf
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE -g -O2 mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -lncurses -o mconf

————————————————————————————————–
then you can see the config GUI which we want. ^_^
————————————————————————————————–

转载请注明:在路上 » [Solved] can not found curses.h when make menuconfig for buildroot

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.192 seconds, using 22.15MB memory