libsnark icon indicating copy to clipboard operation
libsnark copied to clipboard

Can't run tutorial

Open EmaPK opened this issue 9 years ago • 2 comments

I am trying to run the tutorial by running g++ src/gadgetlib2/examples/tutorial.hpp from the libsnark folder without success. I am working on Ubuntu 15, with g++-5.2.

The error is: tutorial.cpp:14:33: fatal error: gadgetlib2/gadget.hpp: No such file or directory.

If I change the line to a path relative to the cpp file e.g. #include "../gadget.hpp" then that error is fixed, but it starts to show the same error in a chain in the next file it finds pp.hpp:13:42: fatal error: common/default_types/ec_pp.hpp: No such file or directory

What am I doing wrong?

EmaPK avatar Jun 07 '16 13:06 EmaPK

Same here. @EmaPK you can get ec_pp.hpp here https://github.com/ebfull/hackishlibsnarkbindings/tree/master/libsnark/src/common/default_types Though it's just beginning, there's lot more missing files : ) Also for relative path just add -Isrc flag.

imolfar avatar Jun 02 '17 12:06 imolfar

I believe this PR will resolve the build issue within the current cmake approach. https://github.com/scipr-lab/libsnark/pull/105

dcmiddle avatar Apr 17 '18 19:04 dcmiddle