"libbson-static-1.0", but CMake did not find one.
feng@feng-B250-HD3P:~/mongo-cxx-driver/build$ cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. -- The CXX compiler identification is GNU 5.4.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The C compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive CMake Error at src/bsoncxx/CMakeLists.txt:86 (find_package): By not providing "Findlibbson-static-1.0.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libbson-static-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libbson-static-1.0" (requested version 1.9.2) with any of the following names:
libbson-static-1.0Config.cmake
libbson-static-1.0-config.cmake
Add the installation prefix of "libbson-static-1.0" to CMAKE_PREFIX_PATH or set "libbson-static-1.0_DIR" to a directory containing one of the above files. If "libbson-static-1.0" provides a separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred! See also "/home/feng/mongo-cxx-driver/build/CMakeFiles/CMakeOutput.log".
I solved this problem through the eosio_build.sh script. I'm from China,when the eosio_build.sh script is used, the basic access to the Mongo link is not basically accessible, causing the step to be interrupted.