~ubuntu-branches/ubuntu/precise/rpm/precise-proposed

« back to all changes in this revision

Viewing changes to db/docs/ref/build_vxworks/intro.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-06-25 18:57:20 UTC
  • mfrom: (1.1.5 upstream) (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090625185720-617sjskgtgmf09vf
Tags: 4.7.0-7ubuntu1
* Merge from debian unstable, remaining changes:
  - change build depends from libdwarf-dev -> libdw-dev
    (libdwarf-dev is in universe)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id: intro.so,v 1.24 2004/10/08 17:16:54 sue Exp $-->
2
 
<!--Copyright 1997-2004 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB Reference Guide: Building for VxWorks</title>
8
 
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
 
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<a name="2"><!--meow--></a>
13
 
<table width="100%"><tr valign=top>
14
 
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for VxWorks systems</dl></h3></td>
15
 
<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_vxworks/notes.html"><img src="../../images/next.gif" alt="Next"></a>
16
 
</td></tr></table>
17
 
<p>
18
 
<h3 align=center>Building for VxWorks</h3>
19
 
<p>The build_vxworks directory in the Berkeley DB distribution contains a workspace
20
 
and project files for Tornado 2.0/VxWorks 5.4 and Tornado 2.2/VxWorks 5.5.</p>
21
 
<table border=1 align=center>
22
 
<tr><th>File</th><th>Description</th></tr>
23
 
<tr>    <td align=left>BerkeleyDB20.wsp</td>    <td align=left>Berkeley DB Workspace file for Tornado 2.0</td>    </tr>
24
 
<tr>    <td align=left>BerkeleyDB20.wpj</td>    <td align=left>Berkeley DB Project file for Tornado 2.0</td>    </tr>
25
 
<tr>    <td align=left>BerkeleyDB22.wsp</td>    <td align=left>Berkeley DB Workspace file for Tornado 2.2</td>    </tr>
26
 
<tr>    <td align=left>BerkeleyDB22.wpj</td>    <td align=left>Berkeley DB Project file for Tornado 2.2</td>    </tr>
27
 
<tr>    <td align=left>dbdemo/dbdemo20.wpj</td>    <td align=left><a href="../../ref/build_vxworks/notes.html">Demo program</a> project file for Tornado 2.0</td>    </tr>
28
 
<tr>    <td align=left>dbdemo/dbdemo22.wpj</td>    <td align=left><a href="../../ref/build_vxworks/notes.html">Demo program</a> project file for Tornado 2.2</td>    </tr>
29
 
<tr>    <td align=left>db_*/*20.wpj</td>    <td align=left><a href="../../ref/build_vxworks/notes.html">Support utilities</a> project files for Tornado 2.0</td>    </tr>
30
 
<tr>    <td align=left>db_*/*22.wpj</td>    <td align=left><a href="../../ref/build_vxworks/notes.html">Support utilities</a> project files for Tornado 2.2</td>    </tr>
31
 
</table>
32
 
<h3>Building With Tornado 2.0 or Tornado 2.2</h3>
33
 
<p>Open the workspace <b>BerkeleyDB20.wsp</b> or <b>BerkeleyDB22.wsp</b>.
34
 
The list of projects in this workspace will be shown.  These projects
35
 
were created for the x86 BSP for VxWorks.</p>
36
 
<p>The remainder of this document assumes that you already have a VxWorks
37
 
target and a target server, both up and running.  It also assumes that
38
 
your VxWorks image is configured properly for your needs.  It also
39
 
assumes that you have an acceptable file system already available.
40
 
See <a href="../../ref/build_vxworks/faq.html">VxWorks FAQ</a> for more
41
 
information about file system requirements.
42
 
See <a href="../../ref/build_vxworks/notes.html">VxWorks Notes</a> for more
43
 
information about building a small footprint version of Berkeley DB.</p>
44
 
<p>First, you need to set the include directories.  To do this, go to the
45
 
<i>Builds</i> tab for the workspace.  Open up <i>Berkeley DB
46
 
Builds</i>.  You will see several different builds, containing different
47
 
configurations.  All of the projects in the Berkeley DB workspace are created
48
 
to be downloadable applications.</p>
49
 
<table border=1 align=center>
50
 
<tr><th>Build</th><th>Description</th></tr>
51
 
<tr>    <td align=left>PENTIUM_debug</td>    <td align=left>x86 BSP with debugging</td>    </tr>
52
 
<tr>    <td align=left>PENTIUM_release</td>    <td align=left>x86 BSP no debugging</td>    </tr>
53
 
</table>
54
 
<p>You have to add a new build specification if you use a
55
 
different BSP, want to add a build for the simulator or
56
 
want to customize further.  For instance, if you have the Power PC (PPC)
57
 
BSP, you need to add a new build for the PPC tool chain.  To do so,
58
 
select the "Builds" tab, select the Berkeley DB project name, and right-click.
59
 
Choose the <i>New Build...</i> selection and create the new build
60
 
target.  For your new build target, you need to decide whether
61
 
it should be built for
62
 
debugging.  See the properties of the Pentium builds for ways to
63
 
configure for each case.  After you add this build you, you still need
64
 
to configure correctly the include directories, as described in the
65
 
sections that follow.</p>
66
 
<p>If you are running with a different
67
 
BSP, you should remove the build specifications that do not apply to
68
 
your hardware.  We recommend that you do this after you configure any
69
 
new build specifications first.  The Tornado tools will get confused if
70
 
you have a PENTIUMgnu build specification for a PPC BSP,
71
 
for instance.</p>
72
 
<p>Select the build you are interested in, and right-click.  Choose the
73
 
<i>Properties...</i> selection.  At this point, a tabbed dialog
74
 
should appear.  In this new window, choose the <i>C/C++ compiler</i>
75
 
tab.  In the edit box, you need to modify the full pathname of the
76
 
<i>build_vxworks</i> subdirectory of Berkeley DB, followed by the full
77
 
pathname of Berkeley DB.  Then, click OK.
78
 
Note that some versions of Tornado (such as the version for Windows)
79
 
do not correctly handle relative pathnames in the include paths.</p>
80
 
<p>To build and download the Berkeley DB downloadable application for the first time
81
 
requires several steps: </p>
82
 
<ol>
83
 
<p><li>Select the build you are interested in, and right-click.  Choose the
84
 
<i>Set... as Active Build</i> selection.
85
 
<p><li>Select the build you are interested in, and right-click.  Choose the
86
 
<i>Dependencies...</i> selection.  Run dependencies over all files
87
 
in the Berkeley DB project.
88
 
<p><li>Select the build you are interested in, and right-click.  Choose the
89
 
<i>Rebuild All (Berkeley DB.out)</i> selection.
90
 
<p><li>Select the Berkeley DB project name, and right-click.  Choose the
91
 
<i>Download "Berkeley DB.out"</i> selection.
92
 
</ol>
93
 
<p>Note that the output file listed about will really be listed as
94
 
<i>BerkeleyDB20.out</i> or <i>BerkeleyDB22.out</i>
95
 
depending on which version of Tornado you are running.
96
 
You need to repeat this procedure for all builds you are interested in
97
 
building, as well as for all of the utility project builds you want to
98
 
run.</p>
99
 
<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_vxworks/notes.html"><img src="../../images/next.gif" alt="Next"></a>
100
 
</td></tr></table>
101
 
<p><font size=1><a href="../../sleepycat/legal.html">Copyright (c) 1996-2004</a> <a href="http://www.sleepycat.com">Sleepycat Software, Inc.</a> - All rights reserved.</font>
102
 
</body>
103
 
</html>