Welcome to GNACK, the GNU Ada CORBA Kit.
This version was tested with:
- perl >= 5.003
- ORBit2-2.14.4 (in turn requires >= glib-2.8.0),
- various gnat versions, e.g. GNATGPL2005, gcc-4.1.0
(GNACK is intended to be insensitive to the GNAT version.)
General preparations
--------------------
If you are trying to communicate non-locally or with another ORB
then put the following lines in the file $HOME/.orbitrc:
ORBIIOPUSock=0
ORBIIOPIPv4=1
ORBIIOPIPv6=1
This is required because by default, ORBit uses Unix domain sockets
for its communication. For further info, see question b.) at
http://orbit-resource.sourceforge.net/faq.html#orbit
How to build and run the Hello test
-----------------------------------
1) Set the environment symbol GNACK_ROOT to point to
the location where you unpacked the GNACK distribution.
E.g., in my case (using BASH syntax) this would be:
export GNACK_ROOT=$HOME/gnack-2.0
2) export ADA_INCLUDE_PATH=$GNACK_ROOT/orbit-ada-include:$ADA_INCLUDE_PATH
(or equivalent setenv if using C shell)
3) cd $GNACK_ROOT/tests/hello
make
4) In one window, type
./ada_server
In another window, type
./ada_client orbit-local-orb
The server creates a file named `iorfile' to which it writes its IOR
string, and the client reads the iorfile.
The other tests instead output the IOR to stdout when the ada_server
is invoked. Supply this IOR as the parameter when invoking the
ada_client.
Debugging
---------
ORBit2 has an environment variable, ORBIT2_DEBUG, that lets you see what's
going on in the ORB during program execution. For example,
$ export ORBIT2_DEBUG=traces
will give debug traces. For the list of supported values, see function
ORBit_setup_debug_flags() in ORBit2 src/orb/orb-core/corba-orb.c .
--
okellogg@users.sourceforge.net