Message: Installation of CPPGDML for GRAS Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Installation of CPPGDML for GRAS 

Forum: Installation and Configuration
Date: 26 Jun, 2014
From: Pierre Dodin <Pierre Dodin>

Hi,

I am currently trying to install the Geant4 tool GRAS 2.4, which requires to build the CPPGDML distribution. I use cygwin with Visual C++ 2008 on a W7 64 bits, with CLHEP and Geant4.9.3.p02 installed. The GDML module of Geant4 was successfully built, using Xerces-c 3.1.1. But when it comes to building the CPPGDML distrib, I obtain many compilation errors. The configure works fine (at the beginning I had errors about a missing file c:/Geant4/geant4_9_3_p02/include/G4RunManager.hh, but I just transfered this file from the run directory to the include one and it worked). But when it comes to using make, I receive compiling errors and cannot find where they come from. Here is the 'make' result, obtained with all the CPPGDML versions:

$ make

Building CPPGDML for CYGWIN-g++ for the following packages:

Common/Saxana Common/Processes Common/Writer G4Binding/G4Processor G4Binding/G4S ubscribers G4Binding/G4Writer

make[1]: Entering directory `/cygdrive/c/CPPGDML/Common/Saxana'

Building package Saxana on site for platform CYGWIN-g++

Compiling SAX2EventGun.cpp
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/util/XercesDefs.hpp:46:0,
                 from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/util/PlatformUtils.hpp:25,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:33:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/util/Xerces_autoconf
_config.hpp:48:0: attention : #pragma warning  ignoré [-Wunknown-pragmas]
 #pragma warning( disable: 4786 )
 ^
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/validators/datatype/DatatypeValidator.hpp:27:0,
                 from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/framework/XMLAttr.hpp:28,
                 from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/framework/XMLValidator.hpp:25,
                 from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/sax2/SAX2XMLReader.hpp:27,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:35:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/util/KVStringPair.hp
p:176:13: attention : 'void xercesc_3_1::KVStringPair::setKey(const XMLCh*, XMLS
ize_t)' redeclared without dllimport attribute after being referenced with dll l
inkage [enabled by default]
 inline void KVStringPair::setKey(  const XMLCh* const newKey
             ^
c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/util/KVStringPair.hp
p:190:13: attention : 'void xercesc_3_1::KVStringPair::setValue(const XMLCh*, XM
LSize_t)' redeclared without dllimport attribute after being referenced with dll
 linkage [enabled by default]
 inline void KVStringPair::setValue(  const XMLCh* const newValue
             ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXDocumentEvents
.h:36:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXEvents.h:33,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:45:

/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXEvent.h:56:52: attention : qualifica
teurs de type ignorés pour le type à retourner par la fonction [-Wignored-qualif
iers]
   virtual const SAXEvent::EventType Type() const = 0;
                                                    ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXEvents.h:33:0,

                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:45:

/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXDocumentEvents.h:44:44: attention :
qualificateurs de type ignorés pour le type à retourner par la fonction [-Wignor
ed-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXDocumentEvents.h:56:44: attention :
qualificateurs de type ignorés pour le type à retourner par la fonction [-Wignor
ed-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXEvents.h:34:0,

                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:45:

/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXElementEvents.h:57:44: attention : q
ualificateurs de type ignorés pour le type à retourner par la fonction [-Wignore
d-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXElementEvents.h:92:44: attention : q
ualificateurs de type ignorés pour le type à retourner par la fonction [-Wignore
d-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXElementEvents.h:121:44: attention :
qualificateurs de type ignorés pour le type à retourner par la fonction [-Wignor
ed-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXElementEvents.h:150:44: attention :
qualificateurs de type ignorés pour le type à retourner par la fonction [-Wignor
ed-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXEvents.h:35:0,

                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:45:

/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXErrorEvents.h:76:44: attention : qua
lificateurs de type ignorés pour le type à retourner par la fonction [-Wignored-
qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXErrorEvents.h:95:44: attention : qua
lificateurs de type ignorés pour le type à retourner par la fonction [-Wignored-
qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAXErrorEvents.h:114:44: attention : qu
alificateurs de type ignorés pour le type à retourner par la fonction [-Wignored
-qualifiers]
   virtual const SAXEvent::EventType Type() const
                                            ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/DefaultHandler.
hpp:646:13: attention : 'virtual void xercesc_3_1::DefaultHandler::characters(co
nst XMLCh*, XMLSize_t)' was hidden [-Woverloaded-virtual]
 inline void DefaultHandler::characters(const   XMLCh* const
             ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:
0:
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:57:10: attention :   by
'void SAX2EventGun::characters(const XMLCh*, unsigned int)' [-Woverloaded-virtua
l]
     void characters( const   XMLCh* const    chars, const unsigned int    lengt
h );
          ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/DefaultHandler.
hpp:671:1: attention : 'virtual void xercesc_3_1::DefaultHandler::ignorableWhite
space(const XMLCh*, XMLSize_t)' was hidden [-Woverloaded-virtual]
 DefaultHandler::ignorableWhitespace( const   XMLCh* const
 ^
In file included from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:
0:
/cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:68:10: attention :   by
'void SAX2EventGun::ignorableWhitespace(const XMLCh*, unsigned int)' [-Woverload
ed-virtual]
     void ignorableWhitespace( const XMLCh* const  chars,
          ^
/cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp: In member function 'virt
ual void SAX2EventGun::startElement(const XMLCh*, const XMLCh*, const XMLCh*, co
nst xercesc_3_1::Attributes&)':
/cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:286:42: erreur: invalid u
se of incomplete type 'const class xercesc_3_1::Attributes'
   for( unsigned int i = 0; i < attributes.getLength(); i++ ) {
                                          ^
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/sax2/DefaultHandler.hpp:25:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/ContentHandler.
hpp:29:7: erreur: forward declaration of 'const class xercesc_3_1::Attributes'
 class Attributes;
       ^
/cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:288:51: erreur: invalid u
se of incomplete type 'const class xercesc_3_1::Attributes'
     char* name  = XMLString::transcode( attributes.getQName(i) );
                                                   ^
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/sax2/DefaultHandler.hpp:25:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/ContentHandler.
hpp:29:7: erreur: forward declaration of 'const class xercesc_3_1::Attributes'
 class Attributes;
       ^
/cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:289:51: erreur: invalid u
se of incomplete type 'const class xercesc_3_1::Attributes'
     char* value = XMLString::transcode( attributes.getValue(i) );
                                                   ^
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/sax2/DefaultHandler.hpp:25:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/ContentHandler.
hpp:29:7: erreur: forward declaration of 'const class xercesc_3_1::Attributes'
 class Attributes;
       ^
/cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:290:51: erreur: invalid u
se of incomplete type 'const class xercesc_3_1::Attributes'
     char* type  = XMLString::transcode( attributes.getType(i) );
                                                   ^
In file included from c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xerces
c/sax2/DefaultHandler.hpp:25:0,
                 from /cygdrive/c/CPPGDML/Common/Saxana/Saxana/SAX2EventGun.h:37
,
                 from /cygdrive/c/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:49:

c:/Geant4/xerces-c-3.1.1-x86-windows-vc-9.0/include/xercesc/sax2/ContentHandler.
hpp:29:7: erreur: forward declaration of 'const class xercesc_3_1::Attributes'
 class Attributes;
       ^
make[1]: *** [/cygdrive/c/CPPGDML/build/CYGWIN-g++/Common/Saxana/SAX2EventGun.o]
 Error 1
make[1]: Leaving directory `/cygdrive/c/CPPGDML/Common/Saxana'
make: *** [build_gdml_libs] Error 2

To be honest I am pretty new with all this, and the solution may be very obvious or easy, so I apologize if that is the case. Anyone got an idea of what is going wrong here?

Thank you in advance, Pierre

 Add Message Add Message
to: "Installation of CPPGDML for GRAS"

 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 ]