SEAL icon indicating copy to clipboard operation
SEAL copied to clipboard

Building and Installing on Windows failed

Open m-dawood-munir opened this issue 2 years ago • 3 comments

Building on windows using Visual Studio Developer Command Prompt failed. I used following command, cmake -S . -B build -G "Visual Studio 17 2022" -A x64

This gave me following error,

CMake Error at CMakeLists.txt:68 (include): include could not find requested file:

EnableCXX17

CMake Error at CMakeLists.txt:150 (seal_fetch_thirdparty_content): Unknown CMake command "seal_fetch_thirdparty_content".

-- Configuring incomplete, errors occurred! See also "C:/SEAL/build/build/CMakeFiles/CMakeOutput.log".

m-dawood-munir avatar Jul 21 '22 19:07 m-dawood-munir

I'm wondering why you have two directories called build within each other? Could you try taking a fresh clone of the repo and try again with cmake -S . -B build -G "Visual Studio 17 2022" -A x64 in the top-level directory.

kimlaine avatar Jul 22 '22 15:07 kimlaine

Thanks for your response

image

I have followed all the steps to build. And when I used this in my new project it is giving me the error shown in above fig. I have added the seal as additional include directories, additional library directories, and additional dependencies but still giving error.

m-dawood-munir avatar Jul 22 '22 16:07 m-dawood-munir

Your project is not finding the GSL headers. I would recommend using CMake to build your project in which case it should automatically work. Otherwise you’ll need to manually add these to your header files location. Or if you don’t want to use GSL just configure SEAL without it.

kimlaine avatar Jul 22 '22 19:07 kimlaine