File: //opt/OV/OpC/examples/copcagtapi/README
How to build the OM agent sample programs
=========================================
To build the example programs the corresponding Makefiles can be used.
To compile the node examples, mostly a K&R C compiler is sufficient.
The Makefiles are named following the convention
Makef.<managed node platform>
on managed nodes.
The <managed node platform> can be:
aix IBM RS6000
Tru64 DEC Alpha
hpux11 HP 9000/700 or 800
hpuxIA32 ia64
solaris Sun SPARC
solarisX86 Sun x86
linux Intel x86
linux Intel x64
For Windows you should use the following makefiles:
itoagtmsitest.mak to compile the itoagtmsitest.exe
Building the managed node programs
----------------------------------
The sample programs are located in the ${OV_INST_DIR}/OpC/examples/copcagtapi
Run the command:
# make -f Makef.<managed node platform>
This will build the programs opcapitest and itoagtmsitest.
To build the example programs, following libraries and include files are
required:
opcapitest, itoagtmsitest:
Standard include files
/opt/OV/include/opcapi.h
Correspondig agent library, depending on the agent platform:
#ifdef SOLARIS
/opt/OV/lib/libopcagtapi.so (On Solaris) and
#endif
#ifdef HPUX_11_23
/opt/OV/lib/hpux32/libopcagtapi.so (On HP-UX)
#else
/opt/OV/lib/libopcagtapi.sl (On HP-UX)
#endif
Please consult the makefiles for details about building for other platforms.
For Windows, the examples are present in the ${OV_INST_DIR}/examples/copcagtapi
To compile just start the Developer Studio, open a Workspace (itoagtmsitest.mdp)
and use the build option from the build menu to build
the executable.