alibaba-edu / mpc4j

Apache License 2.0
211 stars 42 forks source link

mpc4j-native-fhe在make的进度为100%时发生“/usr/local/lib64/libseal-4.0.a: 无法添加符号: 归档没有索引;运行 ranlib 以添加一个” #14

Closed aaaaaa1 closed 1 year ago

aaaaaa1 commented 1 year ago

mpc4j-native-fhe的其他条件都编译成功了,就在最后一步make发生错误,如图: image 这个问题改如何解决呢?

liuweiran900217 commented 1 year ago

As far as I understand, the main problem is that you compile and generate a dynamic library (the lib file that ends with .a) instead of a shared library (the lib file that ends with .so / .dylib) for SEAL. If you are using linux-like system (e.g., Ubuntu), you may need to follow the intruction shown in https://github.com/alibaba-edu/mpc4j/blob/main/mpc4j-native-fhe/README.md to compile and install SEAL. The key part is that you need to run cmake with -DBUILD_SHARED_LIBS=ON.

aaaaaa1 commented 1 year ago

centos安装时,在cmake命令里面少了-DBUILD_SHARED_LIBS=ON

liuweiran900217 commented 1 year ago

centos安装时,在cmake命令里面少了-DBUILD_SHARED_LIBS=ON

Thanks for the information! We will correct README.md for mpc4j-native-fhe in 1.0.9.