I’m trying to build mongodb cxx driver and I followed the instructions in this link:
I have installed mongodb c driver, and libbson files are inside it
When I try to compile mongodb cxx driver, I get this error:
CMake Error at src/bsoncxx/CMakeLists.txt:98 (find_package): Could not find a configuration file for package "libbson-1.0" that is compatible with requested version "1.13.0". The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/cmake/libbson-1.0/libbson-1.0-config.cmake, version: 1.9.2 -- Configuring incomplete, errors occurred! See also "/usr/local/mongo-cxx-driver-r3.6.2/build/CMakeFiles/CMakeOutput.log".
my build command:
sudo cmake .. -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_MNMLSTC=1 -DCMAKE_INSTALL_PREFIX=/usr/local/mongo-cxx-driver-r3.6.2 -DCMAKE_PREFIX_PATH=/usr/local/mongo-c-driver
I have mongo c driver at: /usr/local/mongo-c-driver
and libbson at: /usr/local/mongo-c-driver/src/libbson
my os is Ubuntu 18
Help me to fix the error please.