| Summary: | Compiling busybox (make menuconfig) if ncurses is in nonstandard path | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | dusan.halicky |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | major | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.22.x | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
dusan.halicky
2014-02-24 13:37:24 UTC
(In reply to comment #0) > I have ncurses installed in /opt/ncurses/5.9-1/ Why do you do that? > > I have ncurses installed in /opt/ncurses/5.9-1/
> Why do you do that?
So that I can have multiple versions installed and easily switch between them.
Try HOSTCFLAGS > Try HOSTCFLAGS export HOSTCFLAGS=-I/opt/ncurses/5.9-1/include/ncurses make menuconfig > curses.h: No such file or directory But it is there: $ ls /opt/ncurses/5.9-1/include/ncurses/curses.h /opt/ncurses/5.9-1/include/ncurses/curses.h This works for me: make HOSTCFLAGS=... menuconfig > make HOSTCFLAGS=... menuconfig
Yes, this helped with including ncurses, but now I have problem at linking stage. How do I pass "-L/opt/ncurses/5.9-1/lib -lncurses" ?
HOST_LOADLIBES (In reply to comment #7) > HOST_LOADLIBES This one finds ncurses, but fails on linking: $ make HOSTCFLAGS=-I/opt/ncurses/5.9-1/include/ncurses menuconfig This one doesn't find ncurses: $ make HOSTCFLAGS=-I/opt/ncurses/5.9-1/include/ncurses HOST_LOADLIBES="-L/opt/ncurses/5.9-1/lib -ltinfo -lncurses" menuconfig What is entire make command? |