scanse / sweep-sdk

Sweep SDK
MIT License
90 stars 85 forks source link

sweeppy can't find C-libraries #96

Closed CodingJonas closed 7 years ago

CodingJonas commented 7 years ago

libsweep version + affected bindings

libsweep 1.1.1

operating system

Arch Linux

Description:

The make file for the c code installs the libraries into '/usr/local/lib'. The python wrapper 'sweppy' uses those libraries, but looks only in '/usr/lib'.

I fixed it by running sudo ln -s /usr/local/lib/libsweep.so /usr/lib/libsweep.so sudo ln -s /usr/local/lib/libsweep.so.1 /usr/lib/libsweep.so.1

Would be nice if this could work out of the box. Or did I just understand something wrong?

daniel-j-h commented 7 years ago

Your loader probably does not look into /usr/local/lib by default. Or your loader's cache is not up to date. Try the following: remove your symlinks again and confirm it's failing as before.

Then do sudo ldconfig to update your loader's cache and try again. If this doesn't work a workaround is to either add /usr/local/lib to your runtime's search paths or

export LD_LIBRARY_PATH="/usr/local/lib/"

dynamically.

On the binding side I think we're doing the correct thing here:

daniel-j-h commented 7 years ago

@CodingJonas any updates here?

daniel-j-h commented 7 years ago

Stale. Make sure your loader looks for the right paths as described above.