Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building sprs #344

Open
MashyBasker opened this issue Feb 26, 2024 · 4 comments
Open

Error building sprs #344

MashyBasker opened this issue Feb 26, 2024 · 4 comments

Comments

@MashyBasker
Copy link

What I did

  • Forked and cloned the project
  • run cargo build inside the project

Error encountered

  • Could not find the file Eigen/SparseCore

image

What I tried

  • Try to compile it with Rust nightly(did not work)
  • Tried export dl_eigen=1(did not work)
  • Install eigen2 from AUR(did not work)
@mulimoen
Copy link
Collaborator

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
Copy link
Author

MashyBasker commented Feb 27, 2024

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
Copy link
Collaborator

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants