Porting Illustrated: Effective Guide to OSS Porting using Open C |
This section explains the tools and tips for effective analysis of Linux OSS.
OSS creates the following three subdirectories in the installation directory: include, lib, and bin. These directories contain valuable information required for porting, as explained below:
NOTE: Symbian OS compilers produce much smaller-sized libraries than what there are in Linux.
Linux | Symbian OS |
.SO extension for dynamic libraries |
.DLL extension for dynamic libraries |
.A extension for static libraries |
.LIB extension for static libraries |
Tools like nm, ldd, and dumpbin are useful in OSS porting:
The following command can be used to install the software in the user directory:
./configure --prefix=$HOME/<foo>
The following commands can be used to decompress the file:
tar -xvjf archivefile.tar.bz2 tar -zxvf archivefile.tar.bz2
At the end of installing the OSS in Linux, it is good to update the environment variables PKG_CONFIG_PATH and LD_LIBRARY_PATH. One of the many ways to initialize environment variables is to add them in the .bash_rc file.
Makefile gives subtle information about the project. SOURCES in Makefile gives an idea about the source files of the OSS. These files have to be listed in SOURCE in the MMP file.
-D<Foo> in Makefile gives the list of preprocessor declarations. These preprocessor declarations can be done using MACRO in the MMP file.
©Nokia 2007 |