microsoft / SEAL

Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.
https://www.microsoft.com/en-us/research/group/cryptography-research/
MIT License
3.62k stars 709 forks source link

How can I add the seal library into Clion project after using brew to install seal? #701

Closed Archer-One closed 3 months ago

Archer-One commented 3 months ago

I use the command "brew install seal" to install SEAL, but when I tried to use the SEAL library in the Clion project, it went wrong.

The following is some document contents. terminal output " atal error: 'seal/seal.h' file not found

include <seal/seal.h>

     ^~~~~~~~~~~~~

1 error generated. ninja: build stopped: subcommand failed. "

main.cpp "

include

include <seal/seal.h>

int main() { std::cout << "Hello, World!" << std::endl; return 0; } "

CMakeLists.txt " cmake_minimum_required(VERSION 3.23) project(untitled)

set(CMAKE_CXX_STANDARD 17)

add_executable(untitled main.cpp)

set(INC_DIR /opt/homebrew/Cellar/seal/4.1.2/include) set(LINK_DIR /opt/homebrew/Cellar/seal/4.1.2/lib)

link_libraries(seal)

target_link_libraries(untitled seal) "

kimlaine commented 3 months ago

We don't maintain the Homebrew package for this. I would recommend following the (pretty detailed) README.md we wrote for installation and use instructions.