I have used this bindings for a while without problems (after my initial fixes which are now part of master), but I suddenly can't link lsl on cargo build.
error: could not find native static library `lsl`, perhaps an -L flag is missing?
Some context: I just moved from EndeavourOS to Fedora and most certainly have a different Rust toolchain now, but I don't know if some of this is part of the problem.
I noticed that liblsl.a is now in target/debug/build/lsl-sys-1246be77e96acb15/out/lib64/ instead of .../lsl-sys-XXX/out/lib and linking works when I change the libdir in build.rs accordingly.
I have used this bindings for a while without problems (after my initial fixes which are now part of
master
), but I suddenly can't linklsl
oncargo build
.liblsl-rust version: afa1d25 Rust version: 1.77.2
Some context: I just moved from EndeavourOS to Fedora and most certainly have a different Rust toolchain now, but I don't know if some of this is part of the problem.
I noticed that
liblsl.a
is now intarget/debug/build/lsl-sys-1246be77e96acb15/out/lib64/
instead of.../lsl-sys-XXX/out/lib
and linking works when I change thelibdir
inbuild.rs
accordingly.I have a fix over at https://github.com/tufteddeer/liblsl-rust/tree/fix-lsl-lib64-linking which works for me an my lib64 directory, but since I'm not totally sure why this happened and if this is the correct solution, I'm not opening a PR directly this time.