概要
姊妹文章:Win10+VS2017+Qt+Boost+MongoDB安装配置
Qt
sudo dnf install qt5-devel
Boost
sudo dnf install boost-devel
MongoDB
一、安装MongoDB
sudo dnf install mongodb
二、编译 mongo-c-driver
跟着官网教程走
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.10.0/mongo-c-driver-1.10.0.tar.gz
tar xzf mongo-c-driver-1.10.0.tar.gz
cd mongo-c-driver-1.10.0
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
三、编译 mongo-cxx-driver
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=OFF ..
sudo make
sudo make install
版权属于: Alan Clarke's Blog
原文地址: https://blog.xalanq.com/linux-qt-boost-mongodb-setup/
转载时必须以链接形式注明原始出处及本声明。