1<!--$Id: intro.so,v 1.8 2007/10/31 18:02:52 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Building for S60</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for S60</dl></b></td> 14<td align=right><a href="/build_brew/intro.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/build_s60/notes.html"><img src="/images/next.gif" alt="Next"></a> 15</td></tr></table> 16<p align=center><b>Building for S60</b></p> 17<p>This page has general instructions for building the Berkeley DB library and 18applications for the S60 platform.</p> 19<p>Building Berkeley DB for S60 requires S60 SDK version 3 or above with 20Symbian V9.1 or above; the 3rd Edition FP1 SDK is recommended.</p> 21<p>The NOKIA OpenC plugin should be installed on both emulator and device.</p> 22<p>CodeWarrior IDE for S60 V3.1 is recommended.</p> 23<b>Building Berkeley DB for the S60 Emulator</b> 24<p>The <b>build_s60</b> directory in the Berkeley DB distribution contains 25a <b>bdb_s60.mmp</b> project file, which can be imported to 26CodeWarrior or Carbide, etc. This project file can be used to build the 27Berkeley DB library for the S60 platform.</p> 28<p>The steps for building the Berkeley DB library for the S60 emulator are 29as follows:</p> 30<ol> 31<p><li>Install the S60 SDK and OpenC library. 32<p><li>In CodeWarrior, select <i>File -> Import project from .mmp file</i>. 33<p><li>Select an SDK to use with this project: <i>nokia ->S60 S60_3rd_FP1</i>. 34<p><li>Click to browse for MMP file selection. Look in the 35<b>build_s60</b> directory for Workspaces and select 36<i>bdb_s60.mmp</i>. 37<p><li>Click Next. 38<p><li>Click Finish. 39<p><li>Select build target to WINSCW UDEB, to build, press F7. 40</ol> 41<p>The build will create the file <b>bdb_s60.lib</b>, which is 42installed into <b>$EPOCROOT/epoc32/ release/winscw/udeb</b>, which can 43be linked by Berkeley DB applications for the emulator.</p> 44<b>Building Berkeley DB Library for the Device</b> 45<ol> 46<p><li>Install the CSL Arm tool chain. 47<p><li>From <b>$EPOCROOT/epoc32/release/armv5/lib</b>, add OpenC library 48libpthread.dso to the GCCE library(libc.dso already added). 49<p><li>Since Berkeley DB uses old-style function definitions, it will not be accepted 50by the default compiler:arm-none-symbianelf-g++.exe. Change the 51compiler to arm-none-symbianelf-gcc.exe and specify the "-x c" option 52there. 53<p><li>Select build target to GCCE UREL, to build, press F7. 54</ol> 55<p>The build will create the file <b>bdb_s60.lib</b>, which is 56installed into <b>$EPOCROOT/epoc32/ release/armv5/urel</b>, which can 57be linked by Berkeley DB applications for device.</p> 58<b>Building a S60 application with the Berkeley DB library</b> 59<p>Building a Berkeley DB application in the S60 environment is similar 60to building in a Windows environment. Ensure the include file 61<b>build_s60/db.h</b> is in the build include path and the created 62<b>bdb_s60.lib</b> is in the build library path.</p> 63<table width="100%"><tr><td><br></td><td align=right><a href="/build_brew/intro.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/build_s60/notes.html"><img src="/images/next.gif" alt="Next"></a> 64</td></tr></table> 65<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 66</body> 67</html> 68