kimandrik / IDASH2017

Other
25 stars 10 forks source link

How to run it? #8

Closed Dylan-yxn closed 5 years ago

Dylan-yxn commented 5 years ago

I had installed the HEAAN library and try to "make" in the /lib, but got into some trouble:

include

      ^~~~~~~~~~

compilation terminated. src/subdir.mk:27: recipe for target 'src/CipherGD.o' failed make: *** [src/CipherGD.o] Error 1

please give me some advice. Thanks!

kimandrik commented 5 years ago

Maybe you can try make from /run folder. And you should change some paths to yours in makefile, and src/subdir.mk

Dylan-yxn commented 5 years ago

I change the paths to ../HEAAN/lib/libHEAAN.a, ../HEAAN/src both in /run/makefile and /run/src/subdir.mk . But the situation has not changed.

kimandrik commented 5 years ago

my paths is subdir.mk for src are: -I/usr/local/include (ntl and gmp src are there) and
-I/Users/kimandrik/git/HEAAN/HEAAN/src (HEAAN src is there), can you change these paths to exact paths of yours

Dylan-yxn commented 5 years ago

I had changed the paths, and it shows another error: Can't find -lHEAAN I try to add PATH, But it's not very effective. Thank you for your great help!

kimandrik commented 5 years ago

Now you have to change the path in Makefile too

Dylan-yxn commented 5 years ago

Thank you for your guidance.

Dylan-yxn commented 5 years ago

Sorry to bother you again. It shows"Finished building target: IDASH2017". But when I try to "./IDASH2017 "../data/data103x1579.txt" 1 7 5 1 -1 1 5 1". It can only show: " data/data103x1579.txt" 1 7 5 1 -1 1 5 1 isYfirst = 1, number of iterations = 7, g_k = 5 factors = 104, samples = 1579, fold = 5 gammaUp = 1, gammaDown = -1, isInitZero = 1 batch = 16, slots = 32768, cnum = 7

Start Scheme generating... " Then kill the program. I installed it in another computer but get the same result.

Dylan-yxn commented 5 years ago

I've made it. Thanks!