Skip to content

rustyducks/ducklink_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ducklink_cpp

A C++ library to communicate in Ducklink over UDP or Serial.

Installation

Install dependencies

Both Protoduck and serialib are included as submodules of this repository, and compiled with the main project:

git submodule update --init --recursive

Protobuf can be installed via the package manager, but for crosscompiling, it needs to be compiled from the source.

Binaries:

sudo apt update && sudo apt install protobuf-compiler

Build and install

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=</path/to/your/workspace> ..
make -j4
make install

Crosscompiling for Linux ARM

Protobuf needs to be compiled for Linux ARM and installed in the specified workspace.

mkdir buildarm && cd buildarm
export LINUX_ARM_TOOLCHAIN_PATH=</path/to/toolchain>  # optional: defaults to /usr/lib/ccache
cmake -DCROSSCOMPILE_ARM=ON -DCMAKE_INSTALL_PREFIX=</path/to/your/workspace/armlinux> ..  # your workspace must contain the dependencies, manually built for the host
make -j4
make install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published