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

Feedback 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)
Re: Question Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X) (Mark Looper)
Date: 13 Jun, 2012
From: Ben Morgan <Ben Morgan>

Hi Mark,

On Wed, 13 Jun 2012 06:50:52 GMT, Mark Looper wrote:
> 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...

Looking at the output, you've got a version of Expat in /usr/local (which I'd guess is i386/ppc only) that's being found in preference to the actual system install in /usr (as far as I am aware, 10.6 ships with Expat in /usr). Forcing the use of the internal Expat is currently being updated, as it's a bit awkward in the current release, but as I think you'll have a compatible system install of expat you can use, it should just be a case of pointing CMake to the right place.

To do that, you'll need to change the values of the CMake variables EXPAT_INCLUDE_DIR and EXPAT_LIBRARY to /usr/include and /usr/lib/libexpat.dylib respectively. As you're using the command line CMake application you can set them via command line arguments to that:

cmake -DEXPAT_INCLUDE_DIR=/usr/include -DEXPAT_LIBRARY=/usr/lib/libexpat.dylib OTHERARGS

I shouldn't matter whether you do this with a completely fresh build or as a reconfiguration of an existing build set up. The build should then pick up the core Expat, which should be a universal library....

Hope that helps...

Ben.

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

1 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 ]