Installation Guide¶
Prerequisites¶
3D Visualizer requires Vrui version 14.0 build 001 or newer. To read images in PNG, JPEG, or TIFF formats, libpng, libjpeg, or libtiff have to be installed, respectively, and Vrui has to be configured with support for these image formats (see Vrui's documentation). To include collaboration functionality, 3D Visualizer requires the Vrui Collaboration Infrastructure version 10.3 or newer.
It is recommended to download or move the source packages for Vrui and 3D Visualizer into a src directory underneath the user's home directory. Otherwise, references to ~/src in the following instructions need to be changed.
It is also recommended to skip optional steps 4 and 6 in the following instructions. 3D Visualizer does not need to be installed in order to be used; installation (to a system directory such as /usr/local) is only recommended if 3D Visualizer will be used from multiple user accounts.
Heads up!
Angle brackets <> in commands below are placeholders, meaning that you have to replace everything between, and including, the angle brackets with some text that depends on your specific circumstances.
-
Install Vrui by running:
~/src/Vrui-<version>-<build> -
Change into the
~/srcdirectory and unpack the 3D Visualizer tarball in one of the two following ways:cd ~/src tar xfz <download path>/3DVisualizer-<version>.tar.gzOr:
cd ~/src tar xf <download path>/3DVisualizer-<version>.tar -
Change into 3D Visualizer base directory:
cd 3DVisualizer-<version> -
If the Vrui version installed in step 0 was not 14.0, or Vrui's installation directory was changed from the default of
/usr/local, adapt the makefile using a text editor. Change the value ofVRUI_MAKEDIRclose to the beginning of the file as follows:VRUI_MAKEDIR := <Vrui install dir>/share/make<Vrui install dir>should be the installation directory chosen in step 0. Use$(HOME)to refer to the user's home directory instead of~. -
Optional: Adapt the makefile if you'd like to install 3D Visualizer in a different location, for example,
/usr/local, by settingINSTALLDIRto the desired target location. 3D Visualizer will be then be installed in$(INSTALLDIR)/bin,$(INSTALLDIR)/lib(or$(INSTALLDIR)/lib64on 64-bit Linux systems), and$(INSTALLDIR)/share/3DVisualizer-<version>.Important
Do not use
~as a shortcut for the user's home directory here, use$(HOME)instead. For example, writeINSTALLDIR = $(HOME)/appsinstead ofINSTALLDIR = ~/apps. -
Build 3D Visualizer by running:
make -
Optional: Install 3D Visualizer in the selected target location. This is only necessary if the
INSTALLDIRvariable in the makefile was changed. By default, 3D Visualizer can be run from its base directory. To install, either run:make installOr, if the target location is a system directory:
sudo make install -
Optional: Add the directory containing the 3D Visualizer executable (
~/src/3DVisualizer-<version>/binin the default installation,$(INSTALLDIR)/binotherwise) to the user's search path. This allows you to run 3D Visualizer from any directory.-
Using csh or tcsh, run either:
setenv PATH ${PATH}:~/src/3DVisualizer-<version>/binOr, with
as the target location set in the makefile: setenv PATH ${PATH}:<INSTALLDIR>/bin -
Using bash:
export PATH=${PATH}:~/src/3DVisualizer-<version>/binOr:
export PATH=${PATH}:<INSTALLDIR>/binTip
These lines can also be added to the user's .cshrc or .bashrc files to make the additions persist between logins.
-