Message: compiling Novice examples failed, help needed please Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question compiling Novice examples failed, help needed please 

Forum: Documentation and Examples
Date: 09 Jul, 2008
From: Colin Huang <Colin Huang>

The system used is redhat Linux 5.2. The Geant4 version is Geant4.9.1. When I was trying to making example N01 and N02, the same problem happened.

The failure was:
/usr/bin/ld: skipping incompatible /usr/lib/libXt.so when searching for -lXt
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
make: *** [/home/Geant4/MCSimulation/bin/Linux-g++/exampleN02] Error 1

When I was trying to install Geant4.9.1, there were 3 headers missing. They are:
GL/glu.h
X11/intrinsic.h
X11/Xmu/Stdcmap.h

I solved the problem by install 2 rpms with yum install:

yum install libGLU-devel
yum install libXmu-devel

I don't know if the failure of making example N02 is caused by this.

The entire making information are included as follows,

[Geant4@PCSL784 novice]$ cd N02
[Geant4@PCSL784 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/Geant4/MCSimulation/tmp/Linux-g++/exampleN02/libexampleN02.a ...
ar: creating /home/Geant4/MCSimulation/tmp/Linux-g++/exampleN02/libexampleN02.a
Compiling exampleN02.cc ...
Using granular libraries ...
Linking exampleN02 ...
/usr/bin/ld: skipping incompatible /usr/lib/libXt.so when searching for -lXt
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
make: *** [/home/Geant4/MCSimulation/bin/Linux-g++/exampleN02] Error 1

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

1 None: Re: compiling Novice examples failed, help needed please   (Ben Morgan - 11 Jul, 2008)
 Add Message Add Message
to: "compiling Novice examples failed, help needed please"

 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 ]