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.
 
Prepared everything you need, including the SDK, you must obtain the source code of NCurses. The library is under GNU license, source code is available for download from the homepage, generally these files are distributed in zipped archives, and we must continue with the decompression and the copy in a folder at our choice, to have everything all at your fingertips we can use this path /../devboard-R2_01/apps/NCurses, where with /../ refers to a generic path of your SDK.

 

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.

At this point, the phase of porting of the Ncurses is finished, now missing from compile programs that need such dependencies and to recreate an image for the Fox Board. Of the sample programs are Tmsnc e Lynx.
 

Login

Main Menu

Online

None
We have 82 guests online