Difference between revisions of "Kyle and Dan Build Notes"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 1: Line 1:
-------------------------------------------------------------------------------------------------------
+
 
CLHEP SETUP
+
<b>CLHEP SETUP</b>
  
 
Download CLHEP - good
 
Download CLHEP - good
Line 14: Line 14:
  
 
export CLHEPROOT="/net/home/kyle/CLAS12/Sim12/CLHEP" - good
 
export CLHEPROOT="/net/home/kyle/CLAS12/Sim12/CLHEP" - good
---------------------------------------------------------------------------------------------------------
+
 
  
 
 
  
  
 
+
                                 <b>XERCES-C SETUP</b>
---------------------------------------------------------------------------------------------------------
 
                                 XERCES-C SETUP
 
  
 
Download XERCES-C - good
 
Download XERCES-C - good
Line 56: Line 54:
 
./runConfigure -plinux -cgcc -xg++ - good
 
./runConfigure -plinux -cgcc -xg++ - good
 
make - good
 
make - good
----------------------------------------------------------------------------------------------------
+
 
  
 
 
Line 62: Line 60:
  
  
-----------------------------------------------------------------------------------------------------
+
                               <b>DAWN</b>
                               DAWN
 
  
 
extracted and made
 
extracted and made
-----------------------------------------------------------------------------------------------------
+
 
 
 
  
 
+
                               <b>GEANT4</b>
----------------------------------------------------------------------------------------------------
 
                               GEANT4
 
  
 
Downloaded and extracted geant4 and data files
 
Downloaded and extracted geant4 and data files
Line 88: Line 83:
 
CLHEP_LIB=/net/home/kyle/CLAS12/Sim12/CLHEP/lib
 
CLHEP_LIB=/net/home/kyle/CLAS12/Sim12/CLHEP/lib
  
----------------------------------------------------------------------------------------------------
 
  
 
  
  
------------------------------------------------------------------------------
+
 
                               Evio
+
                               <b>Evio</b>
  
 
Download site no longer active
 
Download site no longer active
Line 103: Line 96:
  
 
export EVIOROOT="/net/home/kyle/CLAS12/Sim12/evio"
 
export EVIOROOT="/net/home/kyle/CLAS12/Sim12/evio"
-----------------------------------------------------------------------------
 
  
 
  
  
 
  
------------------------------------------------------------------------------
+
 
                             HDDS
+
 
 +
                             <b>HDDS</b>
  
 
cp maurik's HDDS files
 
cp maurik's HDDS files
Line 122: Line 113:
  
 
export HDDSROOT="/net/home/kyle/CLAS12/Sim12/HDDS"
 
export HDDSROOT="/net/home/kyle/CLAS12/Sim12/HDDS"
-----------------------------------------------------------------------------
 
  
 
  
  
Line 130: Line 119:
  
  
-----------------------------------------------------------------------------
+
                             <b>JGEANT4</b>
 
 
                             JGEANT4
 
  
 
cd to Sim12 directory
 
cd to Sim12 directory
Line 140: Line 127:
 
export JGEANT4ROOT="/net/home/kyle/CLAS12/Sim12/JGeant4"
 
export JGEANT4ROOT="/net/home/kyle/CLAS12/Sim12/JGeant4"
 
export G4WORKDIR="/net/home/kyle/CLAS12/Sim12/workDIR"
 
export G4WORKDIR="/net/home/kyle/CLAS12/Sim12/workDIR"
----------------------------------------------------------------------------
 
  
 
  
  
--------------------------------------------------------------------------
+
 
                               Sim12
+
                               <b>Sim12</b>
  
 
Enviroment variables:
 
Enviroment variables:
Line 186: Line 171:
  
 
...
 
...
----------------------------------------------------------------------------------------------
 

Revision as of 16:23, 15 October 2007

CLHEP SETUP

Download CLHEP - good http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/distributions/clhep-2.0.3.1.tgz

tar -xzvf clhep-2.0.3.1.tgz - good

changed wd to ~/CLAS12/Sim12/CLHEP/2.0.3.1/CLHEP ./configure --prefix=/net/home/kyle/Sim12/CLHEP - good

make (CLHEP) - good make install (CLHEP) - good

export CLHEPROOT="/net/home/kyle/CLAS12/Sim12/CLHEP" - good



                               XERCES-C SETUP

Download XERCES-C - good http://apache.mirror99.com/xerces/c/sources/xerces-c-src_2_8_0.tar.gz

tar -xzvf xerces-c-src_2_8_0.tar.gz - good

export XERCESCROOT="/net/home/kyle/CLAS12/Sim12/XERCESC" - good

cd to (XERCESCROOT)/xerces-c-src_2_8_0.tar.gz/src/xercesc ./runConfigure -plinux -cgcc -xg++ - good

make (.../xercesc) - failed compiletime for Abstract DOMParser.o, several errors. Missing header files: "AbstractDOMParser.cpp:46:44: xercesc/dom/impl/DOMAttrImpl.hpp: No such file or directory AbstractDOMParser.cpp:47:48: xercesc/dom/impl/DOMTypeInfoImpl.hpp: No such file or directory AbstractDOMParser.cpp:50:44: xercesc/dom/impl/DOMTextImpl.hpp: No such file or directory AbstractDOMParser.cpp:51:48: xercesc/dom/impl/DOMDocumentImpl.hpp: No such file or directory AbstractDOMParser.cpp:52:52: xercesc/dom/impl/DOMDocumentTypeImpl.hpp: No such file or directory AbstractDOMParser.cpp:54:49: xercesc/dom/impl/DOMElementNSImpl.hpp: No such file or directory AbstractDOMParser.cpp:55:46: xercesc/dom/impl/DOMEntityImpl.hpp: No such file or directory AbstractDOMParser.cpp:56:55: xercesc/dom/impl/DOMEntityReferenceImpl.hpp: No such file or directory AbstractDOMParser.cpp:57:48: xercesc/dom/impl/DOMNotationImpl.hpp: No such file or directory AbstractDOMParser.cpp:60:61: xercesc/dom/impl/DOMProcessingInstructionImpl.hpp: No such file or directory AbstractDOMParser.cpp:61:45: xercesc/dom/impl/DOMNodeIDMap.hpp: No such file or directory AbstractDOMParser.cpp:62:41: xercesc/dom/impl/DOMCasts.hpp: No such file or directory AbstractDOMParser.cpp: In member function `void xercesc_2_8::AbstractDOMParser::cleanUp()':"

The wiki is incorrect. According to the Xerces site: export XERCESCROOT="/net/home/kyle/CLAS12/Sim12/XERCESC" should read export XERCESCROOT="/net/home/kyle/CLAS12/Sim12/where_ever_you_untar_too"


./runConfigure -plinux -cgcc -xg++ - good make - good




                             DAWN

extracted and made


                             GEANT4

Downloaded and extracted geant4 and data files

compiled geant4 - no problem

make physics_list stuff... had to assign many enviroment variables make script failing export G4WORKDIR="/net/home/kyle/CLAS12/Sim12/workDIR" using absolute path rather than path from ~ CLHEPROOT=/net/home/kyle/CLAS12/Sim12/CLHEP CLHEP_BASE_DIR=/net/home/kyle/CLAS12/Sim12/CLHEP XERCESCROOT=/net/home/kyle/CLAS12/Sim12/XERCESC G4WORKDIR=/net/home/kyle/CLAS12/Sim12/workDIR CLHEP_LIB=/net/home/kyle/CLAS12/Sim12/CLHEP/lib



                             Evio

Download site no longer active cp from /net/data/taro/maurik/evio

make clean make - good

export EVIOROOT="/net/home/kyle/CLAS12/Sim12/evio"




                            HDDS

cp maurik's HDDS files

needs G4INSTALL defined export G4INSTALL="/net/home/kyle/CLAS12/Sim12/geant4.9.0.p01"

make clean make - good!

export HDDSROOT="/net/home/kyle/CLAS12/Sim12/HDDS"




                            JGEANT4

cd to Sim12 directory svn checkout https://phys12svn.jlab.org/repos/trunk/src/JGeant4/ export G4WORKDIR="/net/home/kyle/CLAS12/Sim12/JGeant4" make - good! export JGEANT4ROOT="/net/home/kyle/CLAS12/Sim12/JGeant4" export G4WORKDIR="/net/home/kyle/CLAS12/Sim12/workDIR"



                             Sim12

Enviroment variables:

[kyle@parity JGeant4]$ echo $XERCESCROOT /net/home/kyle/CLAS12/Sim12/XERCESC [kyle@parity JGeant4]$ echo $CLHEPROOT /net/home/kyle/CLAS12/Sim12/CLHEP [kyle@parity JGeant4]$ echo $EVIOROOT /net/home/kyle/CLAS12/Sim12/evio [kyle@parity JGeant4]$ echo $HDDSROOT /net/home/kyle/CLAS12/Sim12/HDDS [kyle@parity JGeant4]$ echo $JGEANT4ROOT /net/home/kyle/CLAS12/Sim12/JGeant4 [kyle@parity JGeant4]$ echo $G4WORKDIR /net/home/kyle/CLAS12/Sim12/workDIR

make - compile time error

Compiling Sim12.cc ... Sim12.cc:75: error: expected class-name before '{' token Sim12.cc: In constructor `MySession::MySession(int, char**)': Sim12.cc:111: error: class `MySession' does not have any field named `G4UIXm' Sim12.cc: In function `int main(int, char**)': Sim12.cc:238: error: cannot convert `G4UIterminal*' to `MySession*' in assignment Sim12.cc:290: error: 'class MySession' has no member named 'SessionStart' /net/home/kyle/CLAS12/Sim12/CLHEP/include/CLHEP/Random/Randomize.h: At global scope: /net/home/kyle/CLAS12/Sim12/CLHEP/include/CLHEP/Random/Randomize.h:67: warning: 'CLHEP::HepRandomGenActiv e' defined but not used make: *** [/net/home/kyle/CLAS12/Sim12/workDIR/tmp/Linux-g++/Sim12/exe/Sim12.o] Error 1

currently working on this error

...