0

我正在尝试构建folly 一个 c++ 库,并尝试通过vcpkg.

它下载了所有依赖项并安装了依赖的 boost 库。

但是它在安装愚蠢的最后一步中给出了错误。

我使用了以下命令:

.\vcpkg.exe 安装愚蠢:x64-windows

它给出了以下错误:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: ninja;-v
Working Directory: D:/C++Examples/Vcpkg/buildtrees/folly/x64-windows-rel/vcpkg-parallel-configure
See logs for more information:
  D:\C++Examples\Vcpkg\buildtrees\folly\config-x64-windows-out.log

Call Stack (most recent call first):
   scripts/cmake/vcpkg_configure_cmake.cmake:237    (vcpkg_execute_required_process)
   ports/folly/portfile.cmake:57 (vcpkg_configure_cmake)
   scripts/ports.cmake:72 (include)


Error: Building package folly:x64-windows failed with: BUILD_FAILED

以下是该问题的日志文件级别详细信息:

CMake Error at CMake/FollyFunctions.cmake:81 (if):
if given arguments:

"D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/Benchmark.cpp" "MATCHES" "^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"

Regular expression
"^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"
cannot compile
Call Stack (most recent call first):
CMakeLists.txt:101 (REMOVE_MATCHES_FROM_LISTS)

你知道我该如何处理这个问题吗?

4

1 回答 1

1

正则表达式

^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/

无效,因为“+”字符对正则表达式有特殊意义,而“++”组合无意义(不正确)。

看起来项目的CMakeLists.txt预期路径不包含特定于正则表达式的字符。

尝试使用另一个路径来构建项目,其中没有“+”字符。

于 2018-06-22T07:45:47.663 回答