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

Any way to build without /usr/lib? #13

Closed
bbigras opened this issue May 19, 2020 · 4 comments
Closed

Any way to build without /usr/lib? #13

bbigras opened this issue May 19, 2020 · 4 comments

Comments

@bbigras
Copy link

bbigras commented May 19, 2020

My libs are in a non-standard location. I'm trying to build zenith which uses this crate.

Anything I can do? Like use an env var?

@Cldfire
Copy link
Owner

Cldfire commented May 20, 2020

I was able to build and run the tests for this crate successfully just now with my libs moved to a non-standard directory using:

LD_LIBRARY_PATH=/path/to/lib/folder cargo test

Try setting that environment variable (or appending to it if need be) while building zenith and let me know if it helps 🙂

@bbigras
Copy link
Author

bbigras commented May 20, 2020

Oh, you need to enable the "nvidia" feature. It's disabled by default.

@Cldfire
Copy link
Owner

Cldfire commented May 20, 2020

Ah, yeah.

That's because right now it's not possible to compile with this crate as a dependency and decide at runtime whether or not it's possible to get GPU information. I've opened #12 to track supporting that.

Thanks for opening an issue! If you run into any further problems just let me know 👍

@Cldfire Cldfire closed this as completed May 20, 2020
@bbigras
Copy link
Author

bbigras commented May 20, 2020

Perfect. Thank you very much for your time.

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