【问题标题】:Fail to install Mircosoft SEAL安装 Microsoft SEAL 失败
【发布时间】:2021-05-10 11:26:20
【问题描述】:

当我使用 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。谢谢!

【问题讨论】:

    标签: installation seal


    【解决方案1】:

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

    【讨论】:

    • 我已经通过开发人员命令提示符为 VS 2019 安装了 SEAL。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-30
    • 2020-11-06
    • 2018-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多