sparsemat / sprs

sparse linear algebra library for rust
Apache License 2.0
411 stars 47 forks source link

Error building `sprs` #344

Open MashyBasker opened 9 months ago

MashyBasker commented 9 months ago

What I did

Error encountered

image

What I tried

mulimoen commented 9 months ago

Could you try cargo build --workspace --exclude sprs-benches or cargo build --workspace --features sprs-benches/dl_eigen? Strange that it does not check find the eigen library. I'll check the setup on my arch install when I'm back at a computer.

MashyBasker commented 9 months ago

After running the two commands you provided, the build process was successful. However, when using cargo build --workspace --features sprs-benches, additional packages were installed, notably vcpkg. Consequently, I assumed that eigen would also be installed. Nevertheless, upon running just cargo build again, the same error as originally posted occurred.

I think it would be good to add the command cargo build --workspace --features sprs-benches/dl_eigen in the sprs-benches/README.md

mulimoen commented 9 months ago

Packages are not installed system-wide, you will need to specify --features sprs-benches/dl_eigen for every cargo invocation, unless you install eigen yourself (package name is eigen).

MashyBasker commented 9 months ago

Yes. I've made a PR for future users who encounter this error while building. Please inform me if I need to make some edits.