编译准备工作:
(1)mongo-c-driver下载地址:
https://github.com/mongodb/mongo-c-driver/releases
下载最新版:mongo-c-driver 1.12.0的Souce code版
(2)mongodb/mongo-cxx-driver下载地址:
https://github.com/mongodb/mongo-cxx-driver/releases
(3)boost库下载地址:
https://sourceforge.net/projects/boost/files/
进入boost-binaries版本
https://sourceforge.net/projects/boost/files/boost-binaries/1.68.0/
选择boost_1_68_0-msvc-14.0-64.exe
(4)安装cmake(已经安装的高版本,可以跳过这个步骤)
官方要求CMake 3.2及以上版本。
下载地址:https://cmake.org/download/
选择windows平台上的cmake安装程序,自行安装,选择最新版的就可以。
如果是编译C语言版本的mongo driver只需要编译(1)就可以了。