Message: Re: Problem with link A01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Problem with link A01 

Forum: Installation and Configuration
Re: Question Problem with link A01 (Luis Miguel)
Date: 09 Dec, 2010
From: Luis Miguel <Luis Miguel>

I'll rewrite the post because it was unreadable (I don't know why the format changed automatically):


Hi

I had problems doing the make of A01, and I'm not sure if I also had problems with building, so I post the result of the building and the make.

I have just installed Kubuntu 10.10 (32 bits) and the first I did was to get this packages with apt-get:

gcc autoconf automake1.9 tcl8.4 tk8.4 g++ libglu1-mesa-dev libxt-dev libxmu-dev xlibs-dev libxi-dev

Once I got this, I started following all the instructions of the guide:

http://geant4.slac.stanford.edu/tutorial/installation/Geant4.9.3.p01/Linux/Geant4_9_3_p01_Linux_Installation.htm

And everything went exactly as said in the guide until the ending of the building of GEANT4, where I got:

Compiling G4OpenGLXmTextField.cc ...
Compiling G4OpenGLXmTopLevelShell.cc ...
Compiling G4OpenGLXmViewer.cc ...
Compiling G4OpenGLXmViewerMessenger.cc ...
Compiling G4OpenGLXmVWidgetComponent.cc ...
Compiling G4OpenGLXmVWidgetContainer.cc ...
Compiling G4OpenGLXmVWidgetObject.cc ...
Compiling G4OpenGLXmVWidgetShell.cc ...
Compiling G4OpenGLXmWindowHandlingCallbacks.cc ...
Compiling G4OpenGLXViewer.cc ...
Creating shared library /u/GEANT4/geant4.9.3.p01/lib/Linux-g++/libG4OpenGL.so ...
Building library management utility liblist ...
/u/GEANT4/geant4.9.3.p01/config/liblist.c: In function ‘main’: /u/GEANT4/geant4.9.3.p01/config/liblist.c:202: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/u/GEANT4/geant4.9.3.p01/config/liblist.c:264: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/u/GEANT4/geant4.9.3.p01/config/liblist.c:322: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/u/GEANT4/geant4.9.3.p01/config/liblist.c:406: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
Libraries installation completed !

############################################################
# It looks like you had errors during Geant4 installation
# (or interrupted installation)!
# Please check log file:
# /u/GEANT4/geant4.9.3.p01/.config/bin/Linux-g++/g4make.log
############################################################
(if neccesary I can upload the whole .log)

Even if it says "It looks like you had errors" I kept following the guide as follows:

root@luis-Extensa-5635ZG:/u/GEANT4/geant4.9.3.p01# ./Configure

                --- Geant4 Toolkit Installation ---
                  (setting environments for USER )
--------------------------------------------------- The Geant4 toolkit installation was found. The files env.[c]sh will be copied to your current directory. For setting Geant4 environments you should make:

source env.csh

or

. env.sh

It will also check G4WORKDIR setting and set it to your HOME if needed.
You can use these files also for further modifications (adding your own environments).
 ---------------------------------------------------
root@luis-Extensa-5635ZG:/u/GEANT4/geant4.9.3.p01# cd ..
root@luis-Extensa-5635ZG:/u/GEANT4# cd ..
root@luis-Extensa-5635ZG:/u# mkdir Geant4work
root@luis-Extensa-5635ZG:/u# cd Geant4work

root@luis-Extensa-5635ZG:/u/Geant4work# cp -r /u/GEANT4/geant4.9.3.p01/examples/extended/analysis/A01 $G4WORKDIR/A01/

root@luis-Extensa-5635ZG:/u/Geant4work# export LD_LIBRARY_PATH=/u/CLHEP/lib/:$LD_LIBRARY_PATH
root@luis-Extensa-5635ZG:/u/Geant4work# source /u/GEANT4/geant4.9.3.p01/env.sh

On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/u/GEANT4/geant4.9.3.p01
On this machine the G4LIB=/u/GEANT4/geant4.9.3.p01/lib
On this machine the G4LEVELGAMMADATA=/u/GEANT4/geant4.9.3.p01/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/u/GEANT4/geant4.9.3.p01/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/u/GEANT4/geant4.9.3.p01/data/G4EMLOW6.9
On this machine the G4NEUTRONHPDATA=/u/GEANT4/geant4.9.3.p01/data/G4NDL3.13
On this machine the G4ABLADATA=/u/GEANT4/geant4.9.3.p01/data/G4ABLA3.0
On this machine the G4REALSURFACEDATA=/u/GEANT4/geant4.9.3.p01/data/RealSurface1.0
On this machine the CLHEP_BASE_DIR=/u/CLHEP
On this machine the CLHEP_INCLUDE_DIR=/u/CLHEP/include
On this machine the CLHEP_LIB_DIR=/u/CLHEP/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4UI_USE_TCSH=1
On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1
On this machine the G4VIS_USE_OPENGLX=1
On this machine the G4VIS_USE_RAYTRACERX=1
On this machine the XMFLAGS=
On this machine the XMLIBS=
On this machine the XMFLAGS=
On this machine the XAWFLAGS=
On this machine the XAWLIBS=
On this machine the G4LIB_BUILD_SHARED=1

LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries.
NOTE : you should verify that the correct path for the CLHEP library

/u/CLHEP/lib

is included in the dynamic library search path ahead of any other installations of CLHEP on your system that may be referenced by this path.
------------------------------------------------------------------------------

And here I did the make and I found another problem:


root@luis-Extensa-5635ZG:/u/Geant4work# cd $G4WORKDIR/A01
root@luis-Extensa-5635ZG:/u/Geant4work/A01# make
Making dependency for file A01app.cc ...
Making dependency for file src/A01PrimaryGeneratorMessenger.cc ...
Making dependency for file src/A01PrimaryGeneratorAction.cc ...
Making dependency for file src/A01PhysicsList.cc ...
Making dependency for file src/A01MuonPhysics.cc ...
Making dependency for file src/A01MagneticFieldMessenger.cc ...
Making dependency for file src/A01MagneticField.cc ...
Making dependency for file src/A01IonPhysics.cc ...
Making dependency for file src/A01HodoscopeHit.cc ...
Making dependency for file src/A01Hodoscope.cc ...
Making dependency for file src/A01HadronPhysics.cc ...
Making dependency for file src/A01HadCalorimeterHit.cc ...
Making dependency for file src/A01HadCalorimeter.cc ...
Making dependency for file src/A01GeneralPhysics.cc ...
Making dependency for file src/A01EventActionMessenger.cc ...
Making dependency for file src/A01EventAction.cc ...
Making dependency for file src/A01EMPhysics.cc ...
Making dependency for file src/A01EmCalorimeterHit.cc ...
Making dependency for file src/A01EmCalorimeter.cc ...
Making dependency for file src/A01DriftChamberHit.cc ...
Making dependency for file src/A01DriftChamber.cc ...
Making dependency for file src/A01DetectorConstruction.cc ...
Making dependency for file src/A01DetectorConstMessenger.cc ...
Making dependency for file src/A01CellParameterisation.cc ...
Making dependency for file src/A01AnalysisManager.cc ...
Compiling A01AnalysisManager.cc ...
Compiling A01CellParameterisation.cc ...
Compiling A01DetectorConstMessenger.cc ...
Compiling A01DetectorConstruction.cc ...
In file included from src/A01DetectorConstruction.cc:52:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh:352: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling A01DriftChamber.cc ...
Compiling A01DriftChamberHit.cc ...
Compiling A01EmCalorimeter.cc ...
Compiling A01EmCalorimeterHit.cc ...
Compiling A01EMPhysics.cc ...
Compiling A01EventAction.cc ...
Compiling A01EventActionMessenger.cc ...
Compiling A01GeneralPhysics.cc ...
Compiling A01HadCalorimeter.cc ...
Compiling A01HadCalorimeterHit.cc ...
In file included from src/A01HadCalorimeterHit.cc:32:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh:352: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling A01HadronPhysics.cc without optimization...
Compiling A01Hodoscope.cc ...
Compiling A01HodoscopeHit.cc ...
Compiling A01IonPhysics.cc ...
Compiling A01MagneticField.cc ...
Compiling A01MagneticFieldMessenger.cc ...
Compiling A01MuonPhysics.cc ...
Compiling A01PhysicsList.cc ...
Compiling A01PrimaryGeneratorAction.cc ...
Compiling A01PrimaryGeneratorMessenger.cc ...
Creating shared library /u/Geant4work/tmp/Linux-g++/A01app/libA01app.so ...
Compiling A01app.cc ...
In file included from A01app.cc:37:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/u/GEANT4/geant4.9.3.p01/source/run/include/G4RunManager.hh:352: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Using global libraries ...
Linking A01app
/usr/bin/ld: cannot find -lG4gl2ps
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [/u/Geant4work/bin/Linux-g++/A01app] Error 1
--------------------------------------------------------------------------------------------

Anybody knows what's this related to and How to solve it?

Thank you very much for your time, Luis

P.S: I'm sorry for writting so much but I think is easier to find the problem if you know exactly everything what I did.

 Add Message Add Message
to: "Re: Problem with link A01"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]