HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
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.