Skip to content

lsl linking error (and a potential fix :) ) #4

@tufteddeer

Description

@tufteddeer

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.

liblsl-rust version: afa1d25
Rust version: 1.77.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions