cc_staff
1,857
edits
No edit summary |
mNo edit summary |
||
Line 334: | Line 334: | ||
<!--T:110--> | <!--T:110--> | ||
Instead of loading SnEnv or StdEnv users may want to | Instead of loading SnEnv or StdEnv users may want to load the <code>nix</code> module which provides open-source software that is optimized to use accelerated OpenGL whenever possible. This module is only available on graham an gra-vdi and can be loaded as follows: | ||
<!--T:151--> | <!--T:151--> | ||
Line 342: | Line 342: | ||
<!--T:112--> | <!--T:112--> | ||
The nix and nix-env commands will now be in your path to | The nix and nix-env commands will now be in your path to manage software packages via NIX within your personal nix environment. | ||
<!--T:114--> | <!--T:114--> | ||
Line 375: | Line 375: | ||
<!--T:122--> | <!--T:122--> | ||
<b>o | <b>o OpenGL applications</b> | ||
<!--T:124--> | <!--T:124--> | ||
For accelerated OpenGL to work, it is necessary to adjust compiled binaries to | For accelerated OpenGL to work, it is necessary to adjust compiled binaries to pre-load "vglfaker.so" from VirtualGL. This level of customization is automatically done for you on gra-vdi when you install any OpenGL based software package(s) with nix. It is however something that must manually be done after you download and install any software from outside of nix. To do this we suggest using the <code>patchelf</code> utility to adjust the final binary. It can be installed into nix with <code>nix-env --install --attr nixpkgs.patchelf</code> if its not already on the system. Then once you have built your OpenGL application against the system libraries and for example installed it as ''~/.local/bin/myglapp'' you can add the system VirtualGL library ''/usr/lib64/VirtualGL/libvglfaker.so'' by running: | ||
<!--T:154--> | <!--T:154--> |