Hi,
I was able to build libsnark on Mac. However, I would like to mention some change I had to make on the command given in the README file of the project here:
https://github.com/scipr-lab/libsnark, in order to get it built on Mac. Hope this will help someone else building libsnark on Mac in the future.
In the README file, it asks to append the paths of the header files and the libraries, to the line: '
cmake -DWITH_PROCPS=OFF'.
However, it only worked for me when I prepend such paths to the line: '
cmake -DWITH_PROCPS=OFF'.
This is the final command line used to build libsnark: '
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'
I also mention here the steps I had to follow before executing the aforementioned final command:
1. Install XCode to get C++ related libraries.
2. Download and install CMake and path to the PATH variable.
3. Install GMP via homebrew.
4. Install Boost via homebrew.
5. Install PKG-CONFIG via MacPorts.
6. Install openssl via homebrew (in order to get libcrypto library).
Thank you.
Best Regards,
Hasini.