File: build_win.html

package info (click to toggle)
db4.8 4.8.30-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 112,668 kB
  • ctags: 53,848
  • sloc: ansic: 177,324; java: 66,060; tcl: 61,580; cs: 27,778; cpp: 24,761; sh: 15,649; perl: 14,013; xml: 8,309; makefile: 2,303; awk: 1,749; sql: 390; python: 26; php: 22; asm: 14
file content (447 lines) | stat: -rw-r--r-- 16,826 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<?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 28.  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 Programmer's Reference Guide" />
    <link rel="up" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
    <link rel="prev" href="build_unix_ultrix.html" title="Ultrix" />
    <link rel="next" href="win_build64.html" title="Building Berkeley DB for 64-bit Windows" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Chapter 28. 
		Building Berkeley DB for Windows
        </th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="build_unix_ultrix.html">Prev</a> </td>
          <th width="60%" align="center"> </th>
          <td width="20%" align="right"> <a accesskey="n" href="win_build64.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 28. 
		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 32 bit Windows</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect2">
                  <a href="build_win.html#id1632056">Visual C++ .NET 2008</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win.html#id1631798">Visual C++ .NET 2005</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win.html#id1631259">Visual C++ .NET or Visual C++ .NET 2003</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win.html#id1631215">Visual C++ 6.0</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win.html#id1632207">Build results</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="sect1">
              <a href="win_build64.html">Building Berkeley DB for 64-bit Windows</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect2">
                  <a href="win_build64.html#id1632202">x64 build with Visual Studio 2005 or newer</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="win_build64.html#id1632160">x64 build with Visual Studio .NET 2003 or earlier</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>
          <dd>
            <dl>
              <dt>
                <span class="sect2">
                  <a href="build_win_java.html#id1632327">Building Java with Visual C++ .NET or above</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win_java.html#id1632460">Building Java with Visual C++ 6.0</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="sect1">
              <a href="build_win_csharp.html">Building the C# API</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect2">
                  <a href="build_win_csharp.html#id1632526">Building C# with Visual Studio 2005</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="sect1">
              <a href="build_win_tcl.html">Building the Tcl API</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="sect2">
                  <a href="build_win_tcl.html#id1632455">Building Tcl with Visual C++ .NET or above</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win_tcl.html#id1632356">Building Tcl with Visual C++ 6.0</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="sect1">
              <a href="win_build_dist_dll.html">Distributing DLLs</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#id1633142">Building the software needed by the tests</a>
                </span>
              </dt>
              <dt>
                <span class="sect2">
                  <a href="build_win_test.html#id1633225">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.sln</td>
              <td align="center">Visual Studio 2005 (8.0) workspace</td>
            </tr>
            <tr>
              <td align="center">*.vcproj</td>
              <td align="center">Visual Studio 2005 (8.0) projects</td>
            </tr>
            <tr>
              <td align="center">Berkeley_DB.dsw</td>
              <td align="center">Visual C++ 6.0 workspace</td>
            </tr>
            <tr>
              <td align="center">*.dsp</td>
              <td align="center">Visual C++ 6.0 projects</td>
            </tr>
          </tbody>
        </table>
      </div>
      <p>
    These project files can be used to build Berkeley DB for the following platforms: Windows
    NT/2K/XP/2003/Vista, and 64-bit Windows XP/2003/Vista. 
</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 32 bit Windows</h2>
            </div>
          </div>
        </div>
        <div class="toc">
          <dl>
            <dt>
              <span class="sect2">
                <a href="build_win.html#id1632056">Visual C++ .NET 2008</a>
              </span>
            </dt>
            <dt>
              <span class="sect2">
                <a href="build_win.html#id1631798">Visual C++ .NET 2005</a>
              </span>
            </dt>
            <dt>
              <span class="sect2">
                <a href="build_win.html#id1631259">Visual C++ .NET or Visual C++ .NET 2003</a>
              </span>
            </dt>
            <dt>
              <span class="sect2">
                <a href="build_win.html#id1631215">Visual C++ 6.0</a>
              </span>
            </dt>
            <dt>
              <span class="sect2">
                <a href="build_win.html#id1632207">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="id1632056"></a>Visual C++ .NET 2008</h3>
              </div>
            </div>
          </div>
          <div class="orderedlist">
            <ol type="1">
              <li>Choose <span class="emphasis"><em>File -&gt; Open -&gt; Project/Solution...</em></span>.
In the <code class="filename">build_windows</code> directory, select
<code class="filename">Berkeley_DB.sln</code> and click Open.</li>
              <li>The <span class="emphasis"><em>Visual Studio Conversion Wizard</em></span> will open 
automatically. Click the <span class="emphasis"><em>Finish</em></span> button.</li>
              <li>On the next screen click the <span class="emphasis"><em>Close</em></span> button.</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 Berkeley_DB 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="id1631798"></a>Visual C++ .NET 2005</h3>
              </div>
            </div>
          </div>
          <div class="orderedlist">
            <ol type="1">
              <li>Choose <span class="emphasis"><em>File -&gt; Open -&gt; Project/Solution...</em></span>.
In the <code class="filename">build_windows</code> directory, select
<code class="filename">Berkeley_DB.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 Berkeley_DB 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="id1631259"></a>Visual C++ .NET or Visual C++ .NET 2003</h3>
              </div>
            </div>
          </div>
          <p>
<span class="bold"><strong>NOTE:</strong></span> Although Visual Studio .NET uses 
solution files (.sln), the solution file shipped with Berkeley DB is not 
compatible with Visual Studio .NET. You need to upgrade from the 
Visual C++ 6.0 workspace to build with Visual C++ .NET or Visual C++ .NET 2003.
</p>
          <div class="orderedlist">
            <ol type="1">
              <li>Choose <span class="emphasis"><em>File -&gt; Open Solution</em></span>.  Look in the
<code class="filename">build_windows</code> directory for workspace files, select
<code class="filename">Berkeley_DB.dsw</code>, and press Open.</li>
              <li>You will be prompted to convert the project files to current
Visual C++ format.  Select "Yes to All".</li>
              <li>Choose the project configuration from the drop-down menu on the .NET
tool bar (Debug or Release).</li>
              <li>To build, right-click on build_all and select Build.</li>
            </ol>
          </div>
        </div>
        <div class="sect2" lang="en" xml:lang="en">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="id1631215"></a>Visual C++ 6.0</h3>
              </div>
            </div>
          </div>
          <div class="orderedlist">
            <ol type="1">
              <li>Choose <span class="emphasis"><em>File -&gt; Open Workspace</em></span>.  Look in the
<code class="filename">build_windows</code> directory for Workspaces, select
<code class="filename">Berkeley_DB.dsw</code>, and press Open.</li>
              <li>Choose the desired project configuration by going to <span class="emphasis"><em>Build
-&gt; Set Active Configuration</em></span> and select the appropriate option
to the build_all project (Debug or Release).  Then click OK.</li>
              <li>To build, press F7.</li>
            </ol>
          </div>
        </div>
        <div class="sect2" lang="en" xml:lang="en">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="id1632207"></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\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\libdb48d.lib</code>.  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\libdb48.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="build_unix_ultrix.html">Prev</a> </td>
          <td width="20%" align="center"> </td>
          <td width="40%" align="right"> <a accesskey="n" href="win_build64.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Ultrix </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 for 64-bit Windows</td>
        </tr>
      </table>
    </div>
  </body>
</html>