alibaba-edu / mpc4j

Apache License 2.0
211 stars 42 forks source link

java.lang.UnsatisfiedLinkError: no mpc4j-native-tool in java.library.path #15

Closed aaaaaa1 closed 1 year ago

aaaaaa1 commented 1 year ago

咨询下,mpc4j-native-tool在centos7.6环境编译生成的cmake-build-release文件夹可以在Windows上IntelliJ IDEA进行使用么?参考了https://github.com/alibaba-edu/mpc4j说明中Demonstration部分的第8点进行配置,即在VM进行配置-Djava.library.path=我放路径,结果会报错,如图: image 编译后路径如图: image 在IntelliJ IDEA上如何才能运行mpc4j-native-tool与mpc4j-native-fhe编译后cmake-build-release

liuweiran900217 commented 1 year ago

As far as I know, you cannot directly use the library compiled by a Linux-like system on Windows. This is the reason why we try to provide pure-Java implementation for other schemes or protocols. However, currently we cannot provide puer-Java alternative for FHE-based solution since there is no pure-Java version for SEAL. We have a plan to do that but it will take time.

A plausible solution would be to use a cross-compile tool (See https://www.tutorialspoint.com/cross-compile-static-library-from-linux-for-windows for more details) but we haven't tried yet.

aaaaaa1 commented 1 year ago

好的,谢谢老师,我在linux上开发试试