Sfoglia il codice sorgente

add FastDDS.md for Fast DDS Compile.

yuchuli 3 anni fa
parent
commit
d31a2a7827
1 ha cambiato i file con 31 aggiunte e 0 eliminazioni
  1. 31 0
      doc/架构/FastDDS编译.md

+ 31 - 0
doc/架构/FastDDS编译.md

@@ -0,0 +1,31 @@
+编译参照https://fast-dds.docs.eprosima.com/en/latest/installation/sources/sources_linux.html
+1. mkdir ~/Fast-DDS
+
+2. 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
+
+
+