User Tools

Site Tools


playground:viewerwalkthrough

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
playground:viewerwalkthrough [2013/01/28 12:29]
jabu_v
playground:viewerwalkthrough [2021/12/09 16:42] (current)
Line 1: Line 1:
 ==Installation of Gadget Viewer== ==Installation of Gadget Viewer==
  
 +This page describes how to compile your own Gadget File Viewer on the cluster. Please note that this walkthrough assumes that you have already installed Gadget2 on the cluster. Also note that PATHINSTALL refers to /export/home/username/installations/.
  
 +To install Gadget File Viewer on the cluster, you need to have already installed HDF5 for reading HDF5 snapshots, Cairo or PIPlot for plotting graphs and LibPNG (the LibPNG library is already installed on the cluster) for writing out screenshots and movie frames. You also need pixmax to install Cairo.
  
 +  *Prerequisites
 +    *[[http://pixman.org/|Pixman]] version 0.24.4 or later.
 +    *[[http://www.cairographics.org/|Cairo]] version 1.12.2 or later.
 +    *[[http://www.hdfgroup.org/ftp/HDF5/prev-releases/|HDF5]] version 1.6.
 +    *[[http://www.libpng.org/pub/png/libpng.html|LibPNG]] version 1.2.10 or later.
 +
 +Before installing Gadget File Viewer add these lines on the .profile file.
 +<code>export PKG_CONFIG_PATH=$PATHINSTALL/lib/pkgconfig:$PKG_CONFIG_PATH
 +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
 +</code>
 +
 +  *Install Cairo
 +    *Build Pixman
 +      *./configure --prefix=/PATHINSTALL
 +      *make
 +      *make install
 +    *Build Cairo
 +      *./configure --prefix=/PATHINSTALL
 +      *make
 +      *make install
 +  *Compile Gadget File Viewer
 +    *./configure --prefix=/PATHINSTALL
 +    *make
 +    *make install
 +    *if you want to add HDF5 support, add the flag --with-hdf5=/PATHINSTALL
 +    *if you want to add plotting support, add the flag --with-cairo=/PATHINSTALL
 +    *if you want to add PNG support, add the flag --with-png
 +Gadget File Viewer is now installed, you can test if it is working by using the snapshots you generated from Gadget. A pdf version of this walkthrough is available {{:playground:viewerwalkthrough.pdf||here}}
/app/dokuwiki/data/attic/playground/viewerwalkthrough.1359368943.txt.gz · Last modified: 2021/12/09 16:42 (external edit)