vernamlab / cuHE

CUDA Homomorphic Encryption Library
MIT License
194 stars 41 forks source link

Cmake fix #20

Closed andreaTP closed 8 years ago

andreaTP commented 8 years ago

I targett the redefinition of "std". Hope this will work, if not please help me reporting the errors and I will fix them on the way.

At this point I think the only different configuration you have is that I recompile NTL as a shared library that is not the default, This will be managed properly by the cmake file.

If we run into too much trouble, if you agree, I will go for the configuration of a container such as Docker or Vagga to have a reproducible environment.

WeiDaiWD commented 8 years ago

It solves the problem for cuHE. But I got another error when compiling DHS: [ 11%] Building NVCC (Device) object CMakeFiles/simpleDHSXor.dir/simpleDHSXor_generated_simple_DHS_xor.cu.o Scanning dependencies of target simpleDHSXor make[2]: * No rule to make target libdhsShared.so', needed bysimpleDHSXor'. Stop. make[1]: * [CMakeFiles/simpleDHSXor.dir/all] Error 2 make: *\ [all] Error 2

andreaTP commented 8 years ago

sure, that suppose to have ntl as shared... I'll keep it simpler to let defaults apply. Give me 5 min!

andreaTP commented 8 years ago

Now this will work

WeiDaiWD commented 8 years ago

Still got an error: make[2]: * No rule to make target libdhs.a', needed bysimpleDHSXor'. Stop. make[1]: * [CMakeFiles/simpleDHSXor.dir/all] Error 2 make: *\ [all] Error 2

I'll try to look into that. You have a good weekend :)

WeiDaiWD commented 8 years ago

make[2]: * No rule to make target 'libdhs.a', needed by 'simpleDHSXor'. Stop. make[2]: * No rule to make target 'libdhsShared.so', needed by 'simpleDHSXor'. Stop. I think it cannot find targets if we just link the path of files in 'CMakeLists.txt'.

This works for sure:

make dhs make dhsShared make

Could you please look into that? Thx