Table of Contents
This page contains general instructions on building Berkeley DB for Windows Mobile platforms using specific compilers.
The build_wince
directory in the Berkeley DB distribution contains
project files for Microsoft Visual 2005 with the Mobile SDK installed:
Project File | Description |
---|---|
Berkeley_DB.sln | Visual Studio 2005 solution |
*.vcproj | Visual Studio 2005 project files |
These project files can be used to build Berkeley DB for the Windows Mobile platform.
build_wince
directory, select Berkeley_DB
and click Open
.The results of your build will be placed in a subdirectory of
build_windows
named after the configuration you chose (for
examples, build_wince\Debug_PocketPC2003_ARMV4
When building your application during development, you should normally
link against
libdb_small50sd.lib
. You can
also build using a release version of the Berkeley DB libraries and tools,
which will be placed in
build_windows\Release\libdb_small50s.lib
.
You will also need to add the build_wince
directory to the list
of include directories of your application's project, or copy the Berkeley DB
include files to a location in your Visual Studio include path.
This section contains information on how to change between a dynamic library (.dll) and static library (.lib). The library projects and their default output and configuration in the Release build is as follows:
Project | Default Output | Default Configuration |
---|---|---|
db_small_static | libdb_small50s.lib | Static Library |
db_static | libdb50s.lib | Static Library |
db_sql | libdb_sql50.dll | Dynamic Library |
To change a project configuration type in Visual Studio 2005, select a project and do the following:
Configuration Properties.
Project Defaults
, change the Configuration Type
to your desired type.Note: After this change, the output file names change to the Visual Studio 2005 defaults based on the project name.
There are many possible target CPU architectures for a Windows Mobile application. This section outlines the process required to add a new target architecture to the project files supplied with Berkeley DB.
The Visual Studio 2005 project files will by default build for Pocket PC 2003 (ARMV4) and Smartphone 2003 (ARMV4). If you want to build for other platforms such as Windows Mobile 6.0 or Windows Mobile 6.0 Professional, you need to follow the steps provided in this section.
Different target architectures are available in different Platform SDK downloads from Microsoft. The appropriate SDK must be installed for your mobile architecture before you can build for that platform.
build_wince
directory,
select Berkeley_DB
and click Open.
Solution explorer
window,
right-click the Solution Berkeley_DB
and
select Configuration manager...
Active solution platform:
drop
down box select New...
Type or select the new platform
drop-down box, select a configuration from the ones
available and click OK.
Close
from the
Configuration Manager
dialog box.