Building and Installing the OCP

The following table summarizes the platforms that are supported by the OCP or currently in work.
 
Fully supported Windows NT (MSVC 6.0) and VxWorks (Greenhills)
Partially supported (RTARM must be disabled) Redhat Linux (5.x, 6.x),  SunOS 5.x
In Work IRIX 6.X, VxWorks (GNU)


On Windows NT

Installing the OCP Source

The OCP has been provided as a zipped file for Windows platforms.  Copy the file to the desired build location which will be referred to in the following sections as OCP_ROOT.  (i.e. C:\SEC\OCP\)

Copying the file for Windows platforms:
 


Use WinZip or a similar program to extract the archived file under the destination directory preserving the relative directory.
 

Setting up the environment

The OCP requires the following environment variables:

OCP_ROOT, ACE_ROOT, TAO_ROOT and TAO_IDL_PREPROCESSOR.

Use Settings -> Control Panel -> System -> Environment to set the environment variables as follows:

OCP_ROOT = Destination directory (i.e. C:\SEC\OCP)
ACE_ROOT = %OCP_ROOT%\Cofp\Infrastructure\PlatformServices\ACE_wrappers_Full
TAO_ROOT = %ACE_ROOT%\TAO
TAO_IDL_PREPROCESSOR=c:/Program Files/Microsoft Visual Studio/VC98/bin/cl.exe  (i.e. this is the default location of the CPP,  enter the installation location for your CPP if not the default)
PATH=%PATH%;%OCP_ROOT%\Cofp\_Libfiles;%OCP_ROOT%\..\ObjectSpace\ToolKit\Lib

After setting the environment variables, reboot to ensure that the environment variables take effect.

Building the OCP

Follow the process below to build the OCP:
  1. Build the OCP.
Building the OCP Examples

Follow the process below to build the OCP Examples:

  1. Build the Examples.
Building the ASTD Tests

Follow the process below to build the ASTD Tests:

  1. Build the ASTDTest executable.

*** NOTES ***

  1. The current beta lacks the Control's specific API.  This will be added at a later date.  The Control's Specific API will provide the user interface to the OCP from the Control's designer perspective.



On Redhat Linux

Installing the OCP Source

The OCP has been provided as a tarred gzipped file for Unix platforms.  Copy the file to the desired build location which will be referred to in the following sections as OCP_ROOT.  (i.e. /usr/local/SEC/OCP_Build1_Beta)

Use a terminal window to copy the file: (For example)

$cp /mnt/cdrom/OCP.tar.gz /usr/local/SEC/OCP_Build1_Beta/

Use gunzip to unzip the archive.

$gunzip OCP.tar.gz
$tar xvf OCP.tar

Setting up the environment

The OCP requires the following environment variables:

OCP_ROOT, ACE_ROOT, and TAO_ROOT.

These environment variable can be set automatically by changing the the OCP_ROOT directory and executing the setup_sec_linux shell script.

$cd /usr/local/SEC/OCP_Build1_Beta
$source setup_sec_linux
 

Building the OCP

Follow the process below to build the OCP:
  1. Change to the OCP_ROOT directory.
  2.  Make the OCP
Building the OCP Examples

Follow the process below to build the OCP Examples:

*** NOTES ***

  1. The Real-Time Adaptive Resource Manager (RTARM) component does not run on Linux currently.  In order to use the RTARM, you must run the Windows NT build
  2. The current beta lacks the Control's specific API.  This will be added at a later date.  The Control's Specific API will provide the user interface to the OCP from the Control's designer perspective.
  3. The OCP spawns Real-Time threads (SCHED_FIFO).  This capability requires root privileges on Linux.
  4. The OCP compiles with the EGCS compiler that ships with Redhat 6.1.  (EGCS 1.1.2)

On VxWorks Linux

*** This section is under construction ***

 

 
 
 
 
 
 
 
 
 

Last Modified:       Information Owner: Brian Mendel      Maintained by Brian Mendel