Message: Problem with making example in Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problem with making example in Geant4 

Keywords: Compilation problem
Forum: Installation and Configuration
Date: 15 May, 2008
From: Soumik <soumickdass@gmail.com>

Hello!
I started using GEANT4 newly.
I have installed Geant4.9.0 on a 64bit SL 4.6. I have used CLHEP2.0.3.1. 
During compilation of any example(except N01) it shows such type of underlying  error

Using granular libraries ...
Linking A01app ...
/usr/bin/ld: cannot find -lG4OpenGL
collect2: ld returned 1 exit status
make: *** [/home/soumik/g4work/bin/Linux64-g++/A01app] Error 1"
please help me.
I have attached what xterm shows.

$ export G4WORKDIR=/home/soumik/g4work
$ export LD_LIBRARY_PATH=/home/soumik/CLHEP/2.0.3.1/src/lib/:$LD_LIBRARY_PATH
$ source /home/soumik/GEANT4/geant4.9.0/env.sh
On this machine the G4SYSTEM=Linux64-g++
On this machine the G4INSTALL=/home/soumik/GEANT4/geant4.9.0
On this machine the G4LIB=/home/soumik/GEANT4/geant4.9.0/lib
On this machine the G4LEVELGAMMADATA=/home/soumik/GEANT4/geant4.9.0/data/PhotonEvaporation
On this machine the G4RADIOACTIVEDATA=/home/soumik/GEANT4/geant4.9.0/data/RadiativeDecay
On this machine the G4LEDATA=/home/soumik/GEANT4/geant4.9.0/data/G4EMLOW3.0
On this machine the G4NEUTRONHPDATA=/home/soumik/GEANT4/geant4.9.0/data/G4NDL3.7On this machine the CLHEP_BASE_DIR=/home/soumik/CLHEP/2.0.3.1/src
On this machine the CLHEP_INCLUDE_DIR=/home/soumik/CLHEP/2.0.3.1/src/include
On this machine the CLHEP_LIB_DIR=/home/soumik/CLHEP/2.0.3.1/src/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_USE_OPENGLX=1
On this machine the OGLHOME=/usr/X11R6/lib64
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_STATIC=1
On this machine the G4LIB_USE_GRANULAR=1
On this machine the G4UI_USE_TCSH=1
$ cd /home/soumik/g4work/examples/novice/N02
$ make
Making dependency for file exampleN02.cc ...
Making dependency for file src/ExN02TrackerSD.cc ...
Making dependency for file src/ExN02TrackerHit.cc ...
Making dependency for file src/ExN02SteppingVerbose.cc ...
Making dependency for file src/ExN02SteppingAction.cc ...
Making dependency for file src/ExN02RunAction.cc ...
Making dependency for file src/ExN02PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN02PhysicsList.cc ...
Making dependency for file src/ExN02MagneticField.cc ...
Making dependency for file src/ExN02EventAction.cc ...
Making dependency for file src/ExN02DetectorMessenger.cc ...
Making dependency for file src/ExN02DetectorConstruction.cc ...
Making dependency for file src/ExN02ChamberParameterisation.cc ...
Compiling ExN02ChamberParameterisation.cc ...
Compiling ExN02DetectorConstruction.cc ...
Compiling ExN02DetectorMessenger.cc ...
Compiling ExN02EventAction.cc ...
Compiling ExN02MagneticField.cc ...
Compiling ExN02PhysicsList.cc ...
Compiling ExN02PrimaryGeneratorAction.cc ...
Compiling ExN02RunAction.cc ...
Compiling ExN02SteppingAction.cc ...
Compiling ExN02SteppingVerbose.cc ...
Compiling ExN02TrackerHit.cc ...
Compiling ExN02TrackerSD.cc ...
Creating/replacing object files in /home/soumik/g4work/tmp/Linux64-g++/exampleN02/libexampleN02.a ...
ar: creating /home/soumik/g4work/tmp/Linux64-g++/exampleN02/libexampleN02.a
Compiling exampleN02.cc ...
Using granular libraries ...
Linking exampleN02 ...
/usr/bin/ld: cannot find -lG4OpenGL
collect2: ld returned 1 exit status
make: *** [/home/soumik/g4work/bin/Linux64-g++/exampleN02] Error 1




Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Problem with making example in Geant4   (John Allison - 15 May, 2008)
 Add Message Add Message
to: "Problem with making example in Geant4"

 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 ]