sprs
sprs copied to clipboard
Error building `sprs`
What I did
- Forked and cloned the project
- run
cargo buildinside the project
Error encountered
- Could not find the file
Eigen/SparseCore
What I tried
- Try to compile it with Rust nightly(did not work)
- Tried
export dl_eigen=1(did not work) - Install
eigen2from AUR(did not work)
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.
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
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).
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.