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