Ubuntu Trusty 上的 Boost 版本至少为 1.56
Boost version at least 1.56 on Ubuntu Trusty
我需要构建 MongoDB C++ 驱动程序。它需要至少 1.56 的 Boost 版本,而我当前的 Boost 版本是 Ubuntu Trusty.
上的默认 Boost 1.54 (libboost-all-dev)
我找不到合适的 PPA。是否可以在 Ubuntu Trusty 上安装 Boost 1.56?甚至更好的 Boost 1.62?
Boost polyfill 需要 Boost 1.56,但是,MongoDB C++ 驱动程序只能使用默认 MNMLSTC/core polyfill 编译。
在 https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ 中的第 4 步。使用默认的 polyfill 代替 Boost polyfill。
MNMLSTC/core polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
增强 polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 \
-DCMAKE_INSTALL_PREFIX=/usr/local ..
我需要构建 MongoDB C++ 驱动程序。它需要至少 1.56 的 Boost 版本,而我当前的 Boost 版本是 Ubuntu Trusty.
上的默认 Boost 1.54 (libboost-all-dev)我找不到合适的 PPA。是否可以在 Ubuntu Trusty 上安装 Boost 1.56?甚至更好的 Boost 1.62?
Boost polyfill 需要 Boost 1.56,但是,MongoDB C++ 驱动程序只能使用默认 MNMLSTC/core polyfill 编译。
在 https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ 中的第 4 步。使用默认的 polyfill 代替 Boost polyfill。
MNMLSTC/core polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
增强 polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 \
-DCMAKE_INSTALL_PREFIX=/usr/local ..