Archlinux执行以下指令
$ sudo pacman -S cmake
Ubuntu执行以下指令
$ sudo apt-get install cmake
CentOS或基于CentOS的执行
$ sudo yum install cmake
Windows
- 安装cmake
- 官网下载安装包:https://cmake.org/download
- 安装boost
- 官网下载下载:http://www.boost.org
- 执行 bootstrap.bat
- 执行 b2 install
- b2编译库文件 (之前你cmake下载的64位这里写64,如果是32位的就把之前的64改成32)
b2 -a --with-python address-model=64 toolset=msvc runtime-link=static
- 设置变量
set BOOST_ROOT=D:\Tools\boost set BOOST_LIBRARYDIR=D:\Tools\boost\stage\lib