FastDDS编译安装说明

1.安装ASIO
1.1  sudo apt-get install autoconf
1.2  下载asio源码(git clone https://github.com/chriskohlhoff/asio.git)
1.3  找到autogen.sh所在的目录
1.4  ./autogen.sh
1.5  ./configure
1.6  make && sudo make install

2.安装tinyxml
2.1 git clone https://github.com/leethomason/tinyxml2.git
2.2 cd tinyxml2  (需要修改CMakeLists.txt中的add_library,加上SHARED生成动态库,默认为静态库,最后在libfastrtps.so编译链接到libtinyxml2的时候,需要引用的是动态库,静态库会报错)
2.3 mkdir build && cd build
2.4 cmake .. && make
2.5 sudo make install

3.安装libssl
sudo apt install libssl-dev

4.下载编译安装FastDDS

4.1 Foonathanmemory
4.1.1  git clone https://github.com/eProsima/foonathan_memory_vendor.git
4.1.2  mkdir foonathan_memory_vendor/build
4.1.3  cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install -DBUILD_SHARED_LIBS=ON
4.1.4  cmake --build . --target install

4.2 FastCDR
4.2.1  git clone https://github.com/eProsima/Fast-CDR.git
4.2.2  mkdir Fast-CDR/build
4.2.3  cd Fast-CDR/build
4.2.4  cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install
4.2.5  cmake --build . --target install

4.3 FastDDS
4.3.1  git clone https://github.com/eProsima/Fast-DDS.git
4.3.2  mkdir Fast-DDS/build
4.3.3  cd Fast-DDS/build
4.3.4  cmake .. -DCMAKE_INSTALL_PREFIX=~/Fast-DDS/install
4.3.5  cmake --build . --target install

相关推荐

  1. FastDDS编译安装说明

    2024-05-10 20:22:03       33 阅读
  2. docker-compse安装fastdfs

    2024-05-10 20:22:03       27 阅读
  3. linux程序编译安装过程和重要参数说明

    2024-05-10 20:22:03       52 阅读
  4. <span style='color:red;'>FastDFS</span>

    FastDFS

    2024-05-10 20:22:03      53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-10 20:22:03       75 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-10 20:22:03       80 阅读
  3. 在Django里面运行非项目文件

    2024-05-10 20:22:03       64 阅读
  4. Python语言-面向对象

    2024-05-10 20:22:03       75 阅读

热门阅读

  1. Docker

    Docker

    2024-05-10 20:22:03      22 阅读
  2. 使用Python绘制爱心

    2024-05-10 20:22:03       28 阅读
  3. ArrayList数组去重

    2024-05-10 20:22:03       23 阅读
  4. 5.9代码

    5.9代码

    2024-05-10 20:22:03      29 阅读
  5. eslint关闭的方法总结

    2024-05-10 20:22:03       21 阅读
  6. Spark安装教程

    2024-05-10 20:22:03       30 阅读
  7. LeetCode 每日一题 ---- 【2105. 给植物浇水 II】

    2024-05-10 20:22:03       25 阅读
  8. Redis 源码解析 - Redis 字典与迭代器

    2024-05-10 20:22:03       24 阅读
  9. 【Vue3源码学习】— CH3.5 renderer 详解

    2024-05-10 20:22:03       26 阅读
  10. TypeScript type类型别名

    2024-05-10 20:22:03       33 阅读