Skip to content

Instantly share code, notes, and snippets.

@dhet

dhet/cross-compile.md

Last active Jan 4, 2018
Embed
What would you like to do?
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