1. 相关链接
2. Fast-DDS 编译
在linux环境下编译安装Fast-DDS, 需要安装以下packages:
- foonathan_memory_vendor: 一个STL兼容的C++内存分配器库
- fastcdr: 一个根据标准CDR序列化机制进行序列化的C++库
- fastrtps: the core library of eProsima Fast DDS library
Requirements
# Cmake, g++, wget and git
sudo apt install cmake g++ wget git
# 为了能跨平台编译我们需要针对riscv64的g++
# 下载交叉编译工具链源码
git clone https://github.com/richfelker/musl-cross-make.git
cd musl-cross-make
# 修改config.mak.dist中在设置
# TARGET = riscv64-linux-musl
# 修改litecross/Makefile的第227行为
# cd obj_musl && ../src_musl/configure $(FULL_MUSL_CONFIG) --enable-debug
make TARGET=riscv64-linux-musl
cd build/local/riscv64-linux-musl
make install OUTPUT