Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
No edit summary |
(copy editing) |
||
Line 384: | Line 384: | ||
<!--T:124--> | <!--T:124--> | ||
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 | 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 with nix. It is however something that must be done manually 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 it's 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 VirtualGL system library ''/usr/lib64/VirtualGL/libvglfaker.so'' by running: | ||
<!--T:154--> | <!--T:154--> | ||
Line 393: | Line 393: | ||
<!--T:128--> | <!--T:128--> | ||
Note that it is also possible to preload ''vglfaker.so'' via the <code>LD_PRELOAD</code> environment variable. This is generally a bad idea as it applies indiscriminately to all binaries, and those that require a different ''vglfaker.so'' than that set in <code>LD_PRELOAD</code> will then fail | Note that it is also possible to preload ''vglfaker.so'' via the <code>LD_PRELOAD</code> environment variable. This is generally a bad idea as it applies indiscriminately to all binaries, and those that require a different ''vglfaker.so'' than that set in <code>LD_PRELOAD</code> will then fail. It can be used safely in some cases in wrapper scripts. | ||
</translate> | </translate> |