Sunday, October 14, 2018

Building ACE TAO OpenDDS from repositories

These are the instructions to actually build ACE (Adaptive Communication Environment),  TAO (The ACE Orb), and OpenDDS (implementation of Data Distribution System) from the repositories.

Clone the repositories from git hub:


git clone https://github.com/objectcomputing/OCITAO.git

git clone https://github.com/objectcomputing/OpenDDS.git

git clone https://github.com/objectcomputing/MPC.git


Set the environment variables


export ACE_ROOT=/projects/OCITAO/ACE
export TAO_ROOT=/projects/OCITAO/TAO
export MPC_ROOT=/projects/MPC
export DDS_ROOT=/projects/OpenDDS

export LD_LIBRARY_PATH=$ACE_ROOT/lib:$TAO_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$ACE_ROOT/bin:$TAO_ROOT/bin:$PATH

Setup ACE TAO definition files:

echo "#include \"ace/config-linux.h\"" > OCITAO/ACE/ace/config.h

cat OCITAO/ACE/ace/config.h
#include "ace/config-linux.h"

echo "include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU" > OCITAO/ACE/include/makeinclude/platform_macros.GNU

cat OCITAO/ACE/include/makeinclude/platform_macros.GNU
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU


Generate the ACE and TAO Makefiles

cd $TAO_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace TAO_ACE.mwc

Build ACE and TAO


make
make depend

Generate the OpenDDS Makefiles


cd $DDS_ROOT
perl $ACE_ROOT/bin/mwc.pl -type gnuace DDS.mwc

Build OpenDDS

make
make depend