编译参照https://fast-dds.docs.eprosima.com/en/latest/installation/sources/sources_linux.html
mkdir ~/Fast-DDS
sudo apt install libasio-dev libtinyxml2-dev
3.下载和编译FastCDR 从github或gitee上下载FastCDR mkdir Fast-CDR/build cd Fast-CDR/build cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install make -j8 make install
4.下载和编译Foonathan Memory Vendor 从github或gitee上下载memory代码 mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install -DBUILD_SHARED_LIBS=ON make -j8 make install
5.下载和编译FastDDS 从github或gitee上下载FastDDS代码(注意ubuntu 16.04用1.9的代码,ubuntu 18.04用2.3的代码) mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install -DCMAKE_PREFIX_PATH=~/Fast-DDS/install make -j8 make install