Message: Re: /usr/bin/ld: cannot find -lXpm Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: /usr/bin/ld: cannot find -lXpm 

Forum: Installation and Configuration
Re: Question /usr/bin/ld: cannot find -lXpm
Re: Note Re: /usr/bin/ld: cannot find -lXpm (Ben Morgan)
Date: 05 Jan, 2010
From: <sxhuxinhui@163.com>

Thanks  Ban!

I installed the package and the initial build maybe successful.

But when I try to run the example A01,some wrong,

so further suggestions will be helpful to me.

/******************************************

xinghuo@xinghuo-desktop:~/g4work/A01$ A01app
A01app: error while loading shared libraries: libA01app.so: cannot open shared object file: No such file or directory
xinghuo@xinghuo-desktop:~/g4work/A01$
******************************************/


On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/home/xinghuo/geant4/geant4.9.3
On this machine the G4LIB=/home/xinghuo/geant4/geant4.9.3/lib
On this machine the G4LEVELGAMMADATA=/home/xinghuo/geant4/geant4.9.3/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/home/xinghuo/geant4/geant4.9.3/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/home/xinghuo/geant4/geant4.9.3/data/G4EMLOW6.9
On this machine the G4NEUTRONHPDATA=/home/xinghuo/geant4/geant4.9.3/data/G4NDL3.13
On this machine the G4ABLADATA=/home/xinghuo/geant4/geant4.9.3/data/G4ABLA3.0
On this machine the G4REALSURFACEDATA=/home/xinghuo/geant4/geant4.9.3/data/RealSurface1.0
On this machine the CLHEP_BASE_DIR=/home/xinghuo/CLHEP
On this machine the CLHEP_INCLUDE_DIR=/home/xinghuo/CLHEP/include
On this machine the CLHEP_LIB_DIR=/home/xinghuo/CLHEP/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4UI_USE_TCSH=1
On this machine the G4VIS_BUILD_DAWN_DRIVER=1
On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=1
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1
On this machine the G4VIS_USE_DAWN=1
On this machine the G4VIS_USE_OPENGLX=1
On this machine the G4VIS_USE_OPENGLXM=1
On this machine the G4VIS_USE_RAYTRACERX=1
On this machine the XMFLAGS=
On this machine the XMLIBS= -lXm -lXpm
On this machine the XMFLAGS=
On this machine the XAWFLAGS=
On this machine the XAWLIBS=
On this machine the G4LIB_BUILD_ZLIB=1
On this machine the G4LIB_USE_ZLIB=1
On this machine the G4LIB_BUILD_SHARED=1
On this machine the G4LIB_BUILD_STATIC=1
xinghuo@xinghuo-desktop:~$ ls
aida  CLHEP  examples.desktop  g4work  geant4  lianxi  &#20844;&#20849;&#30340;  &#27169;&#26495;  &#35270;&#39057;  &#22270;&#29255;  &#25991;&#26723;  &#19979;&#36733;  &#38899;&#20048;  &#26700;&#38754;
xinghuo@xinghuo-desktop:~$ cd g4work/A01/
xinghuo@xinghuo-desktop:~/g4work/A01$ ls
A01app.cc  bheprep2-000-gz.mac   bheprep2gz.mac  bheprep2zip.mac  hadlist.gmk         heprep2-000-zip.mac  heprep2.mac     History  novis.mac   README        setup-analysis.csh  setup-analysis.win32  test.in   vis.mac
aida.mac   bheprep2-000-zip.mac  bheprep2.mac    GNUmakefile      heprep2-000-gz.mac  heprep2gz.mac        heprep2zip.mac  include  opengl.mac  README.JAIDA  setup-analysis.sh   src                   test.out
xinghuo@xinghuo-desktop:~/g4work/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:
/home/xinghuo/geant4/geant4.9.3/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/home/xinghuo/geant4/geant4.9.3/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:
/home/xinghuo/geant4/geant4.9.3/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/home/xinghuo/geant4/geant4.9.3/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 /home/xinghuo/g4work/tmp/Linux-g++/A01app/libA01app.so ...
Creating/replacing object files in /home/xinghuo/g4work/tmp/Linux-g++/A01app/libA01app.a ...
ar: creating /home/xinghuo/g4work/tmp/Linux-g++/A01app/libA01app.a
Compiling A01app.cc ...
In file included from A01app.cc:37:
/home/xinghuo/geant4/geant4.9.3/source/run/include/G4RunManager.hh: In member function ‘void G4RunManager::SetRandomNumberStoreDir(G4String)’:
/home/xinghuo/geant4/geant4.9.3/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
... Done!
xinghuo@xinghuo-desktop:~/g4work/A01$ A01app
A01app: error while loading shared libraries: libA01app.so: cannot open shared object file: No such file or directory
xinghuo@xinghuo-desktop:~/g4work/A01$ 

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

1 None: Re: /usr/bin/ld: cannot find -lXpm   (Geng Chao - 06 Apr, 2011)
 Add Message Add Message
to: "Re: /usr/bin/ld: cannot find -lXpm"

 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 ]