博客地址:http://home.cnblogs.com/u/zengjianrong/

fastdds测试

源码编译

准备

为防止github下载失败或者太慢,使用github代理:

zjr@zjr-Precision-3630-Tower:~/disk/prjs/test$ cat ~/.gitconfig 
[url "https://ghproxy.com/https://github.com/"]
    insteadOf = https://github.com/

依赖项

fastCDR

 git clone https://github.com/eProsima/Fast-CDR.git
 cd Fast-CDR/
 git checkout v1.0.24 -b b_v1.0.24
 mkdir build
 cd build/
 cmake ..
 make -j4
 sudo make install

ASIO LIB

sudo apt install libasio-dev
sudo apt install libasio-doc

foonathan_memory

git clone https://github.com/foonathan/memory.git
cd memory/
mkdir build
cd build/
cmake ..
make -j4
sudo make install
zjr@zjr-Precision-3630-Tower:~/disk/prjs/test/memory$ git diff
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3c62619..6a890aa 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -12,7 +12,7 @@ target_include_directories(foonathan_memory_profiling PRIVATE
 # Fetch doctest.
 message(STATUS "Fetching doctest")
 include(FetchContent)
-FetchContent_Declare(doctest URL https://github.com/onqtam/doctest/archive/2.4.5.zip)
+FetchContent_Declare(doctest URL https://ghproxy.com/https://github.com/onqtam/doctest/archive/2.4.5.zip)
 FetchContent_MakeAvailable(doctest)
 
 set(tests

其他依赖项

TinyXML2

Gtest

 

posted @ 2022-03-29 11:36  black_man  阅读(401)  评论(0编辑  收藏  举报