<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LukasKikuchi</id>
	<title>PBTWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LukasKikuchi"/>
	<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/wiki/Special:Contributions/LukasKikuchi"/>
	<updated>2026-05-31T00:37:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=182</id>
		<title>Software/Geant4/Installation</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=182"/>
		<updated>2016-06-05T21:08:24Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Geant4 Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installation Of Geant4 And Supporting Packages ==&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive instructions on installing Geant4.  &lt;br /&gt;
This provides an overview of the installation procedure, as well as a list of prerequisites and additional software that need to be installed alongside Geant4.  &lt;br /&gt;
&lt;br /&gt;
In addition, information is given on the installation procedure for this additional software and the location the software is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;environment&amp;lt;/code&amp;gt; described here is the combination of files, folders, settings and user interface that allow users to make use of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; and related software packages for particle beam therapy simulations.&lt;br /&gt;
&lt;br /&gt;
Accessing the environment requires the following:&lt;br /&gt;
* Access to the filesystem and required folders.&lt;br /&gt;
* Terminal access to run simulations.&lt;br /&gt;
* A visualisation engine such as OpenGL on X (&#039;&#039;optional&#039;&#039;).&lt;br /&gt;
* Setting environment variables to point to installed software and scripts.&lt;br /&gt;
&lt;br /&gt;
The order of installation is important, as some packages depend on having the other packages first.&lt;br /&gt;
In some cases, installations will be successful if carried out in the wrong order, but some features will be disabled that should be enabled.&lt;br /&gt;
The order of packages described below is the order in which these packages were installed into the PBT environment.&lt;br /&gt;
&lt;br /&gt;
== Required Software ==&lt;br /&gt;
&lt;br /&gt;
The list of required software is split into 2 categories:&lt;br /&gt;
&lt;br /&gt;
* [[#Prerequisites|Prerequisites]] are those components that are required in order for some part of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; or the resulting simulation visualisations to function correctly;&lt;br /&gt;
* [[#Add Ons|Add Ons]] are optional pieces of software &amp;amp;mdash; normally visualisation software &amp;amp;mdash; that are installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
See the individually linked pages for information on building each of the components that do not ship by default.&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive information on &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s02.html software that must be installed to compile Geant4 itself] and software required in order to &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s03.html compile optional components of Geant4].&lt;br /&gt;
&lt;br /&gt;
These are:&lt;br /&gt;
&lt;br /&gt;
* A C++11 compatible compiler: on Linux, this is [https://gcc.gnu.org &amp;lt;code&amp;gt;GCC&amp;lt;/code&amp;gt;: the GNU Compiler Collection] which is installed by default.&lt;br /&gt;
* [[/CMake|&amp;lt;code&amp;gt;CMake&amp;lt;/code&amp;gt;]] required for building the various &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations through &amp;lt;code&amp;gt;cmake&amp;lt;/code&amp;gt; files.&lt;br /&gt;
* The [[/CLHEP|&amp;lt;code&amp;gt;CLHEP&amp;lt;/code&amp;gt; Class Library]] that provides a range of foundation and utility classes needed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations.&lt;br /&gt;
&lt;br /&gt;
* [https://www.opengl.org &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; headers and libraries] to provide support for &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; graphics (graphics card specific; installed by default on most Operating Systems).&lt;br /&gt;
* [https://en.wikipedia.org/wiki/X_Window_System &amp;lt;code&amp;gt;X11&amp;lt;/code&amp;gt;] headers and libraries to provide support for the &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt;-Window system (installed by default on &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;nix systems&lt;br /&gt;
* [[/Qt|&amp;lt;code&amp;gt;Qt4&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Qt5&amp;lt;/code&amp;gt; headers and libraries]] to provide support for the Qt user interface and visualisation. &lt;br /&gt;
* [[/Xerces-C|&amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; headers and libraries]] compiled against the C++11 standard to provide support for GDML geometry descriptions.&lt;br /&gt;
* [http://www.opengroup.org/openmotif &amp;lt;code&amp;gt;Motif&amp;lt;/code&amp;gt;] and X11 headers and libraries to provide support for the Motif user interface and visualisation (installed by default on Linux)&lt;br /&gt;
* [[/Coin3D|&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;]] for Open Inventor visualisation (&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; is a free implementation of Open Inventor).  This requires the following libraries to be installed:&lt;br /&gt;
** The [[/Coin3D#simage|&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt;]] library with image format loaders and front-ends to common import libraries.  &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; is meant for use with applications which read image files as textures.  &#039;&#039;&#039;&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; must be installed before &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
** The [[/Coin3D#SoXt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source InventorXt library, which is a GUI binding for using Open Inventor with Xt/Motif. &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
** [[/Coin3D#SoQt|&amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt;]] open source &amp;lt;code&amp;gt;Qt&amp;lt;/code&amp;gt; GUI component toolkit library for &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Add Ons ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides a range of &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s04.html software suggested for use with &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt;].  &lt;br /&gt;
While none of these need to be installed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; to compile and run, they are useful for visualising the resulting simulations.&lt;br /&gt;
&lt;br /&gt;
The following subset is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Cluster]]:&lt;br /&gt;
&lt;br /&gt;
* The [[/DAWN|&amp;lt;code&amp;gt;DAWN&amp;lt;/code&amp;gt;]] postscript renderer to support the DAWN visualisation driver.&lt;br /&gt;
* The [[/HepRApp|&amp;lt;code&amp;gt;HepRApp&amp;lt;/code&amp;gt;]] Browser for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/Java Analysis Studio|&amp;lt;code&amp;gt;Java Analysis Studio&amp;lt;/code&amp;gt;]] (&amp;lt;code&amp;gt;JAS3&amp;lt;/code&amp;gt;), along with the [[/Java Analysis Studio#WIRED4|&amp;lt;code&amp;gt;WIRED4 JAS Plug-IN&amp;lt;/code&amp;gt;]] for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/gMocren|&amp;lt;code&amp;gt;gMocren&amp;lt;/code&amp;gt;]] volume visualiser for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; medical simulations.&lt;br /&gt;
&lt;br /&gt;
== Geant4 Installation ==&lt;br /&gt;
&lt;br /&gt;
; Website : http://geant4.web.cern.ch/geant4/&lt;br /&gt;
; Latest version : 10.0.2 (13 June 2014)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4/geant4.10.00.p02.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the required software has now been installed, and &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; itself can finally be installed.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* There are a number of ways to configure the software before building. Using the &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt; command, each configuration option can be set interactively. Alternatively, the cmake command below configures with the recommended options. &lt;br /&gt;
* The makefile doesn&#039;t support &amp;lt;code&amp;gt;make install prefix&amp;lt;/code&amp;gt;, and so &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; must be used instead, and the files moved after installation.&lt;br /&gt;
&lt;br /&gt;
Installation commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake \&lt;br /&gt;
-DCMAKE_INSTALL_PREFIX=&amp;quot;/unix/pbt/software/dev/geant4.10.02&amp;quot; \&lt;br /&gt;
-DCMAKE_INSTALL_CONFIG_NAME=&amp;quot;Release&amp;quot; \&lt;br /&gt;
-DGEANT4_BUILD_MULTITHREADED=ON \&lt;br /&gt;
-DGEANT4_INSTALL_DATA=ON \&lt;br /&gt;
-DGEANT4_BUILD_EXAMPLES=OFF \&lt;br /&gt;
-DGEANT4_BUILD_TESTS=OFF \&lt;br /&gt;
-DGEANT4_ENABLE_TESTING=OFF \&lt;br /&gt;
-DGEANT4_BUILD_STORE_TRAJECTORY=ON \&lt;br /&gt;
-DGEANT4_BUILD_VERBOSE_CODE=ON \&lt;br /&gt;
-DGEANT4_USE_G3TOG4=ON \&lt;br /&gt;
-DGEANT4_USE_GDML=ON \&lt;br /&gt;
-DGEANT4_USE_INVENTOR=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKDAWN=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKVRML=ON \&lt;br /&gt;
-DGEANT4_USE_OPENGL_X11=ON \&lt;br /&gt;
-DGEANT4_USE_QT=ON \&lt;br /&gt;
-DGEANT4_USE_RAYTRACER_X11=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_CLHEP=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_EXPAT=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_ZLIB=ON \&lt;br /&gt;
-DGEANT4_USE_USOLIDS=OFF \&lt;br /&gt;
-DGEANT4_USE_WT=OFF \&lt;br /&gt;
-DGEANT4_USE_XM=ON \&lt;br /&gt;
-DINVENTOR_INCLUDE_DIR=/unix/pbt/software/dev/Coin-3.1.3/include/ \&lt;br /&gt;
-DINVENTOR_LIBRARY=/unix/pbt/software/dev/Coin-3.1.3/lib/libCoin.so \&lt;br /&gt;
-DINVENTOR_SOXT_INCLUDE_DIR=/unix/pbt/software/dev/SoXt-1.3.0/include/ \&lt;br /&gt;
-DINVENTOR_SOXT_LIBRARY=/unix/pbt/software/dev/SoXt-1.3.0/lib/libSoXt.so \&lt;br /&gt;
-DMOTIF_INCLUDE_DIR=/usr/include \&lt;br /&gt;
-DMOTIF_LIBRARIES=/usr/lib64/libXm.so \&lt;br /&gt;
-DQT_QMAKE_EXECUTABLE=/unix/pbt/software/dev/qt-5.5.1/bin/qmake \&lt;br /&gt;
-DBUILD_SHARED_LIBS=ON \&lt;br /&gt;
-DBUILD_STATIC_LIBS=OFF \&lt;br /&gt;
-DCMAKE_COLOR_MAKEFILE=ON \&lt;br /&gt;
-DCMAKE_USE_RELATIVE_PATHS=OFF \&lt;br /&gt;
-DCMAKE_VERBOSE_MAKEFILE=OFF \&lt;br /&gt;
../../src/geant4.10.02&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
=== Software package tests ===&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 built-in tests ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software includes some system tests, which can be included in the installation command via the options &amp;lt;code&amp;gt;-DGEANT4_BUILD_TESTS=ON -DGEANT4_ENABLE_TESTING=ON&amp;lt;/code&amp;gt;.&lt;br /&gt;
However, these tests are only used for testing of the system, and are not included in the distributed source tarballs, nor supported for use by end-users.&lt;br /&gt;
Therefore, these cannot easily be used for validation of the production system installation.&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 examples ===&lt;br /&gt;
&lt;br /&gt;
One test of the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software after installation is to make sure that all examples can be run and produce the expected results.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The examples can be built at installation time using the command &amp;lt;code&amp;gt;-DGEANT4_BUILD_EXAMPLES=ON&amp;lt;/code&amp;gt;, but this throws up a number of problems because not all installation requirements are met. It is easier to build and run the examples after the installation is complete.&lt;br /&gt;
* Environment variable &amp;lt;code&amp;gt;G4SHARE&amp;lt;/code&amp;gt; is defined in the environment scripts &amp;lt;code&amp;gt;pbt.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pbt-dev.bashrc&amp;lt;/code&amp;gt;, along with the variable &amp;lt;code&amp;gt;G4VERSION&amp;lt;/code&amp;gt;. For the current installation, the location stored in this variable is &amp;lt;code&amp;gt;/unix/pbt/software/dev/share/Geant4-10.0.2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following errors and warnings were seen while configuring examples:&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HepMC&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;Pythia6&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;GCCXML&amp;lt;/code&amp;gt; These packages are optional, but some of the examples are designed to demonstrate the connection with these packages. Note that some filetypes, such as &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt;, do in fact have viewers installed in the PBT environments, but these are not available to the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; system. This what the errors are reporting.&lt;br /&gt;
&lt;br /&gt;
==== Basic examples ====&lt;br /&gt;
&lt;br /&gt;
===== B1 =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -r ${G4SHARE}/examples/basic/B1 . mkdir build cd build cmake ../B1 make ./exampleB1 exampleB1.in | tee exampleB1.new.out grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.out &amp;amp;gt; exampleB1.old.results grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.new.out &amp;amp;gt; exampleB1.new.results diff exampleB1.old.results exampleB1.new.results&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There seem to be significant differences in the simulation results compared to the included &amp;lt;code&amp;gt;exampleB1.out&amp;lt;/code&amp;gt; file.&lt;br /&gt;
The reason for these differences is unclear.&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=181</id>
		<title>Software/Geant4/Installation</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=181"/>
		<updated>2016-06-05T21:03:09Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Geant4 Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installation Of Geant4 And Supporting Packages ==&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive instructions on installing Geant4.  &lt;br /&gt;
This provides an overview of the installation procedure, as well as a list of prerequisites and additional software that need to be installed alongside Geant4.  &lt;br /&gt;
&lt;br /&gt;
In addition, information is given on the installation procedure for this additional software and the location the software is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;environment&amp;lt;/code&amp;gt; described here is the combination of files, folders, settings and user interface that allow users to make use of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; and related software packages for particle beam therapy simulations.&lt;br /&gt;
&lt;br /&gt;
Accessing the environment requires the following:&lt;br /&gt;
* Access to the filesystem and required folders.&lt;br /&gt;
* Terminal access to run simulations.&lt;br /&gt;
* A visualisation engine such as OpenGL on X (&#039;&#039;optional&#039;&#039;).&lt;br /&gt;
* Setting environment variables to point to installed software and scripts.&lt;br /&gt;
&lt;br /&gt;
The order of installation is important, as some packages depend on having the other packages first.&lt;br /&gt;
In some cases, installations will be successful if carried out in the wrong order, but some features will be disabled that should be enabled.&lt;br /&gt;
The order of packages described below is the order in which these packages were installed into the PBT environment.&lt;br /&gt;
&lt;br /&gt;
== Required Software ==&lt;br /&gt;
&lt;br /&gt;
The list of required software is split into 2 categories:&lt;br /&gt;
&lt;br /&gt;
* [[#Prerequisites|Prerequisites]] are those components that are required in order for some part of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; or the resulting simulation visualisations to function correctly;&lt;br /&gt;
* [[#Add Ons|Add Ons]] are optional pieces of software &amp;amp;mdash; normally visualisation software &amp;amp;mdash; that are installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
See the individually linked pages for information on building each of the components that do not ship by default.&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive information on &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s02.html software that must be installed to compile Geant4 itself] and software required in order to &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s03.html compile optional components of Geant4].&lt;br /&gt;
&lt;br /&gt;
These are:&lt;br /&gt;
&lt;br /&gt;
* A C++11 compatible compiler: on Linux, this is [https://gcc.gnu.org &amp;lt;code&amp;gt;GCC&amp;lt;/code&amp;gt;: the GNU Compiler Collection] which is installed by default.&lt;br /&gt;
* [[/CMake|&amp;lt;code&amp;gt;CMake&amp;lt;/code&amp;gt;]] required for building the various &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations through &amp;lt;code&amp;gt;cmake&amp;lt;/code&amp;gt; files.&lt;br /&gt;
* The [[/CLHEP|&amp;lt;code&amp;gt;CLHEP&amp;lt;/code&amp;gt; Class Library]] that provides a range of foundation and utility classes needed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations.&lt;br /&gt;
&lt;br /&gt;
* [https://www.opengl.org &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; headers and libraries] to provide support for &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; graphics (graphics card specific; installed by default on most Operating Systems).&lt;br /&gt;
* [https://en.wikipedia.org/wiki/X_Window_System &amp;lt;code&amp;gt;X11&amp;lt;/code&amp;gt;] headers and libraries to provide support for the &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt;-Window system (installed by default on &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;nix systems&lt;br /&gt;
* [[/Qt|&amp;lt;code&amp;gt;Qt4&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Qt5&amp;lt;/code&amp;gt; headers and libraries]] to provide support for the Qt user interface and visualisation. &lt;br /&gt;
* [[/Xerces-C|&amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; headers and libraries]] compiled against the C++11 standard to provide support for GDML geometry descriptions.&lt;br /&gt;
* [http://www.opengroup.org/openmotif &amp;lt;code&amp;gt;Motif&amp;lt;/code&amp;gt;] and X11 headers and libraries to provide support for the Motif user interface and visualisation (installed by default on Linux)&lt;br /&gt;
* [[/Coin3D|&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;]] for Open Inventor visualisation (&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; is a free implementation of Open Inventor).  This requires the following libraries to be installed:&lt;br /&gt;
** The [[/Coin3D#simage|&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt;]] library with image format loaders and front-ends to common import libraries.  &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; is meant for use with applications which read image files as textures.  &#039;&#039;&#039;&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; must be installed before &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
** The [[/Coin3D#SoXt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source InventorXt library, which is a GUI binding for using Open Inventor with Xt/Motif. &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
** [[/Coin3D#SoQt|&amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt;]] open source &amp;lt;code&amp;gt;Qt&amp;lt;/code&amp;gt; GUI component toolkit library for &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Add Ons ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides a range of &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s04.html software suggested for use with &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt;].  &lt;br /&gt;
While none of these need to be installed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; to compile and run, they are useful for visualising the resulting simulations.&lt;br /&gt;
&lt;br /&gt;
The following subset is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Cluster]]:&lt;br /&gt;
&lt;br /&gt;
* The [[/DAWN|&amp;lt;code&amp;gt;DAWN&amp;lt;/code&amp;gt;]] postscript renderer to support the DAWN visualisation driver.&lt;br /&gt;
* The [[/HepRApp|&amp;lt;code&amp;gt;HepRApp&amp;lt;/code&amp;gt;]] Browser for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/Java Analysis Studio|&amp;lt;code&amp;gt;Java Analysis Studio&amp;lt;/code&amp;gt;]] (&amp;lt;code&amp;gt;JAS3&amp;lt;/code&amp;gt;), along with the [[/Java Analysis Studio#WIRED4|&amp;lt;code&amp;gt;WIRED4 JAS Plug-IN&amp;lt;/code&amp;gt;]] for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/gMocren|&amp;lt;code&amp;gt;gMocren&amp;lt;/code&amp;gt;]] volume visualiser for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; medical simulations.&lt;br /&gt;
&lt;br /&gt;
== Geant4 Installation ==&lt;br /&gt;
&lt;br /&gt;
; Website : http://geant4.web.cern.ch/geant4/&lt;br /&gt;
; Latest version : 10.0.2 (13 June 2014)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4/geant4.10.00.p02.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the required software has now been installed, and &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; itself can finally be installed.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* There are a number of ways to configure the software before building. Using the &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt; command, each configuration option can be set interactively. Alternatively, the cmake command below configures with the recommended options. &lt;br /&gt;
* The makefile doesn&#039;t support &amp;lt;code&amp;gt;make install prefix&amp;lt;/code&amp;gt;, and so &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; must be used instead, and the files moved after installation.&lt;br /&gt;
&lt;br /&gt;
Installation commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake \&lt;br /&gt;
-DCMAKE_INSTALL_PREFIX=&amp;quot;/unix/pbt/software/dev/geant4.10.02&amp;quot; \&lt;br /&gt;
-DCMAKE_INSTALL_CONFIG_NAME=&amp;quot;Release&amp;quot; \&lt;br /&gt;
-DGEANT4_BUILD_MULTITHREADED=ON \&lt;br /&gt;
-DGEANT4_INSTALL_DATA=ON \&lt;br /&gt;
-DGEANT4_BUILD_EXAMPLES=OFF \&lt;br /&gt;
-DGEANT4_BUILD_TESTS=OFF \&lt;br /&gt;
-DGEANT4_ENABLE_TESTING=OFF \&lt;br /&gt;
-DGEANT4_BUILD_STORE_TRAJECTORY=ON \&lt;br /&gt;
-DGEANT4_BUILD_VERBOSE_CODE=ON \&lt;br /&gt;
-DGEANT4_USE_G3TOG4=ON \&lt;br /&gt;
-DGEANT4_USE_GDML=ON \&lt;br /&gt;
-DGEANT4_USE_INVENTOR=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKDAWN=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKVRML=ON \&lt;br /&gt;
-DGEANT4_USE_OPENGL_X11=ON \&lt;br /&gt;
-DGEANT4_USE_QT=ON \&lt;br /&gt;
-DGEANT4_USE_RAYTRACER_X11=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_CLHEP=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_EXPAT=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_ZLIB=OFF \&lt;br /&gt;
-DGEANT4_USE_USOLIDS=OFF \&lt;br /&gt;
-DGEANT4_USE_WT=OFF \&lt;br /&gt;
-DGEANT4_USE_XM=ON \&lt;br /&gt;
-DINVENTOR_INCLUDE_DIR=/unix/pbt/software/dev/Coin-3.1.3/include/ \&lt;br /&gt;
-DINVENTOR_LIBRARY=/unix/pbt/software/dev/Coin-3.1.3/lib/libCoin.so \&lt;br /&gt;
-DINVENTOR_SOXT_INCLUDE_DIR=/unix/pbt/software/dev/SoXt-1.3.0/include/ \&lt;br /&gt;
-DINVENTOR_SOXT_LIBRARY=/unix/pbt/software/dev/SoXt-1.3.0/lib/libSoXt.so \&lt;br /&gt;
-DQT_QMAKE_EXECUTABLE=/unix/pbt/software/dev/qt-5.5.1/bin/qmake \&lt;br /&gt;
-DBUILD_SHARED_LIBS=ON \&lt;br /&gt;
-DBUILD_STATIC_LIBS=OFF \&lt;br /&gt;
-DCMAKE_COLOR_MAKEFILE=ON \&lt;br /&gt;
-DCMAKE_USE_RELATIVE_PATHS=OFF \&lt;br /&gt;
-DCMAKE_VERBOSE_MAKEFILE=OFF \&lt;br /&gt;
../../src/geant4.10.02&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
=== Software package tests ===&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 built-in tests ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software includes some system tests, which can be included in the installation command via the options &amp;lt;code&amp;gt;-DGEANT4_BUILD_TESTS=ON -DGEANT4_ENABLE_TESTING=ON&amp;lt;/code&amp;gt;.&lt;br /&gt;
However, these tests are only used for testing of the system, and are not included in the distributed source tarballs, nor supported for use by end-users.&lt;br /&gt;
Therefore, these cannot easily be used for validation of the production system installation.&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 examples ===&lt;br /&gt;
&lt;br /&gt;
One test of the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software after installation is to make sure that all examples can be run and produce the expected results.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The examples can be built at installation time using the command &amp;lt;code&amp;gt;-DGEANT4_BUILD_EXAMPLES=ON&amp;lt;/code&amp;gt;, but this throws up a number of problems because not all installation requirements are met. It is easier to build and run the examples after the installation is complete.&lt;br /&gt;
* Environment variable &amp;lt;code&amp;gt;G4SHARE&amp;lt;/code&amp;gt; is defined in the environment scripts &amp;lt;code&amp;gt;pbt.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pbt-dev.bashrc&amp;lt;/code&amp;gt;, along with the variable &amp;lt;code&amp;gt;G4VERSION&amp;lt;/code&amp;gt;. For the current installation, the location stored in this variable is &amp;lt;code&amp;gt;/unix/pbt/software/dev/share/Geant4-10.0.2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following errors and warnings were seen while configuring examples:&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HepMC&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;Pythia6&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;GCCXML&amp;lt;/code&amp;gt; These packages are optional, but some of the examples are designed to demonstrate the connection with these packages. Note that some filetypes, such as &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt;, do in fact have viewers installed in the PBT environments, but these are not available to the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; system. This what the errors are reporting.&lt;br /&gt;
&lt;br /&gt;
==== Basic examples ====&lt;br /&gt;
&lt;br /&gt;
===== B1 =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -r ${G4SHARE}/examples/basic/B1 . mkdir build cd build cmake ../B1 make ./exampleB1 exampleB1.in | tee exampleB1.new.out grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.out &amp;amp;gt; exampleB1.old.results grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.new.out &amp;amp;gt; exampleB1.new.results diff exampleB1.old.results exampleB1.new.results&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There seem to be significant differences in the simulation results compared to the included &amp;lt;code&amp;gt;exampleB1.out&amp;lt;/code&amp;gt; file.&lt;br /&gt;
The reason for these differences is unclear.&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=180</id>
		<title>Software/Geant4/Installation</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation&amp;diff=180"/>
		<updated>2016-06-05T21:00:41Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Geant4 Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installation Of Geant4 And Supporting Packages ==&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive instructions on installing Geant4.  &lt;br /&gt;
This provides an overview of the installation procedure, as well as a list of prerequisites and additional software that need to be installed alongside Geant4.  &lt;br /&gt;
&lt;br /&gt;
In addition, information is given on the installation procedure for this additional software and the location the software is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;environment&amp;lt;/code&amp;gt; described here is the combination of files, folders, settings and user interface that allow users to make use of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; and related software packages for particle beam therapy simulations.&lt;br /&gt;
&lt;br /&gt;
Accessing the environment requires the following:&lt;br /&gt;
* Access to the filesystem and required folders.&lt;br /&gt;
* Terminal access to run simulations.&lt;br /&gt;
* A visualisation engine such as OpenGL on X (&#039;&#039;optional&#039;&#039;).&lt;br /&gt;
* Setting environment variables to point to installed software and scripts.&lt;br /&gt;
&lt;br /&gt;
The order of installation is important, as some packages depend on having the other packages first.&lt;br /&gt;
In some cases, installations will be successful if carried out in the wrong order, but some features will be disabled that should be enabled.&lt;br /&gt;
The order of packages described below is the order in which these packages were installed into the PBT environment.&lt;br /&gt;
&lt;br /&gt;
== Required Software ==&lt;br /&gt;
&lt;br /&gt;
The list of required software is split into 2 categories:&lt;br /&gt;
&lt;br /&gt;
* [[#Prerequisites|Prerequisites]] are those components that are required in order for some part of &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; or the resulting simulation visualisations to function correctly;&lt;br /&gt;
* [[#Add Ons|Add Ons]] are optional pieces of software &amp;amp;mdash; normally visualisation software &amp;amp;mdash; that are installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Linux Cluster]].&lt;br /&gt;
&lt;br /&gt;
See the individually linked pages for information on building each of the components that do not ship by default.&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides extensive information on &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s02.html software that must be installed to compile Geant4 itself] and software required in order to &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s03.html compile optional components of Geant4].&lt;br /&gt;
&lt;br /&gt;
These are:&lt;br /&gt;
&lt;br /&gt;
* A C++11 compatible compiler: on Linux, this is [https://gcc.gnu.org &amp;lt;code&amp;gt;GCC&amp;lt;/code&amp;gt;: the GNU Compiler Collection] which is installed by default.&lt;br /&gt;
* [[/CMake|&amp;lt;code&amp;gt;CMake&amp;lt;/code&amp;gt;]] required for building the various &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations through &amp;lt;code&amp;gt;cmake&amp;lt;/code&amp;gt; files.&lt;br /&gt;
* The [[/CLHEP|&amp;lt;code&amp;gt;CLHEP&amp;lt;/code&amp;gt; Class Library]] that provides a range of foundation and utility classes needed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; simulations.&lt;br /&gt;
&lt;br /&gt;
* [https://www.opengl.org &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; headers and libraries] to provide support for &amp;lt;code&amp;gt;OpenGL&amp;lt;/code&amp;gt; graphics (graphics card specific; installed by default on most Operating Systems).&lt;br /&gt;
* [https://en.wikipedia.org/wiki/X_Window_System &amp;lt;code&amp;gt;X11&amp;lt;/code&amp;gt;] headers and libraries to provide support for the &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt;-Window system (installed by default on &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt;nix systems&lt;br /&gt;
* [[/Qt|&amp;lt;code&amp;gt;Qt4&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Qt5&amp;lt;/code&amp;gt; headers and libraries]] to provide support for the Qt user interface and visualisation. &lt;br /&gt;
* [[/Xerces-C|&amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; headers and libraries]] compiled against the C++11 standard to provide support for GDML geometry descriptions.&lt;br /&gt;
* [http://www.opengroup.org/openmotif &amp;lt;code&amp;gt;Motif&amp;lt;/code&amp;gt;] and X11 headers and libraries to provide support for the Motif user interface and visualisation (installed by default on Linux)&lt;br /&gt;
* [[/Coin3D|&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;]] for Open Inventor visualisation (&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; is a free implementation of Open Inventor).  This requires the following libraries to be installed:&lt;br /&gt;
** The [[/Coin3D#simage|&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt;]] library with image format loaders and front-ends to common import libraries.  &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; is meant for use with applications which read image files as textures.  &#039;&#039;&#039;&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; must be installed before &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
** The [[/Coin3D#SoXt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source InventorXt library, which is a GUI binding for using Open Inventor with Xt/Motif. &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
** [[/Coin3D#SoQt|&amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt;]] open source &amp;lt;code&amp;gt;Qt&amp;lt;/code&amp;gt; GUI component toolkit library for &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; must be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Add Ons ===&lt;br /&gt;
&lt;br /&gt;
The [http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/index.html CERN Geant4 Installation Guide] provides a range of &lt;br /&gt;
[http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch01s04.html software suggested for use with &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt;].  &lt;br /&gt;
While none of these need to be installed for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; to compile and run, they are useful for visualising the resulting simulations.&lt;br /&gt;
&lt;br /&gt;
The following subset is installed on the [[Software/Geant4/UCL HEP Cluster|UCL HEP Cluster]]:&lt;br /&gt;
&lt;br /&gt;
* The [[/DAWN|&amp;lt;code&amp;gt;DAWN&amp;lt;/code&amp;gt;]] postscript renderer to support the DAWN visualisation driver.&lt;br /&gt;
* The [[/HepRApp|&amp;lt;code&amp;gt;HepRApp&amp;lt;/code&amp;gt;]] Browser for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/Java Analysis Studio|&amp;lt;code&amp;gt;Java Analysis Studio&amp;lt;/code&amp;gt;]] (&amp;lt;code&amp;gt;JAS3&amp;lt;/code&amp;gt;), along with the [[/Java Analysis Studio#WIRED4|&amp;lt;code&amp;gt;WIRED4 JAS Plug-IN&amp;lt;/code&amp;gt;]] for use with the [http://www.slac.stanford.edu/~perl/heprep/ HepRep] visualisation driver.&lt;br /&gt;
* The [[/gMocren|&amp;lt;code&amp;gt;gMocren&amp;lt;/code&amp;gt;]] volume visualiser for &amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; medical simulations.&lt;br /&gt;
&lt;br /&gt;
== Geant4 Installation ==&lt;br /&gt;
&lt;br /&gt;
; Website : http://geant4.web.cern.ch/geant4/&lt;br /&gt;
; Latest version : 10.0.2 (13 June 2014)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4/geant4.10.00.p02.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All the required software has now been installed, and &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; itself can finally be installed.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* There are a number of ways to configure the software before building. Using the &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt; command, each configuration option can be set interactively. Alternatively, the cmake command below configures with the recommended options. &lt;br /&gt;
* The makefile doesn&#039;t support &amp;lt;code&amp;gt;make install prefix&amp;lt;/code&amp;gt;, and so &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; must be used instead, and the files moved after installation.&lt;br /&gt;
&lt;br /&gt;
Installation commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake \&lt;br /&gt;
-DCMAKE_INSTALL_PREFIX=&amp;quot;/unix/pbt/software/dev/geant4.10.02&amp;quot; \&lt;br /&gt;
-DCMAKE_INSTALL_CONFIG_NAME=&amp;quot;Release&amp;quot; \&lt;br /&gt;
-DGEANT4_BUILD_MULTITHREADED=ON \&lt;br /&gt;
-DGEANT4_INSTALL_DATA=ON \&lt;br /&gt;
-DGEANT4_BUILD_EXAMPLES=OFF \&lt;br /&gt;
-DGEANT4_BUILD_TESTS=OFF \&lt;br /&gt;
-DGEANT4_ENABLE_TESTING=OFF \&lt;br /&gt;
-DGEANT4_BUILD_STORE_TRAJECTORY=ON \&lt;br /&gt;
-DGEANT4_BUILD_VERBOSE_CODE=ON \&lt;br /&gt;
-DGEANT4_USE_G3TOG4=ON \&lt;br /&gt;
-DGEANT4_USE_GDML=ON \&lt;br /&gt;
-DGEANT4_USE_INVENTOR=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKDAWN=ON \&lt;br /&gt;
-DGEANT4_USE_NETWORKVRML=ON \&lt;br /&gt;
-DGEANT4_USE_OPENGL_X11=ON \&lt;br /&gt;
-DGEANT4_USE_QT=ON \&lt;br /&gt;
-DGEANT4_USE_RAYTRACER_X11=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_CLHEP=OFF \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_EXPAT=ON \&lt;br /&gt;
-DGEANT4_USE_SYSTEM_ZLIB=OFF \&lt;br /&gt;
-DGEANT4_USE_USOLIDS=OFF \&lt;br /&gt;
-DGEANT4_USE_WT=OFF \&lt;br /&gt;
-DGEANT4_USE_XM=ON \&lt;br /&gt;
-DINVENTOR_INCLUDE_DIR=/unix/pbt/software/dev/Coin-3.1.3/include/ \&lt;br /&gt;
-DINVENTOR_LIBRARY=/unix/pbt/software/dev/Coin-3.1.3/lib/libCoin.so \&lt;br /&gt;
-DINVENTOR_SOXT_INCLUDE_DIR=/unix/pbt/software/dev/SoXt-1.3.0/include/ \&lt;br /&gt;
-DINVENTOR_SOXT_LIBRARY=/unix/pbt/software/dev/SoXt-1.3.0/lib/libSoXt.so \&lt;br /&gt;
-DQT_QMAKE_EXECUTABLE=/unix/pbt/software/dev/qt-5.5.1/bin/qmake \&lt;br /&gt;
-DBUILD_SHARED_LIBS=ON \&lt;br /&gt;
-DBUILD_STATIC_LIBS=OFF \&lt;br /&gt;
-DCMAKE_COLOR_MAKEFILE=ON \&lt;br /&gt;
-DCMAKE_USE_RELATIVE_PATHS=OFF \&lt;br /&gt;
-DCMAKE_VERBOSE_MAKEFILE=OFF \&lt;br /&gt;
../../src/geant4.10.02&lt;br /&gt;
&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
=== Software package tests ===&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 built-in tests ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software includes some system tests, which can be included in the installation command via the options &amp;lt;code&amp;gt;-DGEANT4_BUILD_TESTS=ON -DGEANT4_ENABLE_TESTING=ON&amp;lt;/code&amp;gt;.&lt;br /&gt;
However, these tests are only used for testing of the system, and are not included in the distributed source tarballs, nor supported for use by end-users.&lt;br /&gt;
Therefore, these cannot easily be used for validation of the production system installation.&lt;br /&gt;
&lt;br /&gt;
=== GEANT4 examples ===&lt;br /&gt;
&lt;br /&gt;
One test of the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; software after installation is to make sure that all examples can be run and produce the expected results.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The examples can be built at installation time using the command &amp;lt;code&amp;gt;-DGEANT4_BUILD_EXAMPLES=ON&amp;lt;/code&amp;gt;, but this throws up a number of problems because not all installation requirements are met. It is easier to build and run the examples after the installation is complete.&lt;br /&gt;
* Environment variable &amp;lt;code&amp;gt;G4SHARE&amp;lt;/code&amp;gt; is defined in the environment scripts &amp;lt;code&amp;gt;pbt.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pbt-dev.bashrc&amp;lt;/code&amp;gt;, along with the variable &amp;lt;code&amp;gt;G4VERSION&amp;lt;/code&amp;gt;. For the current installation, the location stored in this variable is &amp;lt;code&amp;gt;/unix/pbt/software/dev/share/Geant4-10.0.2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following errors and warnings were seen while configuring examples:&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;HepMC&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;Pythia6&amp;lt;/code&amp;gt; package&lt;br /&gt;
* Cannot find &amp;lt;code&amp;gt;GCCXML&amp;lt;/code&amp;gt; These packages are optional, but some of the examples are designed to demonstrate the connection with these packages. Note that some filetypes, such as &amp;lt;code&amp;gt;AIDA&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;HBOOK&amp;lt;/code&amp;gt;, do in fact have viewers installed in the PBT environments, but these are not available to the &amp;lt;code&amp;gt;GEANT4&amp;lt;/code&amp;gt; system. This what the errors are reporting.&lt;br /&gt;
&lt;br /&gt;
==== Basic examples ====&lt;br /&gt;
&lt;br /&gt;
===== B1 =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -r ${G4SHARE}/examples/basic/B1 . mkdir build cd build cmake ../B1 make ./exampleB1 exampleB1.in | tee exampleB1.new.out grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.out &amp;amp;gt; exampleB1.old.results grep -B0 -A3 &amp;amp;quot;End of Global Run&amp;amp;quot; exampleB1.new.out &amp;amp;gt; exampleB1.new.results diff exampleB1.old.results exampleB1.new.results&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There seem to be significant differences in the simulation results compared to the included &amp;lt;code&amp;gt;exampleB1.out&amp;lt;/code&amp;gt; file.&lt;br /&gt;
The reason for these differences is unclear.&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Coin3D&amp;diff=179</id>
		<title>Software/Geant4/Installation/Coin3D</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Coin3D&amp;diff=179"/>
		<updated>2016-06-05T20:56:11Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Fix Errors In Coin3D Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; is a high-level, retained-mode toolkit for effective 3D graphics development. &lt;br /&gt;
It is API compatible with Open Inventor 2.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; requires the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; headers and libraries in order to provide support for [https://en.wikipedia.org/wiki/Open_Inventor Open Inventor] visualisations.&lt;br /&gt;
&lt;br /&gt;
In order to function correctly, &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; requires the following additional components to be installed:&lt;br /&gt;
&lt;br /&gt;
* The [[#simage|&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt;]] library with image format loaders and front-ends to common import libraries. &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; is meant for use with applications which read image files as textures.  &#039;&#039;&#039;&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; must be installed before &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
* The [[#SoXt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source InventorXt library, which is a GUI binding for using Open Inventor with Xt/Motif. &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; has been developed for use with &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; needs to be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
* [[#SoQt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source &amp;lt;code&amp;gt;Qt&amp;lt;/code&amp;gt; GUI component toolkit library for &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; needs to be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/coin/&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads&lt;br /&gt;
; Installed version : 3.1.3 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/Coin3d-3.1.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/simage&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/simage-1.7.0.tar.gz&lt;br /&gt;
; Installed version : 1.7.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/simage-1.7.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/soxt&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/SoXt-1.3.0.tar.gz&lt;br /&gt;
; Installed version : 1.3.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/SoXt-1.3.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/soqt&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/SoQt-1.5.0.tar.gz&lt;br /&gt;
; Installed version : 1.5.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/SoXt-1.5.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation Notes ==&lt;br /&gt;
&lt;br /&gt;
The [https://bitbucket.org/Coin3D/coin/wiki/How%20to%20build%20Coin3D%20and%20SIM%20Voleon &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; documentation] provides some useful instructions on building and installing &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For installation, &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and the required libraries do not support installation into a sandbox directory (i.e. there are no options &amp;lt;code&amp;gt;prefix&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; defined for command &amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;) and must be given the installation directory with the &amp;lt;code&amp;gt;--prefix&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
As such, to recompile &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; for different target directories, the &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; script must be rerun with a modified &amp;lt;code&amp;gt;--prefix /path/to/dest&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
This has to be managed manually as can be seen in the installation commands below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and each of the components contain a number of programming errors.  &lt;br /&gt;
Most can be ignored and skipped over by adding the compiler flag &amp;lt;code&amp;gt;-fpermissive&amp;lt;/code&amp;gt; at the configuration step.&lt;br /&gt;
&lt;br /&gt;
However, there is an error in the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source code that needs to be fixed before the code will compile: details on how to do so are given below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; may require the following modifications to install correctly:&lt;br /&gt;
&lt;br /&gt;
* The configuration tool cannot find the libraries it needs unless the environment variable LD_RUN_PATH is manually set to include &amp;lt;code&amp;gt;/unix/pbt/software/prod-sl6/lib&amp;lt;/code&amp;gt; (set automatically by the environment scripts on the [[/Software/Geant4/UCL HEP Cluster|UCL HEP Cluster]]).&lt;br /&gt;
* For older versions of SoXt and SoQt, part of the code required for compilation was removed to a separate project called &amp;lt;code&amp;gt;SoGUI&amp;lt;/code&amp;gt;.  This GUI code needed to be incorporated into the library code before compilation.  The &amp;lt;code&amp;gt;SoGUI&amp;lt;/code&amp;gt; source code is available in a separate tarball, &amp;lt;code&amp;gt;src/geant4- prerequisites/coin3d/sogui-2011-12-03.tar.gz&amp;lt;/code&amp;gt;.  The more recent versions of the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; components now incorporate this code by default.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
When downloading software, the downloaded tarball (or other &amp;lt;code&amp;gt;Zip&amp;lt;/code&amp;gt; archive) should be placed in an appropriately named directory in &amp;lt;code&amp;gt;/unix/pbt/software/src&amp;lt;/code&amp;gt;: the instructions below assume that the directory is &amp;lt;code&amp;gt;/unix/pbt/software/src/geant4-prerequisites/coin3d&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The source code should then be extracted into a suitable subdirectory in &amp;lt;code&amp;gt;/unix/pbt/software/build&amp;lt;/code&amp;gt;.  &lt;br /&gt;
The extracted source code directory can only be deleted once the software has been built and installed.&lt;br /&gt;
&lt;br /&gt;
Instructions are given for compiling each component of &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;: &#039;&#039;&#039;these must be followed in order&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Source Code Extraction ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/src/geant4-prerequisites/coin3d&lt;br /&gt;
tar -xvz -f simage-1.7.0.tar.gz&lt;br /&gt;
tar -xvz -f Coin-3.1.3.tar.gz&lt;br /&gt;
tar -xvz -f SoXt-1.3.0.tar.gz&lt;br /&gt;
tar -xvz -f SoQt-1.5.0.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fix Errors In &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; Code ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and each of the components contain a number of programming errors.  &lt;br /&gt;
Most can be ignored and skipped over by adding the compiler flag &amp;lt;code&amp;gt;-fpermissive&amp;lt;/code&amp;gt; at the configuration step.&lt;br /&gt;
&lt;br /&gt;
However, there is an error in the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source code that needs to be fixed before the code will compile:&lt;br /&gt;
&lt;br /&gt;
* In the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source directory, find the directory &amp;lt;code&amp;gt;src/fonts/&amp;lt;/code&amp;gt; and open the file &amp;lt;code&amp;gt;src/fonts/freetype.cpp&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Insert the following two lines in &amp;lt;code&amp;gt;src/fonts/freetype.cpp&amp;lt;/code&amp;gt; before the line &amp;lt;code&amp;gt;#include fonts/freetype.h&amp;lt;/code&amp;gt;:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#include &amp;lt;cstdlib&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#include &amp;lt;cmath&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code should now compile successfully.&lt;br /&gt;
&lt;br /&gt;
=== Further modifications to enable compiling Geant4 with OpenInventor ===&lt;br /&gt;
&lt;br /&gt;
Geant4 compilation with OpenInventor enabled will fail unless an additional modification is made to the Coin3D source code.&lt;br /&gt;
&lt;br /&gt;
Open the file &amp;lt;code&amp;gt;/include/Inventor/SbBasic.h&amp;lt;/code&amp;gt; inside the Coin3D source, and add the following line below &amp;lt;code&amp;gt;#include &amp;lt;Inventor/C/basic.h&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;Inventor/C/errors/debugerror.h&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Build And Install ===&lt;br /&gt;
&lt;br /&gt;
It is possible to build for the &#039;&#039;&#039;Production&#039;&#039;&#039; environment without deleting the &amp;lt;code&amp;gt;Coin3D build&amp;lt;/code&amp;gt; directory created for the &#039;&#039;&#039;Development&#039;&#039;&#039; installation, meaning that significant time is saved when running &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;.  &lt;br /&gt;
However, it isn&#039;t recommended to do so as the &#039;&#039;&#039;Production&#039;&#039;&#039; installation ends up referencing components within &amp;lt;code&amp;gt;/unix/pbt/software/dev&amp;lt;/code&amp;gt; which is not desirable as the two environments are no longer independent.  &lt;br /&gt;
As such, these instructions assume one is building from scratch for each environment: to do so, make sure that the &amp;lt;code&amp;gt;build/coin3d&amp;lt;/code&amp;gt; directory is deleted before recreating it for the subsequent build and install.&lt;br /&gt;
&lt;br /&gt;
Also, although it is possible to install straight to the &#039;&#039;&#039;Production&#039;&#039;&#039; environment, it is highly discouraged to do so without first compiling a &#039;&#039;&#039;Development&#039;&#039;&#039; version. &lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/simage-1.7.0&lt;br /&gt;
cd coin3d/simage-1.7.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/simage-1.7.0/configure --prefix /unix/pbt/software/dev/simage-1.7.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/Coin-3.1.3&lt;br /&gt;
cd coin3d/Coin-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/Coin-3.1.3/configure --prefix /unix/pbt/software/dev/Coin-3.1.3 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoXt-1.3.0&lt;br /&gt;
cd coin3d/SoXt-1.3.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoXt-1.3.0/configure --prefix /unix/pbt/software/dev/SoXt-1.3.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoQt-1.5.0&lt;br /&gt;
cd coin3d/SoQt-1.5.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoQt-1.5.0/configure --prefix /unix/pbt/software/dev/SoQt-1.5.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/simage-1.7.0&lt;br /&gt;
cd coin3d/simage-1.7.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/simage-1.7.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/Coin-3.1.3&lt;br /&gt;
cd coin3d/Coin-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/Coin-3.1.3/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoXt-1.3.0&lt;br /&gt;
cd coin3d/SoXt-1.3.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoXt-1.3.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoQt-1.5.0&lt;br /&gt;
cd coin3d/SoQt-1.5.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoQt-1.5.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Coin3D&amp;diff=178</id>
		<title>Software/Geant4/Installation/Coin3D</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Coin3D&amp;diff=178"/>
		<updated>2016-06-05T20:46:39Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; is a high-level, retained-mode toolkit for effective 3D graphics development. &lt;br /&gt;
It is API compatible with Open Inventor 2.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; requires the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; headers and libraries in order to provide support for [https://en.wikipedia.org/wiki/Open_Inventor Open Inventor] visualisations.&lt;br /&gt;
&lt;br /&gt;
In order to function correctly, &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; requires the following additional components to be installed:&lt;br /&gt;
&lt;br /&gt;
* The [[#simage|&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt;]] library with image format loaders and front-ends to common import libraries. &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; is meant for use with applications which read image files as textures.  &#039;&#039;&#039;&amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; must be installed before &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
* The [[#SoXt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source InventorXt library, which is a GUI binding for using Open Inventor with Xt/Motif. &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; has been developed for use with &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; needs to be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
* [[#SoQt|&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt;]] open source &amp;lt;code&amp;gt;Qt&amp;lt;/code&amp;gt; GUI component toolkit library for &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.  &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; needs to be installed after &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/coin/&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads&lt;br /&gt;
; Installed version : 3.1.3 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/Coin3d-3.1.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/simage&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/simage-1.7.0.tar.gz&lt;br /&gt;
; Installed version : 1.7.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/simage-1.7.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/soxt&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/SoXt-1.3.0.tar.gz&lt;br /&gt;
; Installed version : 1.3.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/SoXt-1.3.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
; Website : https://bitbucket.org/Coin3D/soqt&lt;br /&gt;
; Source URL : https://bitbucket.org/Coin3D/coin/downloads/SoQt-1.5.0.tar.gz&lt;br /&gt;
; Installed version : 1.5.0 (13 February 2012)&lt;br /&gt;
; Source tarball : &amp;lt;code&amp;gt;src/geant4-prerequisites/coin3d/SoXt-1.5.0.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation Notes ==&lt;br /&gt;
&lt;br /&gt;
The [https://bitbucket.org/Coin3D/coin/wiki/How%20to%20build%20Coin3D%20and%20SIM%20Voleon &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; documentation] provides some useful instructions on building and installing &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For installation, &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and the required libraries do not support installation into a sandbox directory (i.e. there are no options &amp;lt;code&amp;gt;prefix&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; defined for command &amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;) and must be given the installation directory with the &amp;lt;code&amp;gt;--prefix&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
As such, to recompile &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; for different target directories, the &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; script must be rerun with a modified &amp;lt;code&amp;gt;--prefix /path/to/dest&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
This has to be managed manually as can be seen in the installation commands below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and each of the components contain a number of programming errors.  &lt;br /&gt;
Most can be ignored and skipped over by adding the compiler flag &amp;lt;code&amp;gt;-fpermissive&amp;lt;/code&amp;gt; at the configuration step.&lt;br /&gt;
&lt;br /&gt;
However, there is an error in the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source code that needs to be fixed before the code will compile: details on how to do so are given below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; may require the following modifications to install correctly:&lt;br /&gt;
&lt;br /&gt;
* The configuration tool cannot find the libraries it needs unless the environment variable LD_RUN_PATH is manually set to include &amp;lt;code&amp;gt;/unix/pbt/software/prod-sl6/lib&amp;lt;/code&amp;gt; (set automatically by the environment scripts on the [[/Software/Geant4/UCL HEP Cluster|UCL HEP Cluster]]).&lt;br /&gt;
* For older versions of SoXt and SoQt, part of the code required for compilation was removed to a separate project called &amp;lt;code&amp;gt;SoGUI&amp;lt;/code&amp;gt;.  This GUI code needed to be incorporated into the library code before compilation.  The &amp;lt;code&amp;gt;SoGUI&amp;lt;/code&amp;gt; source code is available in a separate tarball, &amp;lt;code&amp;gt;src/geant4- prerequisites/coin3d/sogui-2011-12-03.tar.gz&amp;lt;/code&amp;gt;.  The more recent versions of the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; components now incorporate this code by default.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
When downloading software, the downloaded tarball (or other &amp;lt;code&amp;gt;Zip&amp;lt;/code&amp;gt; archive) should be placed in an appropriately named directory in &amp;lt;code&amp;gt;/unix/pbt/software/src&amp;lt;/code&amp;gt;: the instructions below assume that the directory is &amp;lt;code&amp;gt;/unix/pbt/software/src/geant4-prerequisites/coin3d&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The source code should then be extracted into a suitable subdirectory in &amp;lt;code&amp;gt;/unix/pbt/software/build&amp;lt;/code&amp;gt;.  &lt;br /&gt;
The extracted source code directory can only be deleted once the software has been built and installed.&lt;br /&gt;
&lt;br /&gt;
Instructions are given for compiling each component of &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt;: &#039;&#039;&#039;these must be followed in order&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Source Code Extraction ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/src/geant4-prerequisites/coin3d&lt;br /&gt;
tar -xvz -f simage-1.7.0.tar.gz&lt;br /&gt;
tar -xvz -f Coin-3.1.3.tar.gz&lt;br /&gt;
tar -xvz -f SoXt-1.3.0.tar.gz&lt;br /&gt;
tar -xvz -f SoQt-1.5.0.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fix Errors In &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; Code ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; and each of the components contain a number of programming errors.  &lt;br /&gt;
Most can be ignored and skipped over by adding the compiler flag &amp;lt;code&amp;gt;-fpermissive&amp;lt;/code&amp;gt; at the configuration step.&lt;br /&gt;
&lt;br /&gt;
However, there is an error in the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source code that needs to be fixed before the code will compile:&lt;br /&gt;
&lt;br /&gt;
* In the &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; source directory, find the directory &amp;lt;code&amp;gt;src/fonts/&amp;lt;/code&amp;gt; and open the file &amp;lt;code&amp;gt;src/fonts/freetype.cpp&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Insert the following two lines in &amp;lt;code&amp;gt;src/fonts/freetype.cpp&amp;lt;/code&amp;gt; before the line &amp;lt;code&amp;gt;#include fonts/freetype.h&amp;lt;/code&amp;gt;:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#include &amp;lt;cstdlib&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#include &amp;lt;cmath&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The code should now compile successfully.&lt;br /&gt;
&lt;br /&gt;
=== Build And Install ===&lt;br /&gt;
&lt;br /&gt;
It is possible to build for the &#039;&#039;&#039;Production&#039;&#039;&#039; environment without deleting the &amp;lt;code&amp;gt;Coin3D build&amp;lt;/code&amp;gt; directory created for the &#039;&#039;&#039;Development&#039;&#039;&#039; installation, meaning that significant time is saved when running &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;.  &lt;br /&gt;
However, it isn&#039;t recommended to do so as the &#039;&#039;&#039;Production&#039;&#039;&#039; installation ends up referencing components within &amp;lt;code&amp;gt;/unix/pbt/software/dev&amp;lt;/code&amp;gt; which is not desirable as the two environments are no longer independent.  &lt;br /&gt;
As such, these instructions assume one is building from scratch for each environment: to do so, make sure that the &amp;lt;code&amp;gt;build/coin3d&amp;lt;/code&amp;gt; directory is deleted before recreating it for the subsequent build and install.&lt;br /&gt;
&lt;br /&gt;
Also, although it is possible to install straight to the &#039;&#039;&#039;Production&#039;&#039;&#039; environment, it is highly discouraged to do so without first compiling a &#039;&#039;&#039;Development&#039;&#039;&#039; version. &lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/simage-1.7.0&lt;br /&gt;
cd coin3d/simage-1.7.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/simage-1.7.0/configure --prefix /unix/pbt/software/dev/simage-1.7.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/Coin-3.1.3&lt;br /&gt;
cd coin3d/Coin-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/Coin-3.1.3/configure --prefix /unix/pbt/software/dev/Coin-3.1.3 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoXt-1.3.0&lt;br /&gt;
cd coin3d/SoXt-1.3.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoXt-1.3.0/configure --prefix /unix/pbt/software/dev/SoXt-1.3.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Development Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoQt-1.5.0&lt;br /&gt;
cd coin3d/SoQt-1.5.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoQt-1.5.0/configure --prefix /unix/pbt/software/dev/SoQt-1.5.0 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;simage&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/simage-1.7.0&lt;br /&gt;
cd coin3d/simage-1.7.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/simage-1.7.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;Coin3D&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/Coin-3.1.3&lt;br /&gt;
cd coin3d/Coin-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/Coin-3.1.3/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;SoXt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoXt-1.3.0&lt;br /&gt;
cd coin3d/SoXt-1.3.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoXt-1.3.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment: &amp;lt;code&amp;gt;SoQt&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv coin3d/SoQt-1.5.0&lt;br /&gt;
cd coin3d/SoQt-1.5.0&lt;br /&gt;
../../../src/geant4-prerequisites/coin3d/SoQt-1.5.0/configure --prefix /unix/pbt/software/prod-sl6 CXXFLAGS=-fpermissive&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Xerces-C&amp;diff=177</id>
		<title>Software/Geant4/Installation/Xerces-C</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Xerces-C&amp;diff=177"/>
		<updated>2016-06-05T20:43:49Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Production Environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; requires the &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; headers and libraries compiled against the C++11 standard in order to provide support for GDML geometry descriptions.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&lt;br /&gt;
; Website : http://xerces.apache.org/xerces-c/&lt;br /&gt;
; Source URL : http://www.apache.org/dist/xerces/c/3/sources/&lt;br /&gt;
; Installed version : 3.1.3 (17 Feb 2016)&lt;br /&gt;
; Source code : &amp;lt;code&amp;gt;src/geant4-prerequisites/xerces-c/xerces-c-3.1.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation Notes ==&lt;br /&gt;
&lt;br /&gt;
The [http://xerces.apache.org/xerces-c/ Xerces-C++ website] provides some useful instructions on [http://xerces.apache.org/xerces-c/build-3.html Building and Installing Xerces-C++].&lt;br /&gt;
&lt;br /&gt;
For installation, &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; does not support installation into a sandbox directory (i.e. there are no options &amp;lt;code&amp;gt;prefix&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; defined for command &amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;) and must be given the installation directory with the &amp;lt;code&amp;gt;-prefix&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
As such, to recompile &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; for different target directories, the &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; script must be rerun with a modified &amp;lt;code&amp;gt;-prefix /path/to/dest&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
This has to be managed manually as can be seen in the installation commands below.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
When downloading software, the downloaded tarball (or other &amp;lt;code&amp;gt;Zip&amp;lt;/code&amp;gt; archive) should be placed in an appropriately named directory in &amp;lt;code&amp;gt;/unix/pbt/software/src&amp;lt;/code&amp;gt;: the instructions below assume that the directory is &amp;lt;code&amp;gt;/unix/pbt/software/src/geant4-prerequisites/xerces-c&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The source code should then be extracted into a suitable subdirectory in &amp;lt;code&amp;gt;/unix/pbt/software/build&amp;lt;/code&amp;gt;.  &lt;br /&gt;
The extracted source code directory can only be deleted once the software has been built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Source Code Extraction ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/src/geant4-prerequisites/xerces-c&lt;br /&gt;
tar -xvz -f xerces-c-3.1.3.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Build And Install ===&lt;br /&gt;
&lt;br /&gt;
It is possible to build for the &#039;&#039;&#039;Production&#039;&#039;&#039; environment without deleting the &amp;lt;code&amp;gt;Xerces-C build&amp;lt;/code&amp;gt; directory created for the &#039;&#039;&#039;Development&#039;&#039;&#039; installation, meaning that significant time is saved when running &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;.  &lt;br /&gt;
However, it isn&#039;t recommended to do so as the &#039;&#039;&#039;Production&#039;&#039;&#039; installation ends up referencing components within &amp;lt;code&amp;gt;/unix/pbt/software/dev&amp;lt;/code&amp;gt; which is not desirable as the two environments are no longer independent.  &lt;br /&gt;
As such, these instructions assume one is building from scratch for each environment: to do so, make sure that the &amp;lt;code&amp;gt;build/qt&amp;lt;/code&amp;gt; directory is deleted before recreating it for the subsequent build and install.&lt;br /&gt;
&lt;br /&gt;
Also, although it is possible to install straight to the &#039;&#039;&#039;Production&#039;&#039;&#039; environment, it is highly discouraged to do so without first compiling a &#039;&#039;&#039;Development&#039;&#039;&#039; version. &lt;br /&gt;
&lt;br /&gt;
==== Development Environment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv xerces-c/xerces-c-3.1.3&lt;br /&gt;
cd xerces-c/xerces-c-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/xerces-c/xerces-c/configure --prefix /unix/pbt/software/dev/xerces-c-3.1.3&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv xerces-c/xerces-c-3.1.3&lt;br /&gt;
cd xerces-c/xerces-c-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/xerces-c/xerces-c/configure --prefix /unix/pbt/software/prod-sl6&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Xerces-C&amp;diff=176</id>
		<title>Software/Geant4/Installation/Xerces-C</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=Software/Geant4/Installation/Xerces-C&amp;diff=176"/>
		<updated>2016-06-05T20:43:40Z</updated>

		<summary type="html">&lt;p&gt;LukasKikuchi: /* Development Environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Geant4&amp;lt;/code&amp;gt; requires the &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; headers and libraries compiled against the C++11 standard in order to provide support for GDML geometry descriptions.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&lt;br /&gt;
; Website : http://xerces.apache.org/xerces-c/&lt;br /&gt;
; Source URL : http://www.apache.org/dist/xerces/c/3/sources/&lt;br /&gt;
; Installed version : 3.1.3 (17 Feb 2016)&lt;br /&gt;
; Source code : &amp;lt;code&amp;gt;src/geant4-prerequisites/xerces-c/xerces-c-3.1.3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation Notes ==&lt;br /&gt;
&lt;br /&gt;
The [http://xerces.apache.org/xerces-c/ Xerces-C++ website] provides some useful instructions on [http://xerces.apache.org/xerces-c/build-3.html Building and Installing Xerces-C++].&lt;br /&gt;
&lt;br /&gt;
For installation, &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; does not support installation into a sandbox directory (i.e. there are no options &amp;lt;code&amp;gt;prefix&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DESTDIR&amp;lt;/code&amp;gt; defined for command &amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt;) and must be given the installation directory with the &amp;lt;code&amp;gt;-prefix&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
As such, to recompile &amp;lt;code&amp;gt;Xerces-C++&amp;lt;/code&amp;gt; for different target directories, the &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; script must be rerun with a modified &amp;lt;code&amp;gt;-prefix /path/to/dest&amp;lt;/code&amp;gt; option.  &lt;br /&gt;
This has to be managed manually as can be seen in the installation commands below.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
When downloading software, the downloaded tarball (or other &amp;lt;code&amp;gt;Zip&amp;lt;/code&amp;gt; archive) should be placed in an appropriately named directory in &amp;lt;code&amp;gt;/unix/pbt/software/src&amp;lt;/code&amp;gt;: the instructions below assume that the directory is &amp;lt;code&amp;gt;/unix/pbt/software/src/geant4-prerequisites/xerces-c&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The source code should then be extracted into a suitable subdirectory in &amp;lt;code&amp;gt;/unix/pbt/software/build&amp;lt;/code&amp;gt;.  &lt;br /&gt;
The extracted source code directory can only be deleted once the software has been built and installed.&lt;br /&gt;
&lt;br /&gt;
=== Source Code Extraction ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/src/geant4-prerequisites/xerces-c&lt;br /&gt;
tar -xvz -f xerces-c-3.1.3.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Build And Install ===&lt;br /&gt;
&lt;br /&gt;
It is possible to build for the &#039;&#039;&#039;Production&#039;&#039;&#039; environment without deleting the &amp;lt;code&amp;gt;Xerces-C build&amp;lt;/code&amp;gt; directory created for the &#039;&#039;&#039;Development&#039;&#039;&#039; installation, meaning that significant time is saved when running &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;.  &lt;br /&gt;
However, it isn&#039;t recommended to do so as the &#039;&#039;&#039;Production&#039;&#039;&#039; installation ends up referencing components within &amp;lt;code&amp;gt;/unix/pbt/software/dev&amp;lt;/code&amp;gt; which is not desirable as the two environments are no longer independent.  &lt;br /&gt;
As such, these instructions assume one is building from scratch for each environment: to do so, make sure that the &amp;lt;code&amp;gt;build/qt&amp;lt;/code&amp;gt; directory is deleted before recreating it for the subsequent build and install.&lt;br /&gt;
&lt;br /&gt;
Also, although it is possible to install straight to the &#039;&#039;&#039;Production&#039;&#039;&#039; environment, it is highly discouraged to do so without first compiling a &#039;&#039;&#039;Development&#039;&#039;&#039; version. &lt;br /&gt;
&lt;br /&gt;
==== Development Environment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv xerces-c/xerces-c-3.1.3&lt;br /&gt;
cd xerces-c/xerces-c-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/xerces-c/xerces-c/configure --prefix /unix/pbt/software/dev/xerces-c-3.1.3&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Production Environment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /unix/pbt/software/build&lt;br /&gt;
mkdir -pv xerces-c/xerces-c-3.1.3&lt;br /&gt;
cd xerces-c/xerces-c-3.1.3&lt;br /&gt;
../../../src/geant4-prerequisites/xerces-c/xerces-c/configure -prefix /unix/pbt/software/prod-sl6&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>LukasKikuchi</name></author>
	</entry>
</feed>