# Building eXtremeDB Libraries for VxWorks on Windows

> Your eXtremeDB for VxWorks package includes pre-built binaries for the eXtremeDB runtime installed in the `target/bin` directory. The directory structure reflects the target platform and the compiler used:

>         target/bin/<BSPNAME>/
>         target/bin/<BSPNAME_Debug>/

> For example:

>         target/bin/PENTIUMDiab/
>         target/bin/PENTIUMDiab_Debug/

> Prior to building the SDK samples, you need to have installed your WindRiver Workbench IDE and setup the WindRiver environment. (Please refer to the appropriate VxWorks documentation.) Your package includes Workbench project files that you can load into the IDE. These project files are located in the following directories:

>         samples/core	(core samples)
>         samples/sql 	(eXtremeSQL samples)
>         samples/ha	(High Availability Edition samples)
>         samples/tl	(Transaction Logging Addition samples)

> Please note that your package does not include command-line tools for building SDK samples and the eXtremeDB runtime. If you need to integrate the eXtremeDB build into your command-line based application build system, please contact McObject Support.

> ## Building VxWorks Runtime Libraries

> To build the VxWorks eXtremeDB runtime libraries, please perform the following steps:

> > 1. Unpack the eXtremeDB package (see instructions here).

> > 2. Start the WindRiver Workbench IDE.

> > 3. Create a new workspace:

> > > From the menu choose “File”, then the “Switch Workspace” and “Other” menu items. The IDE will display a “Workspace Launcher” window. Choose the new workspace location and click “OK”. (For example choose the “target” directory of the eXtremeDB installation.)

> > 4. Right-click the “Project Explorer” pane (on the left by default) and choose the “Import…” menu item.

> > 5. In the “Import” window choose “Existing Projects into Workspace” and click “Next”.

> > 6. Choose the “Select root directory” radio-button and specify the import directory. (For example select the “target” directory of the eXtremeDB installation.)

> > 7. Use the “Select All” button to mark all existing samples. (Do not check the “Copy projects into workspace” checkbox if the workspace is in the “target” directory. If the workspace is located somewhere else this box can be checked to cause the IDE to copy the samples source code files and preserve the original files unchanged.)

> > 8. Click the “Finish” button to complete the import process. This will create a projects tree in the “Project Explorer” pane. For each of the libraries click the project name and set the build target using the menu “Project”/“Build Options”/“Set Active Build Spec”/<TARGET NAME>. The target name could be “SIMNTgnu”/“SIMNTdiab” or the hardware platform name. Also here it is possible to select the “Debug” or “Release” build option.

> > 9. For each of the libraries click the project name and set the build target using the menu “Project”/“Build Options”/“Set Active Build Spec”/<TARGET NAME>. The target name could be “SIMNTgnu”/“SIMNTdiab” or the hardware platform name.

> > 10. Also here select the “Debug” or “Release” build option.

> > 11. Build all libraries with the “Project”/“Build All” menu command.

> This will re-build all of the eXtremeDB libraries for the chosen target and place them into the `target/bin/<TARGET NAME>[-Debug]` directory.