Skip to content

Commit

Permalink
readme: document the solution to #4
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Mar 14, 2017
1 parent c5d436d commit 672855b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,24 @@
cabal build
dist/build/reflex-glfw-demo/reflex-glfw-demo
#+END_SRC

*** libGL error: unable to load driver: XXX_dri.so

In case you happen upon https://github.com/deepfire/reflex-glfw/issues/4, at
least for nVidia GPUs there's a semi-automated solution:

#+BEGIN_SRC shell
./nix-install-vendor-gl.sh
export LD_LIBRARY_PATH=/run/opengl-driver/lib
#+END_SRC

Make sure to read the output of:

#+BEGIN_SRC shell
./nix-install-vendor-gl.sh --explain
#+END_SRC

..to get the bigger picture.

Adding support for other GPU vendors shouldn't be very hard -- all the
infrastructure is there.

0 comments on commit 672855b

Please sign in to comment.