This section explains the steps to build the ConsoleApp program using the FreeBSD source code.
This program converts a quantity from one unit of measurement into another, prompting the user for input. Conversion information is provided in a data file, slunits.dat .
The user is prompted for input, but it is important to note that STDLIB does not provide all of the functionality of a traditional console driver. STDLIB is intended to be a "behind-the-scenes" enabling technology, rather than an alternative user interface.
The code for the ConsoleApp program was taken from the FreeBSD source code (See http://www.freebsd.org ).
Build the program using bldmake and abld as the Hello example. For the Emulator, slunits.dat is copied automatically by abld into the correct directory. For a target phone, ensure that slunits.dat is located in the directory specified in pathname.h ; this is the root of the drive on which the program is installed.
To install ConsoleApp.exe on the target phone, create a .sis file using the Symbian Installation system.
To run it on the target phone, invoke ConsoleApp.exe .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.