认识 nanomsg 这个项目,源于项目内部分享。实际分析和使用一段时间之后,确实觉得项目beautiful。
先附上Git地址 : nanomsg Git下载地址
nanomsg 的编译
编译很简单,没有其他第三方依赖。根据Git上编译文档可以轻而易举的体会到编译成功的快乐。简单之美。
以windows编译为例:
This assumes you are in a command or powershell window and have the appropriate variables setup to support Visual Studio, typically by running vcvarsall.bat or similar with the appropriate argument(s). It also assumes you are in the project directory.
md build
cd build
cmake ..
#### 编译Debug版本如下
cmake --build . --config Debug
ctest -C Debug .
cmake --build . --config Debug --target install NB: This may have to be done using an Administrator account.
### 编译Release版本如下
cmake --build . --config Release
ctest -C Release .
cmake --build . --config Release --target install
编译成功:喜获 nanomsg.dll 和一大堆测例执行程序~~
此篇只作为nanomsg 在项目实战中的一个开头。其他使用相关,我们接后篇。