Execute o aplicativo OpenGL instalado pelo gerenciador de pacotes Nix

6

Quando eu tento executar o aplicativo que usa o OpenGL instalado ou criado com o gerenciador de pacotes Nix, os erros GLX aparecem:

$ /nix/store/p6fwy23nfcadxr4i780knajvmzga17aa-glxinfo-8.1.0/bin/glxinfo 
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: r600
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  156 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  50
  Current serial number in output stream:  49
    
por MadRunner 29.06.2016 / 07:46

1 resposta

2

No Nix mesa é corrigido para procurar drivers no diretório /run/opengl-driver .

Instale o mesa-noglu:

$ nix-env -i mesa-noglu

e crie um symlink

$ sudo ln -s /nix/store/*-mesa-noglu-*-drivers /run/opengl-driver
    
por 29.06.2016 / 07:46