Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing step to git submodule init && git submodule update #5

Open
ralexstokes opened this issue Oct 14, 2018 · 4 comments
Open

Missing step to git submodule init && git submodule update #5

ralexstokes opened this issue Oct 14, 2018 · 4 comments

Comments

@ralexstokes
Copy link

Following the tutorial directly, I had to do this step before the step to build with cmake.

If you try to build and see that libsnark is missing a CMakeLists.txt file then you should run git submodule init && git submodule update after git clone.

This is on macOS but shouldn't matter.

@ralexstokes
Copy link
Author

This comment is macOS specific -- for those following along on that OS:

scipr-lab/libsnark#99
scipr-lab/libsnark#86

@ralexstokes
Copy link
Author

I had to also manually go into /depends/libsnark and git submodule init && git submodule update to fetch the transitive deps FYI

@ralexstokes
Copy link
Author

Ok -- for completeness sake and anyone having issues. You'll need to brew install anything missing and do the submodule dance I described above.

Then, here is what I used to get it to finally build:

LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:"${LD_LIBRARY_PATH}"
CPATH=/usr/local/opt/openssl/include:"${CPATH}"
PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:"${PKG_CONFIG_PATH}"
export LD_LIBRARY_PATH CPATH PKG_CONFIG_PATH

CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig cmake -DWITH_PROCPS=OFF -DWITH_SUPERCOP=OFF -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ ..

And while this sounds silly, the first time I ran the cmake command it failed, but then I ran it a second time and it was all good. Now, running the tests seems to be passing!

@udibr
Copy link

udibr commented Mar 5, 2019

On Ubuntu (inside libsnark docker) I had to do

git submodule update --init --recursive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants