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

CMake can't find pkgconfig when configuring the C++ driver

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.2
    • Component/s: Build
    • Environment:
      CentOS 7.4 on VMWare ESXi with MongoDB 3.4 installed

      I'm using the steps of this site (https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/) and I'm CMake is throwing this error:

      A required package was not found
      Call Stack (most recent call first):
      /usr/share/cmake3/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal)
      cmake/FindLibBSON.cmake:33 (pkg_check_modules)
      src/bsoncxx/CMakeLists.txt:67 (find_package)

      I have "pkgconfig" installed, not "pkg-config". Is that the issue? It seems that "pkg-config", like stated in the steps from the link above, only exists for Debian/Ubuntu while for CentOS it's called "pkgconfig"

            Assignee:
            Unassigned Unassigned
            Reporter:
            adwaitl Adwait Lele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: