|Message: Re: EXPAT_LIBRARY Error Geant4.9.5 (Mac OS X)||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
> ... 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. >
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:||Outline Depth:||Add message:|