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

Cmake and Make generate incomplete builds #36

Open
kamescg opened this issue Jan 14, 2019 · 2 comments
Open

Cmake and Make generate incomplete builds #36

kamescg opened this issue Jan 14, 2019 · 2 comments

Comments

@kamescg
Copy link

kamescg commented Jan 14, 2019

First, thanks publishing this project! Can't wait to see a product ready trustless Ethereum mixer.

I'm running into some difficulties during the make process.

Because I'm running OSX I'm including additional parameters during the cmake ... && make steps borrowed from the snark-mixer repo. I'm not sure if this is causing issues during the make process, but for whatever reason the /build/src/libmiximus.so file which is required in the test.py/deploy.py files isn't being generated

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 ..

The following is the output generated when I attempt to run python3 test.py

Traceback (most recent call last):
  File "test.py", line 24, in <module>
    from deploy import *
  File "../snarkWrapper/deploy.py", line 38, in <module>
    lib = cdll.LoadLibrary('../build/src/libmiximus.so')
  File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(../build/src/libmiximus.so, 6): image not found

Any thoughts as to why this might be occurring?

@barryWhiteHat
Copy link
Owner

can you show me the output of the cmake/make error?

@barryWhiteHat
Copy link
Owner

Also have you looked at https://github.com/HarryR/ethsnarks-miximus ?

Its a much clearner implmentation of what i have here.

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