VNC: Difference between revisions

67 bytes removed ,  6 months ago
m
no edit summary
No edit summary
mNo edit summary
Line 334: Line 334:


<!--T:110-->
<!--T:110-->
Instead of loading SnEnv or StdEnv users may want to use NIX which provides open-source software optimized to use accelerated OpenGL whenever possible. NIX can be used by loading the  following <code>nix</code> module which is currently only available on gra-vdi and graham:
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 install (and use) nix software packages inside your personal nix environment.
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 Building OpenGL applications</b>
<b>o OpenGL applications</b>


<!--T:124-->
<!--T:124-->
For accelerated OpenGL to work, it is necessary to adjust compiled binaries to preload an appropriate version of the "vglfaker.so" library from VirtualGL. This has already been done for software modules available on gra-vdi and any OpenGL based packages you build/install via nix.  It is, however, something that has to be done for any pre-built software you download or any codes you compile without using nix.  
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 systemThen 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:126-->
The easiest way to do this is to use the <code>patchelf</code> utility from nix (use <code>nix-env --install --attr nixpkgs.patchelf</code> to install it) to adjust the final binaryFor example, if you built an OpenGL application against the system libraries and installed it as ''~/.local/bin/myglapp'', then you need to add the system VirtualGL library ''/usr/lib64/VirtualGL/libvglfaker.so'' as the first required library.


<!--T:154-->
<!--T:154-->
cc_staff
1,857

edits