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 Windows Explorer, My Computer or equivalent means to copy the file
from the CDROM to the destination directory (OCP_ROOT)
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:
-
Build the OCP.
-
Open the OCP.dsw workspace in the $OCP_ROOT directory.
-
Make the OCP project the activate project and select Build
-> Rebuild All
Building the OCP Examples
Follow the process below to build the OCP Examples:
-
Build the Examples.
-
Make the Examples project the activate project and select Build
-> Rebuild All
Building the ASTD Tests
Follow the process below to build the ASTD Tests:
-
Build the ASTDTest executable.
-
Open the ASTDTest.dsw workspace in the $OCP_ROOT\Cofp\Infrastructure\_Test\InfrastructureUtilities\ASTD
directory.
-
Make the ASTDTest project the activate project and select Build
-> Rebuild All
-
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:
-
Change to the OCP_ROOT directory.
-
Make the OCP
Building the OCP Examples
Follow the process below to build the OCP Examples:
-
Change to the Examples directory.
-
$cd $OCP_ROOT/OCP/Infrastructure/Examples
-
Make the Examples
-
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
-
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.
-
The OCP spawns Real-Time threads (SCHED_FIFO). This capability requires
root privileges on Linux.
-
The OCP compiles with the EGCS compiler that ships with Redhat 6.1.
(EGCS 1.1.2)
On VxWorks Linux
Last Modified:
Information Owner: Brian Mendel
Maintained by Brian Mendel