Sindbad~EG File Manager
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chapter 4. Building Berkeley DB for Windows</title>
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
<link rel="up" href="index.html" title="Berkeley DB Installation and Build Guide" />
<link rel="prev" href="debug_printlog.html" title="Reviewing Berkeley DB log files" />
<link rel="next" href="win_build_cygwin.html" title="Building Berkeley DB with Cygwin" />
</head>
<body>
<div xmlns="" class="navheader">
<div class="libver">
<p>Library Version 18.1.40</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Chapter 4. Building Berkeley DB for Windows </th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="debug_printlog.html">Prev</a> </td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="win_build_cygwin.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="chapter" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a id="build_win"></a>Chapter 4. Building Berkeley DB for Windows </h2>
</div>
</div>
</div>
<div class="toc">
<p>
<b>Table of Contents</b>
</p>
<dl>
<dt>
<span class="sect1">
<a href="build_win.html#win_build32">Building Berkeley DB for Windows</a>
</span>
</dt>
<dd>
<dl>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576933248">Visual C++ .NET 2015</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649574658032">Visual C++ .NET 2013</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576126544">Visual C++ .NET 2012</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576534560">Visual C++ .NET 2010</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576001648">Build results</a>
</span>
</dt>
</dl>
</dd>
<dt>
<span class="sect1">
<a href="win_build_cygwin.html">Building Berkeley DB with Cygwin</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="win_build_cxx.html">Building the C++ API</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="win_build_stl.html">Building the C++ STL API</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_java.html">Building the Java API</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_csharp.html">Building the C# API</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_tcl.html">Building the Tcl API</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_replication_ssl.html">Building Secure Sockets Layer (SSL) Support for the Replication Manager</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="win_build_dist_dll.html">Distributing DLLs</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="win_additional_options.html">Additional build options</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_small.html">Building a small memory
footprint library</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_test.html">Running the test suite under
Windows</a>
</span>
</dt>
<dd>
<dl>
<dt>
<span class="sect2">
<a href="build_win_test.html#idm140649574841888">Building the software needed
by the tests</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win_test.html#idm140649574900688">Running the test suite under Windows</a>
</span>
</dt>
</dl>
</dd>
<dt>
<span class="sect1">
<a href="build_win_notes.html">Windows notes</a>
</span>
</dt>
<dt>
<span class="sect1">
<a href="build_win_faq.html">Windows FAQ</a>
</span>
</dt>
</dl>
</div>
<p>
This chapter contains general instructions on building
Berkeley DB for specific windows platforms using specific
compilers. The <a class="xref" href="build_win_faq.html" title="Windows FAQ">Windows FAQ</a> also contains helpful
information.
</p>
<p>
The <code class="filename">build_windows</code> directory in the
Berkeley DB distribution contains project files for Microsoft
Visual Studio:
</p>
<div class="informaltable">
<table border="1" width="80%">
<colgroup>
<col />
<col />
</colgroup>
<thead>
<tr>
<th>Project
File</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">Berkeley_DB_vs2010.sln</td>
<td align="center">Visual Studio 2010
workspace</td>
</tr>
<tr>
<td align="center">VS10\*.vcxproj</td>
<td align="center">Visual Studio 2010
projects</td>
</tr>
<tr>
<td align="center">Berkeley_DB_vs2012.sln</td>
<td align="center">Visual Studio 2012
workspace</td>
</tr>
<tr>
<td align="center">VS12\*.vcxproj</td>
<td align="center">Visual Studio 2012
projects</td>
</tr>
<tr>
<td align="center">Berkeley_DB_vs2015.sln</td>
<td align="center">Visual Studio 2015
workspace</td>
</tr>
<tr>
<td align="center">VS15\*.vcxproj</td>
<td align="center">Visual Studio 2015
projects</td>
</tr>
</tbody>
</table>
</div>
<p>
These project files can be used to build Berkeley DB for
Windows Server 2008, Windows Vista, Windows 7, Windows Server
2008 R2, and Windows 8.
</p>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="win_build32"></a>Building Berkeley DB for Windows</h2>
</div>
</div>
</div>
<div class="toc">
<dl>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576933248">Visual C++ .NET 2015</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649574658032">Visual C++ .NET 2013</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576126544">Visual C++ .NET 2012</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576534560">Visual C++ .NET 2010</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="build_win.html#idm140649576001648">Build results</a>
</span>
</dt>
</dl>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649576933248"></a>Visual C++ .NET 2015</h3>
</div>
</div>
</div>
<div class="orderedlist">
<ol type="1">
<li>
Choose <span class="emphasis"><em>File -> Open ->
Project/Solution...</em></span>. In the
<code class="filename">build_windows</code> directory,
select <code class="filename">Berkeley_DB_vs2015.sln</code>
and click Open.
</li>
<li>
Choose the desired project configuration
from the drop-down menu on the tool bar (either
Debug or Release).
</li>
<li>
Choose the desired platform configuration
from the drop-down menu on the tool bar.
</li>
<li>
To build, right-click on the
<code class="filename">Berkeley_DB_vs2015</code>
solution and select Build Solution.
</li>
</ol>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649574658032"></a>Visual C++ .NET 2013</h3>
</div>
</div>
</div>
<div class="orderedlist">
<ol type="1">
<li>
To build with Visual C++ .NET 2013, use the
Visual Studio 2012 file and upgrade.
</li>
<li>
Choose <span class="emphasis"><em>File -> Open ->
Project/Solution...</em></span>. In the
<code class="filename">build_windows</code> directory,
select <code class="filename">Berkeley_DB_vs2012.sln</code>
and click Open. The Upgrade VC++ Compiler and
Libraries dialog box will appear. Click OK to
upgrade.
</li>
<li>
Choose the desired project configuration
from the drop-down menu on the tool bar (either
Debug or Release).
</li>
<li>
Choose the desired platform configuration
from the drop-down menu on the tool bar.
</li>
<li>
To build, right-click on the
<code class="filename">Berkeley_DB_vs2012</code>
solution and select Build Solution.
</li>
</ol>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649576126544"></a>Visual C++ .NET 2012</h3>
</div>
</div>
</div>
<div class="orderedlist">
<ol type="1">
<li>
Choose <span class="emphasis"><em>File -> Open ->
Project/Solution...</em></span>. In the
<code class="filename">build_windows</code> directory,
select <code class="filename">Berkeley_DB_vs2012.sln</code>
and click Open.
</li>
<li>
Choose the desired project configuration
from the drop-down menu on the tool bar (either
Debug or Release).
</li>
<li>
Choose the desired platform configuration
from the drop-down menu on the tool bar (usually
Win32 or x64).
</li>
<li>
To build, right-click on the
<code class="filename">Berkeley_DB_vs2012</code>
solution and select Build Solution.
</li>
</ol>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649576534560"></a>Visual C++ .NET 2010</h3>
</div>
</div>
</div>
<div class="orderedlist">
<ol type="1">
<li>
Choose <span class="emphasis"><em>File -> Open ->
Project/Solution...</em></span>. In the
<code class="filename">build_windows</code> directory,
select <code class="filename">Berkeley_DB_vs2010.sln</code>
and click Open.
</li>
<li>
Choose the desired project configuration
from the drop-down menu on the tool bar (either
Debug or Release).
</li>
<li>
Choose the desired platform configuration
from the drop-down menu on the tool bar (usually
Win32 or x64).
</li>
<li>
To build, right-click on the
<code class="filename">Berkeley_DB_vs2010</code>
solution and select Build Solution.
</li>
</ol>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649576001648"></a>Build results</h3>
</div>
</div>
</div>
<p>
The results of your build will be placed in one of
the following Berkeley DB subdirectories, depending on
the configuration that you chose: </p>
<table class="simplelist" border="0" summary="Simple list">
<tr>
<td>
<code class="filename">build_windows\x64\Debug</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\x64\Release</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\x64\Debug_static</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\x64\Release_static</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\Win32\Debug</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\Win32\Release</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\Win32\Debug_static</code>
</td>
</tr>
<tr>
<td>
<code class="filename">build_windows\Win32\Release_static</code>
</td>
</tr>
</table>
<p>
When building your application during
development, you should normally use compile options
"Debug Multithreaded DLL" and link against
<code class="filename">build_windows\Debug\libdb181d.lib</code>.
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
Building your application with the debug
configuration will create a Berkeley DB library
and utilities with debugging symbols, as well as
load various routines that can be called from a
debugger to display pages, cursor queues, and so
forth. If installed, the utilities will not be
stripped. This configuration should not be
specified when building production binaries.
</p>
</div>
<p>
You can also build using a release version of the
Berkeley DB libraries and tools, which will be placed
in
<code class="filename">build_windows\Win32\Release\libdb181.lib</code>.
When linking against the release build, you should
compile your code with the "Release Multithreaded DLL"
compile option. You will also need to add the
<code class="filename">build_windows</code> directory to
the list of include directories of your application's
project, or copy the Berkeley DB include files to
another location.
</p>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="debug_printlog.html">Prev</a> </td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="win_build_cygwin.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Reviewing Berkeley DB log files </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> Building Berkeley DB with Cygwin</td>
</tr>
</table>
</div>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists