1<!--$Id: intro6x.so,v 1.4 2008/05/05 17:42:49 carol Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Building for VxWorks 6.x</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for VxWorks6.x systems</dl></b></td> 14<td align=right><a href="../build_vxworks/intro.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> 15</td></tr></table> 16<p align=center><b>Building for VxWorks 6.x</b></p> 17<b>Building With Wind River Workbench using the Makefile</b> 18<p>In VxWorks6.x, developers use Wind River Workbench for software 19development. Two makefiles are provided in the db/build_vxworks 20directory. Use them to build Berkeley DB or Berkeley DB small build, using 21the build chain provided with Wind River Workbench. </p> 22<p>We assume that you have installed all necessary VxWorks6.x software 23including the Wind River Workbench, and that you know how to use it. </p> 24<p>Use the following steps to build Berkeley DB: </p> 25<p>1. Setting variables in the Makefile. 26Open the Makefile and modify the BDB_ROOT variable to the path of your 27Berkeley DB source tree's root directory. You may need to set other 28variables when you build on different platforms, such as BUILD_SPEC, 29DEBUG_MODE, PROJECT_TYPE, build tool flags and BUILD_SPEC specific settings. 30Please refer to the documentation of the Workbench for a complete list of 31available values of each variable. You can also find out the list of values 32by creating a project using the Workbench. Each variable's available values 33will be listed in the GUI window which assigns values to that 34variable. </p> 35<p>2. Make sure "make" can be found. 36Basically you need to set the make utility's path to environment variables. 37</p> 38<p>3. Start up the wrenv utility of the Wind River Workbench. </p> 39<p>4. In the command console, move to the $(BDB_ROOT)/build_vxworks/ directory, 40rename the target makefile (Makefile.6x or Makefile.6x.small) to "Makefile", 41and run "make". The make process will start and create the directory 42"bdbvxw". It will contain all intermediate object files as well as the 43final built image "bdbvxw.out". </p> 44<p>5. After the "bdbvxw.out" image is built, you can use command tools 45or the Workbench IDE to download and run it.</p> 46<p>6. Test and Verification. 47There is a dbdemo and test_micro, which you can run to verify whether 48everything works fine.</p> 49<table width="100%"><tr><td><br></td><td align=right><a href="../build_vxworks/intro.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> 50</td></tr></table> 51<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 52</body> 53</html> 54