You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cloned the repo and ran 'cargo build' inside the directory (rustc --version => 1.15.1).
Everything's fine except i had to rename the produced file from 'liblibrespot.so' to 'librespot.so' because otherwise python would complain at import time:
Changing the name field in the [lib] section in the Cargo.toml from 'librespot' to 'respot' solved the problem, but I'm not sure that's the right way as I never programmed in Rust.
Unfortunately cargo adds the lib prefix, whereas python does not expect it.
At the moment I just use a symlink examples/librespot.so -> target/debug/liblibrespot.so, but this is more a hack than anything else.
Activity
plietar commentedon May 30, 2017
Unfortunately
cargoadds thelibprefix, whereas python does not expect it.At the moment I just use a symlink
examples/librespot.so->target/debug/liblibrespot.so, but this is more a hack than anything else.Eventually I'm planning on using https://github.com/PyO3/setuptools-rust to have a more robust build process