Message: Re: ld: library not found for -lXm Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: ld: library not found for -lXm  

Forum: Installation and Configuration
Re: Question ld: library not found for -lXm (Neil Fazel)
Re: None Re: ld: library not found for -lXm (John Allison)
Date: 21 Jun, 2010
From: Neil Fazel <Neil Fazel>

On Mon, 21 Jun 2010 09:44:03 GMT, John Allison wrote:
> The problem might be that XMFLAGS and XMLIBS are not set. If you went
> through Configure, it would ask you at some stage for the home directory
> of Xm - /usr/OpenMotif in your case, as in mine - and it would produce a
> new env.sh script. Since you are choosing to change the environment
> yourself you have to also set
> 
>   export XMFLAGS="-I/usr/OpenMotif/include"
>   export XMLIBS="-L/usr/OpenMotif/lib -lXm -lXpm"
> 
> I think that should do it.
> 

Thanks. Yes, XMFLAGS and XMLIBS were unset and I needed to run Configure to regenerate env.sh. I did that and now it finds libxm.a. However, I get this:

fnal@wireless-128-62-178-97[LWFA][121]> make

Using global libraries ...

Linking LWFA

Undefined symbols:

  "G4UIXm::G4UIXm(int, char**)", referenced from:

      _main in LWFA.o

  "G4OpenGLStoredXm::G4OpenGLStoredXm()", referenced from:

      G4VisExecutive::RegisterGraphicsSystems()       in LWFA.o

  "G4VRML1::G4VRML1()", referenced from:

      G4VisExecutive::RegisterGraphicsSystems()       in LWFA.o

  "G4OpenGLImmediateXm::G4OpenGLImmediateXm()", referenced from:

<snip>

Apparently it can't find geant4 header files, e.g. G4UIXm.hh. I have this under

fnal@wireless-128-62-178-97[geant4.9.3.p01][131]> find . -name G4UIXm.hh

./source/interfaces/basic/include/G4UIXm.hh

Is there anything else I would need to set?

Thanks,

Neil

PS. These my env variables:

fnal@wireless-128-62-178-97[LWFA][126]> env|grep XM

XMFLAGS=-I/usr/OpenMotif/include

G4UI_BUILD_XM_SESSION=1

XMLIBS=-L/usr/OpenMotif/lib -lXm -lXpm

G4VIS_BUILD_OPENGLXM_DRIVER=1

G4UI_USE_XM=1

G4VIS_USE_OPENGLXM=1

fnal@wireless-128-62-178-97[LWFA][127]> env|grep G4

G4LEVELGAMMADATA=/Users/fnal/geant4.9.3.p01/data/PhotonEvaporation2.0

G4INSTALL=/Users/fnal/geant4.9.3.p01

G4VIS_BUILD_VRML_DRIVER=1

G4LEDATA=/Users/fnal/geant4.9.3.p01/data/G4EMLOW6.9

G4UI_BUILD_XAW_SESSION=1

G4UI_BUILD_XM_SESSION=1

G4NEUTRONHPDATA=/Users/fnal/geant4.9.3.p01/data/G4NDL3.13

G4VIS_BUILD_OPENGLX_DRIVER=1

G4RADIOACTIVEDATA=/Users/fnal/geant4.9.3.p01/data/RadioactiveDecay3.2

G4ABLADATA=/Users/fnal/geant4.9.3.p01/data/G4ABLA3.0

G4VIS_USE_DAWN=1

G4LIB=/Users/fnal/geant4.9.3.p01/lib

G4VIS_BUILD_RAYTRACERX_DRIVER=1

G4VIS_BUILD_OPENGLXM_DRIVER=1

G4LIB_BUILD_SHARED=1

G4UI_USE_XAW=1

G4UI_USE_XM=1

G4LIB_BUILD_ZLIB=1

G4VIS_USE_OPENGLX=1

G4UI_USE_TCSH=1

G4VIS_USE_RAYTRACERX=1

G4REALSURFACEDATA=/Users/fnal/geant4.9.3.p01/data/RealSurface1.0

G4SYSTEM=Darwin-g++

G4VIS_BUILD_DAWN_DRIVER=1

G4WORKDIR=/Users/fnal/g4work

G4VIS_USE_VRML=1

G4VIS_USE_OPENGLXM=1

G4LIB_USE_ZLIB=1

 Add Message Add Message
to: "Re: ld: library not found for -lXm "

 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 ]