MDGSF Software Engineer

[C/C++] nng 编译

2020-10-13
   

项目地址:https://github.com/nanomsg/nng

先安装 ninja 依赖。

sudo apt install ninja
sudo apt install ninja-build

编译静态库:

mkdir build
cd build
cmake -G Ninja ..
ninja

编译动态库:

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -G Ninja ..
ninja

weixingongzhonghao

Comments

Content