| Ncurses for Fox Board |
|
This guide describes the steps to follow for cross-compile ncurses, it is a programming library providing an API, allowing the programmer to write text user interface in a terminal-independent manner, aviable from Fox Board.
Ncurses is a toolkit for developing "GUI-like" application which run under a terminal emulator. It also optimizes screen changes, in order to reduce thelatency experienced when using remote shells. It uses the format terminfo and termocap supporting pad in several colors highlighting the characters and creating forms of mapping the keys. The
guide is referring to the Fox Board with kernel compiled with "Phrozen
SDK made by John Crispin" offered by default from Acme System. In
order to cross-compile the application is necessary to have everything
you need ready on your computer. To install the SDK under Linux or
Windows may refer to one of the following methods: method 1 Linux e method 2 Win.
In particular, this guide refers to a typical Linux installation,
exactly Fedora 9. Therefore be used commands belonging to the Linux
world, in case you
have not yet acquired a good domestication with commands from a shell,
is
required reading some guida in the network.
Before you can compile any source in general is important to resolve
all the dependencies, in this case the libraries do not need anything
beyond the standard components already compile in the dafault SDK, to
proceed with the porting will be followed the next steps from shell Linux by
typing carefully and where necessary replace /../ with your path:
/..# cd devboard-R2_01 /devboard-R2_01# . init_env /devboard-R2_01# cd apps /devboard-R2_01/apps# cd NCurses /devboard-R2_01/apps/NCurses# ./configure --build=i686-linux-gnu --host=cris-axis-linux-gnu --prefix=/../devboard-R2_01/apps/ncurses2 --without-shared --with-normal --without-debug --without-profile --with-shared --enable-termcap --without-curses-h --without-termlib --enable-getcap --enable-colorfgbg --enable-bsdpad --disable-home-terminfo --disable-database --disable-overwrite --without-hashed-db /devboard-R2_01/apps/NCurses# make /devboard-R2_01/apps/NCurses# make install
If all went well, the libraries are ready and are installed in the path --prefix=... . For your convenience you chose not to install libraries in the standard path but in a generic path where you can redirect the gcc in the next step by option -I and -L. |