0

当我使用 vcpkg 安装 SEAL 时,会出现以下情况:

Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: seal:x86-windows
  Vcpkg version: 2021-01-13-unknownhash

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

C:\src\vcpkg\vcpkg\buildtrees\seal\config-x86-windows-dbg-out.log

-- The CXX compiler identification is MSVC 19.28.29335.0
-- The C compiler identification is MSVC 19.28.29335.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type (CMAKE_BUILD_TYPE): Debug
-- Microsoft SEAL debug mode: ON
-- Microsoft GSL: found
-- Found ZLIB: optimized;C:/src/vcpkg/vcpkg/installed/x86-windows/lib/zlib.lib;debug;C:/src/vcpkg/vcpkg/installed/x86-windows/debug/lib/zlibd.lib (found suitable version "1.2.11", minimum required is "1.2.11") 
-- ZLIB: found
-- Configuring incomplete, errors occurred!
See also "C:/src/vcpkg/vcpkg/buildtrees/seal/x86-windows-dbg/CMakeFiles/CMakeOutput.log".

C:\src\vcpkg\vcpkg\buildtrees\seal\config-x86-windows-dbg-err.log

 CMake Error at CMakeLists.txt:186 (message):
  Zstandard: must be static

what's the maining of "Zstandard: must be static" ???

请告诉我如何修复它或如何在 Windows 上安装 SEAL。谢谢!

4

1 回答 1

0

SEAL 要求静态构建 Zstandard。如果您想获得 Zstandard 支持,则只能使用 vcpkg 安装静态 SEAL。为此,请按如下方式指定三元组(例如):.\vcpkg install seal:windows-x64-static.

于 2021-02-07T06:20:52.177 回答