1<!--$Id: intro.so,v 1.3 2008/05/05 05:22:43 alexg 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 Windows CE</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 Windows CE systems</dl></b></td> 14<td align=right><a href="../build_win/faq.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_wince/notes.html"><img src="../../images/next.gif" alt="Next"></a> 15</td></tr></table> 16<p align=center><b>Building for Windows CE</b></p> 17<p>This page contains general instructions on building Berkeley DB for 18Windows CE platforms using specific compilers.</p> 19<p>The <b>build_wince</b> directory in the Berkeley DB distribution contains 20project files for Microsoft eMbedded Visual C++:</p> 21<table border=1 align=center> 22<tr><th>Project File</th><th>Description</th></tr> 23<tr> <td align=center>Berkeley_DB.vcw</td> <td align=center>eMbedded Visual C++ 4.0 workspace</td> </tr> 24<tr> <td align=center>*.vcp</td> <td align=center>eMbedded Visual C++ 4.0 projects</td> </tr> 25</table> 26<p>These project files can be used to build Berkeley DB for the Windows CE platform.</p> 27<b>Building Berkeley DB for Windows CE</b> 28<h4>eMbedded Visual C++ 4.0</h4> 29<ol> 30<p><li>Choose <i>File -> Open Workspace...</i>. 31Navigate to the <b>build_wince</b> directory, select <b>Berkeley_DB</b> 32and click Open. 33<p><li>Choose the project configuration from the 34<i>Build -> Set Active Configuration...</i> drop-down menu on the 35tool bar. The correct target will usually db_small - Win32 (WCE emulator) 36Debug or Release. 37<p><li>To build, press F7, or select <i>Build</i> from the drop-down menu on the tool bar. 38</ol> 39<h4>Build results</h4> 40<p>The results of your build will be placed in a subdirectory of 41<b>build_windows</b> named after the configuration you chose (for 42examples, <b>build_wince\Release</b> or 43<b>build_wince\Debug</b>).</p> 44<p>When building your application during development, you should normally 45link against 46<b>build_wince\Debug\libdb_small47sd.lib</b>. You can 47also build using a release version of the Berkeley DB libraries and tools, 48which will be placed in 49<b>build_windows\Release\libdb_small47s.lib</b>. 50You will also need to add the <b>build_wince</b> directory to the list 51of include directories of your application's project, or copy the Berkeley DB 52include files to a location in your Visual Studio include path.</p> 53<b>Building Berkeley DB for different target CPU architectures</b> 54<p>There are many possible target CPU architectures for a Windows CE 55application. This section outlines the process required to add a new 56target architecture to the project files supplied with Berkeley DB.</p> 57<h4>eMbedded Visual C++ 4.0</h4> 58<ol> 59<p><li>Choose <i>File -> Open Workspace...</i>. 60Navigate to the <b>build_wince</b> directory, select <b>Berkeley_DB</b> 61and click Open. 62<p><li>Choose the <i>Build -> Configurations...</i> menu item. 63<p><li>Click the <i>Add...</i> button. 64<p><li>Select the desired CPU architecture from the first dropdown box. Select an 65existing target to copy the settings from (The corresponding emulator 66target is a good choice). Configuration should be either Debug or Release. 67Click <i>OK</i>. 68<p><li>Choose the <i>Build -> Set Active Configuration...</i> menu 69item. Choose the new target then click OK. 70<p><li>Select the <i>Project -> Settings...</i> menu item. Under 71the C/C++ tab, select the Preprocessor <i>Category</i>. In the 72<i>Additional include directories:</i> field add: ".,.." 73without the quotes. Click OK. 74<p><li>Build as per the instructions in <i>Building Berkeley DB for Windows 75CE</i> above. 76</ol> 77<table width="100%"><tr><td><br></td><td align=right><a href="../build_win/faq.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_wince/notes.html"><img src="../../images/next.gif" alt="Next"></a> 78</td></tr></table> 79<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 80</body> 81</html> 82