Skip to content

Conversation

@The-personified-devil
Copy link
Collaborator

Closes #2337

Easy to use + low code complexity solution to be able to build alvr with nvidia support on linux for distros that have issues with cuda. Note that this currently is only supposed to supplement an environment that already provides rust and a couple other necessary things, not present a full build environment (should this be changed?). It'll also need to be documented on the wiki and should hopefully replace some more manual and unreliable methods of installing cuda featured there.

Copy link
Collaborator

@Vixea Vixea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea looks cool

Copy link
Member

@ckiee ckiee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full build env would be nicer of course but this looks very reasonable (:

Comment on lines +3 to +4
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could with pkgs; these to not be so verbose

@skryvel skryvel mentioned this pull request Sep 14, 2024
@failboat78
Copy link
Collaborator

I get errors when trying to build using this.

The prepare-deps stage works ok - which was the part that was failing on arch. But the build-streamer step fails with errors relating to alsa and openssl.

error: failed to run custom build command for openssl-sys v0.9.102
error: failed to run custom build command for alsa-sys v0.3.1

@The-personified-devil
Copy link
Collaborator Author

Since nixos has fixed their packaging for alvr, we should probably base this change on that since it's already a lot more complete. Same goes for #2402.

Also, a more medium-term goal is to move away from ffmpeg, since it's arguably just a mess, and to replace it with direct support for vulkan video encoding (widespread support is available from mesa 25 on). This would fully replace the intent of this pr, although I'm still interested in providing first-party integration with nix.

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

Successfully merging this pull request may close these issues.

4 participants