当前位置:   article > 正文

VS2022 Seal库的安装_vs2022上 microsoft seal的安装

vs2022上 microsoft seal的安装

大概流程参考:同态加密库Seal库的安装(win11+VS2022)_同态解密seal安装-CSDN博客

  • cd进入SEAL文件夹,三个命令按顺序敲
    1. cmake -S . -B build -G "Visual Studio 17 2022" -A x64
    2. cmake --build build --config Release
    3. cmake --install build

    这个步骤要在SEAL文件下,成功版截图长这样:

  • 在执行第一条的时候这里我遇到了这样的问题:

    1. D:\Program Files\SEAL-main>cmake -S . -B build -G "Visual Studio 17 2022" -A x64
    2. -- Build type (CMAKE_BUILD_TYPE): Release
    3. -- The CXX compiler identification is MSVC 19.39.33521.0
    4. -- The C compiler identification is MSVC 19.39.33521.0
    5. -- Detecting CXX compiler ABI info
    6. -- Detecting CXX compiler ABI info - done
    7. -- Check for working CXX compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
    8. -- Detecting CXX compile features
    9. -- Detecting CXX compile features - done
    10. -- Detecting C compiler ABI info
    11. -- Detecting C compiler ABI info - done
    12. -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
    13. -- Detecting C compile features
    14. -- Detecting C compile features - done
    15. -- Microsoft SEAL debug mode: OFF
    16. -- SEAL_USE_CXX17: ON
    17. -- SEAL_BUILD_DEPS: ON
    18. -- SEAL_USE_MSGSL: ON
    19. -- Microsoft GSL: download ...
    20. 适用于 .NET Framework MSBuild 版本 17.9.5+33de0b227
    21. 1>Checking Build System
    22. 1>Creating directories for 'msgsl-populate'
    23. Performing download step (git clone) for 'msgsl-populate'
    24. Cloning into 'msgsl-src'...
    25. fatal: unable to access 'https://github.com/microsoft/GSL.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
    26. Cloning into 'msgsl-src'...
    27. fatal: unable to access 'https://github.com/microsoft/GSL.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
    28. Cloning into 'msgsl-src'...
    29. fatal: unable to access 'https://github.com/microsoft/GSL.git/': Failed to connect to github.com port 443 after 21028 ms: Couldn't connect to server
    30. -- Had to git clone more than once: 3 times.
    31. CMake Error at msgsl-subbuild/msgsl-populate-prefix/tmp/msgsl-populate-gitclone.cmake:39 (message):
    32. Failed to clone repository: 'https://github.com/microsoft/GSL.git'
    33. D:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: “D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-download.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-update.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-patch.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-configure.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-build.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-install.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7d31416fd56b7bdccf72d0b662be8257\msgsl-populate-test.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\7b52cf593894971921b797ea739f3c2c\msgsl-populate-complete.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeFiles\327cdd59d7424e7a6ab93f43232c6e5d\msgsl-populate.rule;D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\CMakeLists.txt”的自定义生成已退出,代码为 1。 [D:\Program Files\SEAL-main\build\thirdparty\msgsl-subbuild\msgsl-populate.vcxproj]
    34. CMake Error at D:/Program Files/CMake/share/cmake-3.29/Modules/FetchContent.cmake:1714 (message):
    35. Build step for msgsl failed: 1
    36. Call Stack (most recent call first):
    37. D:/Program Files/CMake/share/cmake-3.29/Modules/FetchContent.cmake:1854:EVAL:2 (__FetchContent_directPopulate)
    38. D:/Program Files/CMake/share/cmake-3.29/Modules/FetchContent.cmake:1854 (cmake_language)
    39. cmake/ExternalMSGSL.cmake:12 (FetchContent_Populate)
    40. cmake/SEALMacros.cmake:17 (include)
    41. CMakeLists.txt:150 (seal_fetch_thirdparty_content)

    参考的是:windows下Cmake配置vs2022工程_vs2022 cmake-CSDN博客

  • 最后是输入里的附加依赖项这个看自己的这个文件夹里是什么:
  • 成功截图

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/996999
推荐阅读
相关标签
  

闽ICP备14008679号