Skip to content

Instantly share code, notes, and snippets.

@dhet
Last active January 4, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhet/bcf3d7f05f883396ab310a975fa1fe2b to your computer and use it in GitHub Desktop.
Save dhet/bcf3d7f05f883396ab310a975fa1fe2b to your computer and use it in GitHub Desktop.
Cross compile OpenDDS for Raspberry Pi

Install cross compiler

sudo apt install -y build-essential \
  g++-arm-linux-gnueabihf \
  gdb-multiarch

Get OpenDDS

wget -qO- http://download.objectcomputing.com/OpenDDS/OpenDDS-3.12.tar.gz | tar xvz
cd OpenDDS-3.12 && mkdir dist-arm

Build

./configure \ 
  --no-tests \
  --target=linux-cross \
  --target-compiler=$(which arm-linux-gnueabihf-g++) \
  --prefix=$(pwd)/dist-arm/ && \
  make

Install

cd build/target && \
  make install

Additional files

cp -Lr ACE_wrappers/MPC/ ../../dist-arm/share/ace/MPC

The compiled files are now in the dist-arm directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment