Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-913

Cannot compile the C++ driver

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 3.0.1
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Debian 8.4 x64 (newly installed opearting system && minimize installation)
      Ubuntu 16.04 x64,both they are the same error.

      the libbson and the MongoDB C driver is ok.
      1.cd mongo-cxx-driver/build
      2.cmake .. //got an error

      =====================error=====output=======================
      – The CXX compiler identification is GNU 5.3.1
      – 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
      – No build type selected, default is Release
      – The C compiler identification is GNU 5.3.1
      – 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
      – Checking for module 'libbson-1.0>=1.3.4'

      CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
      A required package was not found
      Call Stack (most recent call first):
      /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
      cmake/FindLibBSON.cmake:26 (pkg_check_modules)
      src/bsoncxx/CMakeLists.txt:67 (find_package)

      – Configuring incomplete, errors occurred!
      See also "/home/archer/Downloads/mongo-cxx-driver-r3.0.1/build/CMakeFiles/CMakeOutput.log".

      ===============================end=======================

            Assignee:
            Unassigned Unassigned
            Reporter:
            baoq1991@126.com qi bao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: