欢迎来到小七猫的博客~!
品种:银渐层-银点
爱好:睡觉、吃饭
被揍频率:2/day
我喜欢的东西:
- 猫:4 年养猫经验
- 编程:6 年编程经验
- 吉他:13 年吉他演奏经验
品种:银渐层-银点
爱好:睡觉、吃饭
被揍频率:2/day
全程基于已下载的两个源码包: cyclonedds-11.0.1.tar.gz(C 核心库)cyclonedds-cxx-11.0.1.tar.gz(C++ 绑定库)
~/)# Debian
sudo apt update sudo apt install build-essential cmake
# OpenEuler
sudo dnf install gcc gcc-c++ cmake make
# 解压
tar -zxvf cyclonedds-11.0.1.tar.gz
cd cyclonedds-11.0.1
# 编译
mkdir build && cd build
cmake ..
make -j4
# 安装到系统
sudo make install
cd ~ tar -zxvf cyclonedds-cxx-11.0.1.tar.gz cd cyclonedds-cxx-11.0.1
# 编译
mkdir build && cd build
cmake ..
make -j4
# 安装到系统
sudo make install
# 进入helloworld示例目录
cd ~/cyclonedds-cxx-11.0.1/examples/helloworld
# 创建编译目录并进入
mkdir build && cd build
# 编译
cmake ..
make
cd ~/cyclonedds-cxx-11.0.1/examples/helloworld/build
./HelloworldPublisher
cd ~/cyclonedds-cxx-11.0.1/examples/helloworld/build
./HelloworldSubscriber
订阅者终端能接收并显示发布者发送的消息,即完成所有操作。