Message: Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X) 

Forum: Installation and Configuration
Re: None EXPAT_LIBRARY Error Geant4.9.5 (Alex Leatherland)
Re: Question Re: EXPAT_LIBRARY Error Geant4.9.5 (Ben Morgan)
Re: None Re: EXPAT_LIBRARY Error Geant4.9.5 (Alex Leatherland)
Re: None Re: EXPAT_LIBRARY Error Geant4.9.5 (Alex Leatherland)
Re: News Re: EXPAT_LIBRARY Error Geant4.9.5 (Ben Morgan)
Date: 12 Jun, 2012
From: Mark Looper <Mark Looper>

> ... The reason is that Geant4 ships with the Expat source code so
> that if Expat isn't present on the system, the internal 'G4Expat' will
> be used instead. We don't recommend this on Linux, simply because there
> are good packages for Expat available on all distros, but the
> functionality is there if you need it.
> 

Hello--

I just successfully installed Geant4.9.5.p01 on our Linux cluster, but I can't seem to do so under Mac OS X 10.6.8 (XCode 4.2, gcc 4.2.1, cmake 2.8.8). I issued

     cmake -DCMAKE_INSTALL_PREFIX=... -DXERCESC_ROOT_DIR=... -DGEANT4_USE_GDML=ON ../geant4.9.5.p01

from the build directory and everything looked fine, with the notation

     -- Found EXPAT: /usr/local/lib/libexpat.dylib (found version "2.0.1") 
     -- Found XercesC: /Users/looper/unixy/xerces-c-3.1.1/lib/libxerces-c.dylib
     -- The following Geant4 features are enabled:
     GEANT4_USE_SYSTEM_EXPAT: Using system install of EXPAT
     GEANT4_USE_GDML: Build Geant4 with GDML support

but when I next issued "make" I got about 80% to completion and then it crashed with

     ld: warning: ignoring file /usr/local/lib/libexpat.dylib, missing required architecture x86_64 in file

plus some notes as to where the linkage was needed. I deleted everything in the build directory and tried cmake again with the -DXERCESC_ROOT_DIR and -DGEANT4_USE_GDML parameters omitted, thinking that this would remove the need to link against expat, but I still got the GEANT4_USE_SYSTEM_EXPAT message (but not the GEANT4_USE_GDML one). On a hunch I tried deleting everything in the build directory and issuing cmake again with the additional parameter -DGEANT4_USE_SYSTEM_EXPAT=OFF, but I still got the same confirmation that this "Geant4 feature" is enabled.

So -- you say that there is an internal G4Expat that could be used instead of the system version. Is there a way to force this (my hunch didn't work), or alternatively can you tell me how to install a 64-bit version of expat? It would be difficult to upgrade my Mac to OS X 10.7, if that's the fix -- it's a company computer, and they are _very_ slow about approving OS upgrades...

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

1 Feedback: Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X)   (Ben Morgan - 13 Jun, 2012)
(_ Ok: Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X)   (Mark Looper - 13 Jun, 2012)
(_ Feedback: Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X)   (Ben Morgan - 13 Jun, 2012)
 Add Message Add Message
to: "Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X)"

 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 ]