alibaba-edu / mpc4j

Apache License 2.0
211 stars 42 forks source link

编译phe模块的时候make报错 #34

Closed Handikang closed 6 months ago

Handikang commented 6 months ago

image 我看了之前被关闭的issue,看到cmake的时候也添加了参数-DBUILD_SHARED_LIBS=ON 还是报错,如上图所示

liuweiran900217 commented 6 months ago

看了一下报错,我理解这是编译SEAL本身时候的问题,还不涉及到mpc4j。从错误上看,似乎是因为找不到libz.a,我理解可以尝试参考https://github.com/microsoft/SEAL/issues/278,即本地执行sudo apt-get install libz-dev。如果仍然不能成功,可以试试通过参数-DSEAL_USE_ZLIB=OFF来关闭zlib。

另外,如果之前没有加-DBUILD_SHARED_LIBS=ON,则需要重新卸载SEAL(命令应该是cmake remove)后重新安装。

Handikang commented 6 months ago

@liuweiran900217 我将参数-DSEAL_USE_ZLIB调整为OFF成功了,谢谢你

liuweiran900217 commented 6 months ago

如果没有其他问题,那我close掉此issue。

Handikang commented 6 months ago

可以的,谢谢啦

---原始邮件--- 发件人: "Weiran @.> 发送时间: 2024年4月18日(周四) 晚上6:45 收件人: @.>; 抄送: "Han @.**@.>; 主题: Re: [alibaba-edu/mpc4j] 编译phe模块的时候make报错 (Issue #34)

如果没有其他问题,那我close掉此issue。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>