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

CMake 3.5 GUI fails to find libbson when configuring for VS2015 on Win 7

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.1
    • Component/s: BSON, Build
    • Labels:
      None

      Attempting to use CMake to build new based on instructions found here: https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver)

      Was able to build libbson from mongo C driver version 1.3.5, but not mongo C driver (see separate bug report on on that).

      When attempting to configure for VS2015, I wasn't sure what LIBBSON_DIR was supposed to be set to. I set it to the root directory where I had installed libbson, then the directory where the lib file was - neither appeared to work. In both cases, I got the following:

      No build type selected, default is Release
      Checking for module 'libbson-1.0>=1.3.4'

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

      Configuring incomplete, errors occurred!
      See also "D:/GITRepos/mongo-cxx-driver/build/CMakeFiles/CMakeOutput.log".

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            sxhickman Steve Hickman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: