DDS二
编译fastDDS
安装依赖
udo apt install libasio-devlibtinyxml2-dev libssl-dev libp11-devlibengine-pkcs11-openssl softhsm2 libengine-pkcs11-openssl
foonathan_memory_vendor编译安装
介绍:
https://blog.csdn.net/gitblog_00601/article/details/142157992
foonathan_memory_vendor 是一个专为 Fast DDS 设计的 foonathan/memory 库的供应商包。此项目旨在简化内存管理库与 Fast DDS 集成的过程,提供了下载、打补丁、编译和安装 foonathan/memory 的自动化流程。
git clone https://github.com/eProsima/foonathan_memory_vendor.git
491 mkdir foonathan_memory_vendor/build
492 cd foonathan_memory_vendor/build
493 cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install -DBUILD_SHARED_LIBS=ON
495 cmake --build . --target install
fastCDR编译安装
介绍:
https://blog.csdn.net/gitblog_00143/article/details/141243088
Fast-CDR 是由 eProsima 开发的一个 C++ 库,主要提供两种序列化机制。一种是标准的 CDR 序列化机制,另一种是速度更快的改进版实现。
cd ~/Fast-DDS
git clone https://github.com/eProsima/Fast-CDR.git
mkdir Fast-CDR/build
cd Fast-CDR/build
cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install
cmake --build . --target install
fastDDS编译安装
cd ~/Fast-DDS
git clone https://github.com/eProsima/Fast-DDS.git
mkdir Fast-DDS/build
cd Fast-DDS/build
cmake -DCOMPILE_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install ..
cmake --build . --target install
Fast DDS-Gen编译安装
DDS Gen是一个Java应用程序,它使用IDL(接口定义语言)文件中定义的数据类型生成Fast DDS源代码。
sudo apt install openjdk-8-jdk
git clone --recursive https://github.com/eProsima/Fast-DDS-Gen.git
cd Fast-DDS-Gen
gradle assemble
安装gradle
wget https://github.com/gradle/gradle-distributions/releases/download/v7.6.0/gradle-7.6-bin.zip
mkdir gra
mv gradle-7.6-bin.zip gra
cd gra
unzip gradle-7.6-bin.zip
./gra/gradle-7.6/bin/gradle assemble
运行:Fast-DDS-Gen
java -jar build/libs/Fast-DDS-Gen.jar -i path/to/idl -o path/to/output。(来自:https://blog.csdn.net/gitblog_01020/article/details/145363177)
fast-dds-gen参考:https://www.cnblogs.com/tomato-haha/p/17696504.html
浙公网安备 33010602011771号