Cipher Library

Need help in compiling encryption library please:

https://github.com/microsoft/SEAL#building-microsoft-seal-manually

Above link has following info regarding building and creating SEAL library:

When using the "Visual Studio 17 2022" generator you can use the Developer Command Prompt
for VS 2022 command prompt to configure and build the library.
By default the generated platform will be x64.
You can specify the desired platform using the architecture flag -A <x64|Win32> and
the desired configuration using --config <Debug|Release>.

# Generate and build for x64 in Release mode
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release
# Generate and build for x86 in Release mode
cmake -S . -B build -G "Visual Studio 17 2022" -A Win32
cmake --build build --config Release
Installing the library in Windows works as well.
Instead of using the sudo command, however,
you need to run cmake --install build from a command prompt
with Administrator permissions. Files will be installed by default to
C:\Program Files (x86)\SEAL\.

Visual Studio 2022 provides support for CMake-based projects.
You can select the menu option File / Open / Folder... and
navigate to the folder where the Microsoft SEAL repository is located.
After opening the folder, Visual Studio will detect that this is a CMake-based project
and will enable the menu command Project / CMake settings for SEAL.
This will open the CMake settings editor that provides a user interface
where you can create different configurations and set different CMake options.

After the build completes, the output static library seal-<version>.lib
can be found in build\lib\ or build\lib\Release\.
When linking with applications, using CMake as is explained in Linking
with Microsoft SEAL through CMake is highly recommended.
Alternatively, you need to add native\src\ (full path) and
build\native\src\ as include directories to locate the Microsoft SEAL header files.

Last edited on
I am running following commands:


# Generate and build for x64 in Release mode
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release

Above first cmake command is saying:
cmake is not recognized as an internal or external command.

How to install cmake please?

Thanks and best regards,
Instead of cmake command, I used following steps and it said,
CMake generation finished.



Visual Studio 2022 provides support for CMake-based projects.
You can select the menu option File / Open / Folder... and
navigate to the folder where the Microsoft SEAL repository is located.
After opening the folder, Visual Studio will detect that this is a CMake-based project
and will enable the menu command Project / CMake settings for SEAL.
This will open the CMake settings editor that provides a user interface
where you can create different configurations and set different CMake options.
Folder out\build\x64-Debug\lib folder is empty.

How to create lib file please?


Solved. Created .lib file.
Thanks,
Topic archived. No new replies allowed.