Chapter 3.  Building Berkeley DB XML for Windows

Table of Contents

Third Party Libraries
Building with Microsoft Visual Studio 2010 and 2012
Building with Microsoft Visual Studio 2008 and Express Edition
Building with Microsoft Visual Studio 2005
Building with Microsoft Visual C++ 2005 Express Edition
Running C++ Examples
Building the Java API with Visual Studio
Building the Tcl API
Building Tcl with Visual Studio
Disabling default compression
Using Berkeley DB XML on Windows
Berkeley DB XML Include File Locations
Berkeley DB XML Include File Locations
Berkeley DB XML DLL Names and Locations
Berkeley DB XML Binaries on Windows
Windows Installer Options
Installation Layout
General Note on Using Windows Binaries
Using C++ Runtime Libraries and Programs
Using Java Binaries
Installing and Using Python Binaries
Installing and Using Perl Binaries
Troubleshooting on Windows
Compiling Errors
Linking Errors
Execution Errors

If you want to build on Windows using Cygwin, see Building Berkeley DB XML for UNIX/POSIX systems and Cygwin Build Notes.

The Berkeley DB XML distribution comprises several libraries: a base C++ library, three third-party libraries, and optional libraries for additional language interfaces such as Java, Perl, Python, PHP, and Tcl. Instructions for building the base libraries as well as Java, Tcl and PHP interfaces are included here. Instructions for the other language bindings appear in their respective directories:

dbxml-6.0.xx/dbxml/src/{perl,python}.

All bindings require the C++ library and third-party libraries.

Third Party Libraries

Berkeley DB XML makes use of several open source libraries. Each of these packages is freely available and distributed under an Open Source license. The Berkeley DB XML distribution bundles compatible versions of all third-party libraries. No additional downloads are required. Use of other versions may not work. If in doubt ask on the Berkeley DB XML forum. Berkeley DB XML requires the following third-party libraries:

  • Berkeley DB

    Berkeley DB is a general purpose database toolkit. This release of Berkeley DB XML includes the Berkeley DB 6.1.x release, and requires the Berkeley DB 4.3.28 release or later.

  • Xerces

    Xerces is the Apache implementation of XML parsing technology and DOM. The build requires a source release of Xerces, not just a binary release. This release of Berkeley DB XML bundles Xerces-C 3.1.2 and requires the Xerces 3.0.1 release or newer.

  • XQilla

    XQilla is an open source partial implementation of XQuery 3.0 and XPath 2.0. Berkeley DB XML bundles the 2.3 release of XQilla. Later versions of XQilla may work, but are not implicitly supported.

  • ZLIB

    ZLIB is an open source compression library. This release of Berkeley DB XML bundles the binary release of ZLIB 1.2.3. It is not required if wholedoc container compression is not desired.