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

Vcpkg on windows to install the mongo-cxx-driver doesn't work.

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.10.1
    • Component/s: None
    • None
    • C Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Computing installation plan...
      The following packages will be built and installed:
          mongo-cxx-driver:x64-windows@3.10.1
      Detecting compiler hash for triplet x64-windows...
      A suitable version of powershell-core was not found (required v7.2.16) Downloading portable powershell-core 7.2.16...
      Downloading powershell-core...
      https://github.com/PowerShell/PowerShell/releases/download/v7.2.16/PowerShell-7.2.16-win-x64.zip->C:\data\vcpkg\downloads\PowerShell-7.2.16-win-x64.zip
      Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.16/PowerShell-7.2.16-win-x64.zip
      Extracting powershell-core...
      Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
      A suitable version of 7zip was not found (required v23.1.0) Downloading portable 7zip 23.1.0...
      Downloading 7zip...
      https://github.com/ip7z/7zip/releases/download/23.01/7z2301-extra.7z->C:\data\vcpkg\downloads\7z2301-extra.7z
      Downloading https://github.com/ip7z/7zip/releases/download/23.01/7z2301-extra.7z
      Extracting 7zip...
      Restored 0 package(s) from C:\Users\rusha\AppData\Local\vcpkg\archives in 193 us. Use --debug to see more details.
      Installing 1/1 mongo-cxx-driver:x64-windows@3.10.1...
      Building mongo-cxx-driver:x64-windows@3.10.1...
      – Downloading https://github.com/mongodb/mongo-cxx-driver/archive/r3.10.1.tar.gz -> mongodb-mongo-cxx-driver-r3.10.1.tar.gz...
      – Extracting source C:/data/vcpkg/downloads/mongodb-mongo-cxx-driver-r3.10.1.tar.gz
      – Applying patch fix-dependencies.patch
      – Using source at C:/data/vcpkg/buildtrees/mongo-cxx-driver/src/r3.10.1-9867d4173c.clean
      CMake Warning (dev) at scripts/cmake/vcpkg_find_acquire_program.cmake:70 (cmake_parse_arguments):
        The INTERPRETER keyword was followed by an empty string or no value at all.
        Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
        arg_INTERPRETER variable rather than setting it to an empty string.
      Call Stack (most recent call first):
        scripts/cmake/vcpkg_find_acquire_program.cmake:143 (z_vcpkg_find_acquire_program_find_internal)
        installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:104 (vcpkg_find_acquire_program)
        ports/mongo-cxx-driver/portfile.cmake:23 (vcpkg_cmake_configure)
        scripts/ports.cmake:175 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at scripts/cmake/vcpkg_find_acquire_program.cmake:30 (cmake_parse_arguments):
        The INTERPRETER keyword was followed by an empty string or no value at all.
        Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
        arg_INTERPRETER variable rather than setting it to an empty string.
      Call Stack (most recent call first):
        scripts/cmake/vcpkg_find_acquire_program.cmake:149 (z_vcpkg_find_acquire_program_find_external)
        installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:104 (vcpkg_find_acquire_program)
        ports/mongo-cxx-driver/portfile.cmake:23 (vcpkg_cmake_configure)
        scripts/ports.cmake:175 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      – Found external ninja('1.12.1').
      – Configuring x64-windows
      – Building x64-windows-dbg
      CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
          Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install – -v -j25
          Working Directory: C:/data/vcpkg/buildtrees/mongo-cxx-driver/x64-windows-dbg
          See logs for more information:
            C:\data\vcpkg\buildtrees\mongo-cxx-driver\install-x64-windows-dbg-out.log

      Call Stack (most recent call first):
        installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
        installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
        ports/mongo-cxx-driver/portfile.cmake:37 (vcpkg_cmake_install)
        scripts/ports.cmake:175 (include)

      error: building mongo-cxx-driver:x64-windows failed with: BUILD_FAILED
      Elapsed time to handle mongo-cxx-driver:x64-windows: 8.9 s

        1. config-x64-windows-out.log
          26 kB
          Rishabh R Ostawal

            Assignee:
            Unassigned Unassigned
            Reporter:
            r.ostawal@nexus-md.com Rishabh R Ostawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None