| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>Chapter 8. Building Berkeley DB for VxWorks</title> |
| 7 |
<link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" /> |
| 10 |
<link rel="up" href="index.html" title="Berkeley DB Installation and Build Guide" /> |
| 11 |
<link rel="prev" href="build_unix_sunos.html" title="SunOS" /> |
| 12 |
<link rel="next" href="build_vxworks_notes.html" title="VxWorks notes" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div xmlns="" class="navheader"> |
| 16 |
<div class="libver"> |
| 17 |
<p>Library Version 11.2.5.3</p> |
| 18 |
</div> |
| 19 |
<table width="100%" summary="Navigation header"> |
| 20 |
<tr> |
| 21 |
<th colspan="3" align="center">Chapter 8. |
| 22 |
Building Berkeley DB for VxWorks |
| 23 |
</th> |
| 24 |
</tr> |
| 25 |
<tr> |
| 26 |
<td width="20%" align="left"><a accesskey="p" href="build_unix_sunos.html">Prev</a> </td> |
| 27 |
<th width="60%" align="center"> </th> |
| 28 |
<td width="20%" align="right"> <a accesskey="n" href="build_vxworks_notes.html">Next</a></td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
<hr /> |
| 32 |
</div> |
| 33 |
<div class="chapter" lang="en" xml:lang="en"> |
| 34 |
<div class="titlepage"> |
| 35 |
<div> |
| 36 |
<div> |
| 37 |
<h2 class="title"><a id="build_vxworks"></a>Chapter 8. |
| 38 |
Building Berkeley DB for VxWorks |
| 39 |
</h2> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<div class="toc"> |
| 44 |
<p> |
| 45 |
<b>Table of Contents</b> |
| 46 |
</p> |
| 47 |
<dl> |
| 48 |
<dt> |
| 49 |
<span class="sect1"> |
| 50 |
<a href="build_vxworks.html#build_vxworks_intro6x">Building for VxWorks 6.x</a> |
| 51 |
</span> |
| 52 |
</dt> |
| 53 |
<dd> |
| 54 |
<dl> |
| 55 |
<dt> |
| 56 |
<span class="sect2"> |
| 57 |
<a href="build_vxworks.html#idp450128">Building With Wind River Workbench using the Makefile</a> |
| 58 |
</span> |
| 59 |
</dt> |
| 60 |
</dl> |
| 61 |
</dd> |
| 62 |
<dt> |
| 63 |
<span class="sect1"> |
| 64 |
<a href="build_vxworks_notes.html">VxWorks notes</a> |
| 65 |
</span> |
| 66 |
</dt> |
| 67 |
<dd> |
| 68 |
<dl> |
| 69 |
<dt> |
| 70 |
<span class="sect2"> |
| 71 |
<a href="build_vxworks_notes.html#idp736192">Building and Running the Demo Program</a> |
| 72 |
</span> |
| 73 |
</dt> |
| 74 |
<dt> |
| 75 |
<span class="sect2"> |
| 76 |
<a href="build_vxworks_notes.html#idp759688">Building and Running the Utility Programs</a> |
| 77 |
</span> |
| 78 |
</dt> |
| 79 |
<dt> |
| 80 |
<span class="sect2"> |
| 81 |
<a href="build_vxworks_notes.html#idp762736">Support for Replication Manager</a> |
| 82 |
</span> |
| 83 |
</dt> |
| 84 |
</dl> |
| 85 |
</dd> |
| 86 |
<dt> |
| 87 |
<span class="sect1"> |
| 88 |
<a href="build_vxworks_faq.html">VxWorks FAQ</a> |
| 89 |
</span> |
| 90 |
</dt> |
| 91 |
</dl> |
| 92 |
</div> |
| 93 |
<div class="sect1" lang="en" xml:lang="en"> |
| 94 |
<div class="titlepage"> |
| 95 |
<div> |
| 96 |
<div> |
| 97 |
<h2 class="title" style="clear: both"><a id="build_vxworks_intro6x"></a>Building for VxWorks 6.x</h2> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
</div> |
| 101 |
<div class="toc"> |
| 102 |
<dl> |
| 103 |
<dt> |
| 104 |
<span class="sect2"> |
| 105 |
<a href="build_vxworks.html#idp450128">Building With Wind River Workbench using the Makefile</a> |
| 106 |
</span> |
| 107 |
</dt> |
| 108 |
</dl> |
| 109 |
</div> |
| 110 |
<div class="sect2" lang="en" xml:lang="en"> |
| 111 |
<div class="titlepage"> |
| 112 |
<div> |
| 113 |
<div> |
| 114 |
<h3 class="title"><a id="idp450128"></a>Building With Wind River Workbench using the Makefile</h3> |
| 115 |
</div> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
<p>In VxWorks6.x, developers use Wind River Workbench for software |
| 119 |
development. Two makefiles are provided in the db/build_vxworks |
| 120 |
directory. Use them to build Berkeley DB or Berkeley DB small build, using |
| 121 |
the build chain provided with Wind River Workbench. </p> |
| 122 |
<p>We assume that you have installed all necessary VxWorks6.x software |
| 123 |
including the Wind River Workbench, and that you know how to use it. </p> |
| 124 |
<p>Use the following steps to build Berkeley DB: </p> |
| 125 |
<p>1. Setting variables in the Makefile. |
| 126 |
Open the Makefile and modify the BDB_ROOT variable to the path of your |
| 127 |
Berkeley DB source tree's root directory. You may need to set other |
| 128 |
variables when you build on different platforms, such as BUILD_SPEC, |
| 129 |
DEBUG_MODE, PROJECT_TYPE, CC_ARCH_SPEC, VXVER, build tool flags, and BUILD_SPEC specific settings. |
| 130 |
Please refer to the documentation of the Workbench for a complete list of |
| 131 |
available values of each variable. You can also find out the list of values |
| 132 |
by creating a project using the Workbench. Each variable's available values |
| 133 |
will be listed in the GUI window which assigns values to that |
| 134 |
variable. </p> |
| 135 |
<p>2. Make sure "make" can be found. |
| 136 |
Basically you need to set the make utility's path to environment variables. |
| 137 |
</p> |
| 138 |
<p>3. Start up the wrenv utility of the Wind River Workbench. </p> |
| 139 |
<p>4. In the command console, move to the $(BDB_ROOT)/build_vxworks/ directory, |
| 140 |
rename the target makefile (Makefile.6x or Makefile.6x.small) to "Makefile", |
| 141 |
and run "make". The make process will start and create the directory |
| 142 |
"bdbvxw". It will contain all intermediate object files as well as the |
| 143 |
final built image "bdbvxw.out". </p> |
| 144 |
<p>5. After the "bdbvxw.out" image is built, you can use command tools |
| 145 |
or the Workbench IDE to download and run it.</p> |
| 146 |
<p>6. Test and Verification. |
| 147 |
There is a dbdemo and test_micro, which you can run to verify whether |
| 148 |
everything works fine.</p> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
</div> |
| 152 |
<div class="navfooter"> |
| 153 |
<hr /> |
| 154 |
<table width="100%" summary="Navigation footer"> |
| 155 |
<tr> |
| 156 |
<td width="40%" align="left"><a accesskey="p" href="build_unix_sunos.html">Prev</a> </td> |
| 157 |
<td width="20%" align="center"> </td> |
| 158 |
<td width="40%" align="right"> <a accesskey="n" href="build_vxworks_notes.html">Next</a></td> |
| 159 |
</tr> |
| 160 |
<tr> |
| 161 |
<td width="40%" align="left" valign="top">SunOS </td> |
| 162 |
<td width="20%" align="center"> |
| 163 |
<a accesskey="h" href="index.html">Home</a> |
| 164 |
</td> |
| 165 |
<td width="40%" align="right" valign="top"> VxWorks notes</td> |
| 166 |
</tr> |
| 167 |
</table> |
| 168 |
</div> |
| 169 |
</body> |
| 170 |
</html> |