Portico and Mac OS X

As of version 0.8, portico includes a distribution for Mac OS X. These have been tested on Leopard, but should work fine on Tiger as well.

The Java Interface
If you are using the Java interface, then there is nothing different you need to do when using Mac OS X. Just make sure you have at least the minimum required Java version for Portico (5.0 at the moment, but may have changed by the time you are reading this).

The C++ Interface
Using the C++ interface is a bit trickier. I've included a couple of shell scripts below that you can use as an example or template. Again, as the C++ interface uses JNI, you will need to have the minimum Java version required for Portico installed.

compile.sh RTI_HOME=/Users/tim/Documents/workspace/portico/codebase/dist/portico-0.8rc1
 * 1) obviously replace with your RTI_HOME or make sure this env.var is already set

g++ -O2 -fPIC -I$RTI_HOME/include/ng6 \ -DRTI_USES_STD_FSTREAM \ -lRTI-NG -L$RTI_HOME/lib \ MyFedAmb.cpp main.cpp -o testfederate

execute.sh RTI_HOME=/Users/tim/Documents/workspace/portico/codebase/dist/portico-0.8rc1 DYLD_LIBRARY_PATH="$RTI_HOME/lib" ./testfederate $*
 * 1) Note that everything here is on a single line, you could probably split this up if you wanted