Berkeley DB Reference Guide: Building Berkeley DB for S60 |

Building for S60

This page has general instructions for building the Berkeley DB library and applications for the S60 platform.

Building Berkeley DB for S60 requires S60 SDK version 3 or above with Symbian V9.1 or above; the 3rd Edition FP1 SDK is recommended.

The NOKIA OpenC plugin should be installed on both emulator and device.

CodeWarrior IDE for S60 V3.1 is recommended.

Building Berkeley DB for the S60 Emulator

The build_s60 directory in the Berkeley DB distribution contains a bdb_s60.mmp project file, which can be imported to CodeWarrior or Carbide, etc. This project file can be used to build the Berkeley DB library for the S60 platform.

The steps for building the Berkeley DB library for the S60 emulator are as follows:

1. Install the S60 SDK and OpenC library.

2. In CodeWarrior, select File -> Import project from .mmp file.

3. Select an SDK to use with this project: nokia ->S60 S60_3rd_FP1.

4. Click to browse for MMP file selection. Look in the build_s60 directory for Workspaces and select bdb_s60.mmp.

5. Click Next.

6. Click Finish.

7. Select build target to WINSCW UDEB, to build, press F7.

The build will create the file bdb_s60.lib, which is installed into $EPOCROOT/epoc32/ release/winscw/udeb, which can be linked by Berkeley DB applications for the emulator.

Building Berkeley DB Library for the Device

1. Install the CSL Arm tool chain.

2. From $EPOCROOT/epoc32/release/armv5/lib, add OpenC library libpthread.dso to the GCCE library(libc.dso already added).

3. Since Berkeley DB uses old-style function definitions, it will not be accepted by the default compiler:arm-none-symbianelf-g++.exe. Change the compiler to arm-none-symbianelf-gcc.exe and specify the "-x c" option there.

4. Select build target to GCCE UREL, to build, press F7.

The build will create the file bdb_s60.lib, which is installed into $EPOCROOT/epoc32/ release/armv5/urel, which can be linked by Berkeley DB applications for device.

Building a S60 application with the Berkeley DB library

Building a Berkeley DB application in the S60 environment is similar to building in a Windows environment. Ensure the include file build_s60/db.h is in the build include path and the created bdb_s60.lib is in the build library path.

Copyright (c) 1996,2008 Oracle. All rights reserved.