Example:

$ uname -a
Linux hagbard 2.6.29.6-default #1 SMP Fri Jul 3 12:33:35 UTC 2009 x86_64 GNU/Linux

$ nix-build -A glxinfo –argstr system i686-linux

$ ./result/bin/glxgears
Xlib: extension “Generic Event Extension” missing on display “:0.0”.
Error: couldn’t get an RGB, Double-buffered visual

The reason is that the current OpenGL implementation in /var/run/opengl-driver/lib/ will be a 64-bit library. As a workaround, setting LIBGL_ALWAYS_INDIRECT=1 might work.

This is mostly a problem for Wine, which currently can only be built as a 32-bit program.

Submitted on 18 September 2009 at 14:50

Log in to post comments