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

GL setup failure on non-NixOS linuxen #4

Open
deepfire opened this issue Mar 13, 2017 · 3 comments
Open

GL setup failure on non-NixOS linuxen #4

deepfire opened this issue Mar 13, 2017 · 3 comments
Assignees
Labels

Comments

@deepfire
Copy link
Owner

deepfire commented Mar 13, 2017

Basically, it's an instance of NixOS/nixpkgs#9415, and manifests like this:

[nix-shell:~/src/reflex-glfw]$ cabal clean
cleaning...

[nix-shell:~/src/reflex-glfw]$ cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
Configuring reflex-glfw-0.1.0.0...
Building reflex-glfw-0.1.0.0...
Preprocessing library reflex-glfw-0.1.0.0...
[1 of 1] Compiling Reflex.GLFW      ( src/Reflex/GLFW.hs, dist/build/Reflex/GLFW.o )
Preprocessing executable 'reflex-glfw-demo' for reflex-glfw-0.1.0.0...
[1 of 2] Compiling Gear             ( Gear.hs, dist/build/reflex-glfw-demo/reflex-glfw-demo-tmp/Gear.o )
[2 of 2] Compiling Main             ( Demo.hs, dist/build/reflex-glfw-demo/reflex-glfw-demo-tmp/Main.o )
Linking dist/build/reflex-glfw-demo/reflex-glfw-demo ...

[nix-shell:~/src/reflex-glfw]$ dist/build/reflex-glfw-demo/reflex-glfw-demo
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
@deepfire deepfire added this to the Hackage release milestone Mar 13, 2017
@deepfire deepfire added the bug label Mar 13, 2017
@deepfire deepfire self-assigned this Mar 13, 2017
deepfire added a commit that referenced this issue Mar 14, 2017
@deepfire
Copy link
Owner Author

deepfire commented Mar 14, 2017

A nVidia-only solution is available in the form of the nix-install-vendor-gl.sh script.

@deepfire
Copy link
Owner Author

deepfire commented Mar 15, 2017

A Hackage release of reflex will allow reflex-glfw to be used without Nix, making the problem non-critical.

Given that, and that there is a promising solution (already working for nVidia GPUs), I'm dropping the issue from the Hackage release milestone.

@deepfire deepfire removed this from the Hackage release milestone Mar 15, 2017
@deepfire
Copy link
Owner Author

nix-install-vendor-gl.sh now lives in a separate repository: https://github.com/deepfire/nix-install-vendor-gl

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

No branches or pull requests

1 participant