Message: GDML ERROR Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GDML ERROR 

Forum: Documentation and Examples
Date: May 03, 05:58
From: Jincai <Jincai>

Hello~

I have successfully installed Geant4 on ubuntu 16.04 in advance. Then I want to build GDML module in Geant4. I have installed XercesC according to the instructions in https://www.hep.ucl.ac.uk/pbt/wiki/Software/Geant4/Installation/Xerces-C

Then I recompiled Geant4 using the following commands:

cmake -DCMAKE_INSTALL_PREFIX=/home/jcren/G4/install/ -DGEANT4_USE_GDML=ON -DXERCESC_INCLUDE_DIR=/home/jcren/G4pre/xerces-c/dev/lib/ -DXERCESC_LIBRARY=/home/jcren/G4pre/xerces-c/dev/lib/libxerces-c.so $home/home/jcren/G4/geant4.10.02.p02

make -j10

make install -j12

However, when I try to execute gdml examples provided by Geant4, I encountered following errors:

cmake -DGeant4_DIR=/home/jcren/G4/install/lib /Geant4-10.2.2 /home/jcren/G4/geant4.10.02.p02/install/share/Geant4-10.2.2/examples/extended/persistency/gdml/G01 ...

make -j10

Scanning dependencies of target load_gdml [ 33%]

Building CXX object CMakeFiles/load_gdml.dir/load_gdml.cc.o [ 66%]

Building CXX object CMakeFiles/load_gdml.dir/src/G01PrimaryGeneratorAction.cc.o [100%]

Linking CXX executable load_gdml CMakeFiles/load_gdml.dir/load_gdml.cc.o: In function `xercesc_3_1::DTDEntityDecl::~DTDEntityDecl()': load_gdml.cc:(.text._ZN11xercesc_3_113DTDEntityDeclD2Ev[_ZN11xercesc_3_113DTDEntityDeclD5Ev]+0x20): undefined reference to `xercesc_3_1::XMLEntityDecl::~XMLEntityDecl()' load_gdml.cc:(.text._ZN11xercesc_3_113DTDEntityDeclD2Ev[_ZN11xercesc_3_113DTDEntityDeclD5Ev]+0x35): undefined reference to `xercesc_3_1::XMemory::operator delete(void*)' CMakeFiles/load_gdml.dir/load_gdml.cc.o: In function `xercesc_3_1::DTDEntityDecl::~DTDEntityDecl()': load_gdml.cc:(.text._ZN11xercesc_3_113DTDEntityDeclD0Ev[_ZN11xercesc_3_113DTDEntityDeclD5Ev]+0x20): undefined reference to `xercesc_3_1::XMemory::operator delete(void*)' CMakeFiles/load_gdml.dir/load_gdml.cc.o: In function `xercesc_3_1::HandlerBase::fatalError(xercesc_3_1::SAXParseException const&)': load_gdml.cc:(.text._ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[_ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE]+0x2b): undefined reference to `xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException const&)' load_gdml.cc:(.text._ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[_ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE]+0x30): undefined reference to `xercesc_3_1::SAXParseException::~SAXParseException()' load_gdml.cc:(.text._ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[_ZN11xercesc_3_111HandlerBase10fatalErrorERKNS_17SAXParseExceptionE]+0x35): undefined reference to `typeinfo for xercesc_3_1::SAXParseException' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113DTDEntityDeclE[_ZTVN11xercesc_3_113DTDEntityDeclE]+0x20): undefined reference to `xercesc_3_1::DTDEntityDecl::isSerializable() const' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113DTDEntityDeclE[_ZTVN11xercesc_3_113DTDEntityDeclE]+0x28): undefined reference to `xercesc_3_1::DTDEntityDecl::serialize(xercesc_3_1::XSerializeEngine&)' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113DTDEntityDeclE[_ZTVN11xercesc_3_113DTDEntityDeclE]+0x30): undefined reference to `xercesc_3_1::DTDEntityDecl::getProtoType() const' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113XMLAttDefListE[_ZTVN11xercesc_3_113XMLAttDefListE]+0x20): undefined reference to `xercesc_3_1::XMLAttDefList::isSerializable() const' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113XMLAttDefListE[_ZTVN11xercesc_3_113XMLAttDefListE]+0x28): undefined reference to `xercesc_3_1::XMLAttDefList::serialize(xercesc_3_1::XSerializeEngine&)' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTVN11xercesc_3_113XMLAttDefListE[_ZTVN11xercesc_3_113XMLAttDefListE]+0x30): undefined reference to `xercesc_3_1::XMLAttDefList::getProtoType() const' CMakeFiles/load_gdml.dir/load_gdml.cc.o:(.rodata._ZTIN11xercesc_3_113DTDEntityDeclE[_ZTIN11xercesc_3_113DTDEntityDeclE]+0x10): undefined reference to `typeinfo for xercesc_3_1::XMLEntityDecl' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLUni::fgXercescDefaultLocale' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLString::transcode(char const*, unsigned short*, unsigned long, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::DOMImplementationRegistry::getDOMImplementation(unsigned short const*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XercesDOMParser::setErrorHandler(xercesc_3_1::ErrorHandler*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::SAXParseException::getLineNumber() const' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::getDocument()' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLPlatformUtils::fgMemoryManager' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `typeinfo for xercesc_3_1::DOMException' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLPlatformUtils::Terminate()' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::LocalFileFormatTarget::LocalFileFormatTarget(char const*, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLString::transcode(char const*, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XercesDOMParser::XercesDOMParser(xercesc_3_1::XMLValidator*, xercesc_3_1::MemoryManager*, xercesc_3_1::XMLGrammarPool*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::setValidationSchemaFullChecking(bool)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::setDoSchema(bool)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMemory::operator new(unsigned long)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::setValidationScheme(xercesc_3_1::AbstractDOMParser::ValSchemes)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `typeinfo for xercesc_3_1::XMLException' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::setDoNamespaces(bool)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_3_1::PanicHandler*, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::AbstractDOMParser::parse(char const*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLUni::fgDOMWRTFormatPrettyPrint' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLString::release(unsigned short**, xercesc_3_1::MemoryManager*)' /home/jcren/G4/install/lib/libG4persistency.so: undefined reference to `xercesc_3_1::XMLString::transcode(unsigned short const*, xercesc_3_1::MemoryManager*)' collect2: error: ld returned 1 exit status CMakeFiles/load_gdml.dir/build.make:163: recipe for target 'load_gdml' failed make[2]: *** [load_gdml] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/load_gdml.dir/all' failed make[1]: *** [CMakeFiles/load_gdml.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

I would appreciate any help to solve this problem. Thank you sincerely, Jincai.

 Add Message Add Message
to: "GDML ERROR"

 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 ]