使用 vcpkg 安装 npcap 会出现 CMake 错误:源目录似乎不包含 CMakeLists.txt

时间:2021-01-25 06:44:37

标签: cmake vcpkg cmakelists-options npcap

我在 Windows 上,尝试使用 vcpkg 为我需要的 ROS 驱动程序之一安装 npcap,但是当我运行 vcpkg build npcap 时,我收到以下错误:

- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: ninja -v
    Working Directory: C:/opt/ros/melodic/x64/tools/vcpkg/buildtrees/npcap/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\opt\ros\melodic\x64\tools\vcpkg\buildtrees\npcap\config-x64-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:300 (vcpkg_execute_required_process)
  ports/npcap/portfile.cmake:11 (vcpkg_configure_cmake)
  scripts/ports.cmake:79 (include)


Error: Building package npcap:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: npcap:x64-windows
  Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.

日志文件显示的错误是:

CMake Error: The source directory "C:/opt/ros/melodic/x64/tools/vcpkg/buildtrees/npcap/src/v1.10-4791840ba4.clean" does not appear to contain CMakeLists.txt.

检查源目录后,它确实不包含 CMakeLists.txt 文件。有什么办法可以绕过这个吗?或者我在安装中做错了什么?谢谢!

0 个答案:

没有答案