Skip to content

Instantly share code, notes, and snippets.

@doevelopper
Created May 24, 2018 21:15
Show Gist options
  • Save doevelopper/4f093e0c53a0fb412d885d3296a6ffbc to your computer and use it in GitHub Desktop.
Save doevelopper/4f093e0c53a0fb412d885d3296a6ffbc to your computer and use it in GitHub Desktop.
Build
```sh
>$ wget -qO- http://download.objectcomputing.com/OpenDDS/OpenDDS-3.12.2.tar.gz | tar xvz
>$ cd OpenDDS-3.12 && mkdir arm-distrib
>$ ./configure \
--no-tests \
--target=linux-cross \
--target-compiler=$(which armv8l-linux-gnueabihf-g++) \
--prefix=$(pwd)/arm-distrib/ && \
make -j5
```
Install
```sh
>$ cd build/target && \
>$ make install
```
Additional files
```sh
>$ cp -Lr ACE_wrappers/MPC/ ../../dist-arm/share/ace/MPC
```
The compiled files are now in the dist-arm directory.
@doevelopper
Copy link
Author

ARMD OpenDDS SECURITY

OpenSSL 1.1.1a
>$ ./Configure --cross-compile-prefix=arm-linux-gnueabihf- linux-armv4
>$ make
>$ make install DESTDIR=/home/${USER}/pi-openssl
Xerces-C++ 3.2.2
PiToolchain.cmake
    set(CMAKE_SYSTEM_NAME Linux)
    set(CMAKE_SYSTEM_PROCESSOR arm)
    set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
    set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
    set(CMAKE_FIND_ROOT_PATH /opt/cross-pi-gcc/arm-linux-gnueabihf)
    set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
    set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
    set(THREADS_PTHREAD_ARG 2)

mkdir build-pi; cd build-pi
cmake -DCMAKE_TOOLCHAIN_FILE=../PiToolchain.cmake 
-DCMAKE_INSTALL_PREFIX=/home/${USER}/pi-xerces ..
make
make install
OpenDDS
>$ ./configure --security --no-tests --target=linux-cross 
     --target-compiler=arm-linux-gnueabihf-g++ 
     --openssl=/home/${USER}/pi-openssl/usr/local --xerces3=/home/${USER}/pi-xerces
>$ make

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