安装cmake
官网下载最新cmake:https://cmake.org/download/。
Windows:下载对应的包(后缀名为.msi),直接安装即可。
Linux:下载cmake源码,按照如下命令安装:
tar -xvf cmake-3.12.3.tar.gz cd cmake-3.12.3 ./bootstrap gmake && gmake install
安装Boost库
官网下载Boost库,推荐下载1.64.0版本:https://sourceforge.net/projects/boost/files/boost/1.64.0/。
Windows:在cmd窗口运行如下命令:
bootstrap.bat b2.exe link=static address-model=64
Linux:执行如下命令:
./bootstrap.sh ./b2 link=static address-model=64
安装Python
安装2.7.15版本的Python,并将bin目录加入到系统环境变量PATH中,将lib目录加入到系统环境变量LD_LIBRARY_PATH中。