Find the answer to your Linux question:
Results 1 to 3 of 3
Hi guys This is my first topic here, so i really didn't know where to put it. Recently I've found myself working with cygwin. I wasn't used to linux nor ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    1

    GDML_make_errors


    Hi guys

    This is my first topic here, so i really didn't know where to put it.
    Recently I've found myself working with cygwin. I wasn't used to linux nor other unix system, so it has been a big surprise how useful and pratical it is.

    However i found some errors during a "make" in GDML.
    I'm installing GDML.2.9.0. I've already installed CLHEP and xercesc and another program Geant4 (a physics simulator) with no errors.

    Here are the lines:


    $ ./configure --with-geant4=c:/Geant4/geant4.9.0 --with-geant4-include=c:/Geant
    4/geant4.9.0/source/run/include --with-geant4-libdir=c:/Geant4/geant4.9.0/lib -
    -with-xercesc=c:/cygwin/xerces-c-src_2_8_0 --with-xercesc-include=c:/cygwin/xer
    ces-c-src_2_8_0/include --with-xercesc-libdir=c:/cygwin/xerces-c-src_2_8_0/lib
    --with-clhep=c:/CLHEP --with-clhep-include=c:/CLHEP/include --with-clhep-libdir
    =c:/CLHEP/lib --enable-shared=no --enable-geant4-granular-libs

    and the result:

    checking build system type... i686-pc-cygwin
    checking host system type... i686-pc-cygwin
    checking for g++... g++
    checking for C++ compiler default output file name... a.exe
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... .exe
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for supported OS... yes
    checking the compiler setting... g++
    checking for the compiler gmk file... config/make/compiler/g++.gmk
    checking whether to compile and link in verbose mode... no
    checking for PLATFORM setting... WIN32-g++
    checking for the PLATFORM gmk file... config/make/platform/WIN32-g++.gmk
    checking whether to use shared libraries... no
    checking whether to use static libraries... yes
    checking whether to use single GDML library... yes
    checking whether to use granular libraries... no
    checking for libname prefix... none
    checking for prefix... /usr/local
    checking whether to enable GDML diagnostic output... no
    checking whether to build STEPWriter... no
    checking whether to copy includes in a flat structure... no
    checking for Xerces-C++ installation setting... c:/cygwin/xerces-c-src_2_8_0
    checking for c:/cygwin/xerces-c-src_2_8_0/... yes
    checking for Xerces-C++ include dir setting... c:/cygwin/xerces-c-src_2_8_0/in
    ude
    checking for c:/cygwin/xerces-c-src_2_8_0/include/xercesc/dom/DOM.hpp... yes
    checking for Xerces-C++ lib dir setting... c:/cygwin/xerces-c-src_2_8_0/lib
    checking for c:/cygwin/xerces-c-src_2_8_0/lib/... yes
    checking Xerces-C++ lib name... xerces-c
    checking for CLHEP installation setting... c:/CLHEP
    checking for c:/CLHEP/... yes
    checking for CLHEP include dir setting... c:/CLHEP/include
    checking for c:/CLHEP/include/CLHEP/Evaluator/Evaluator.h... yes
    checking for CLHEP lib dir setting... c:/CLHEP/lib
    checking for c:/CLHEP/lib/... yes
    checking CLHEP lib name... CLHEP
    checking for /source/materials/include/G4NistManager.hh... no
    checking for GEANT4 installation setting... c:/Geant4/geant4.9.0
    checking for c:/Geant4/geant4.9.0/... yes
    checking for G4SYSTEM setting... CYGWIN_NT-5.1-g++
    checking for Geant4 include dir setting... c:/Geant4/geant4.9.0/source/run/inc
    de
    checking for c:/Geant4/geant4.9.0/source/run/include/G4RunManager.hh... yes
    checking for Geant4 lib dir... c:/Geant4/geant4.9.0/lib
    checking for c:/Geant4/geant4.9.0/lib/... yes
    checking whether to enable Geant4 NIST support for material lookup... no
    configure: WARNING: NIST was selected
    checking whether to use Geant4 granular libs... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for size_t... yes
    checking for error_at_line... no
    checking for sqrt... yes
    configure: creating ./config.status
    config.status: creating config/make/local_settings.gmk
    config.status: creating Examples/setup.csh

    and when i type make:

    Building CPPGDML for WIN32-g++
    with the following packages:

    Common/Saxana Common/Processes Common/Writer G4Binding/G4Evaluator G4Binding/G4P
    rocessor G4Binding/G4Subscribers G4Binding/G4Writer


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

    Building package Saxana for platform WIN32-g++

    Compiling SAX2EventGun.cpp
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:1: warning: -f
    PIC ignored for target (all code is position independent)
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp: In member fun
    ction `virtual void SAX2EventGun::startElement(const XMLCh*, const XMLCh*, const
    XMLCh*, const xercesc_2_8::Attributes&)':
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:201: error: in
    valid use of undefined type `const struct xercesc_2_8::Attributes'
    c:/cygwin/xerces-c-src_2_8_0/include/xercesc/sax2/ContentHandler.hpp:30: error:
    forward declaration of `const struct xercesc_2_8::Attributes'
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:203: error: in
    valid use of undefined type `const struct xercesc_2_8::Attributes'
    c:/cygwin/xerces-c-src_2_8_0/include/xercesc/sax2/ContentHandler.hpp:30: error:
    forward declaration of `const struct xercesc_2_8::Attributes'
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:204: error: in
    valid use of undefined type `const struct xercesc_2_8::Attributes'
    c:/cygwin/xerces-c-src_2_8_0/include/xercesc/sax2/ContentHandler.hpp:30: error:
    forward declaration of `const struct xercesc_2_8::Attributes'
    /cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana/src/SAX2EventGun.cpp:205: error: in
    valid use of undefined type `const struct xercesc_2_8::Attributes'
    c:/cygwin/xerces-c-src_2_8_0/include/xercesc/sax2/ContentHandler.hpp:30: error:
    forward declaration of `const struct xercesc_2_8::Attributes'
    make[1]: *** [/cygdrive/c/GDML_2_9_0/CPPGDML/build/WIN32-g++/Common/Saxana/SAX2E
    ventGun.o] Error 1
    make[1]: Leaving directory `/cygdrive/c/GDML_2_9_0/CPPGDML/Common/Saxana'
    make: *** [build_gdml_libs] Error 2

    Can anyone help me to solve my problem?

    thanks
    Vanessa

  2. #2
    Just Joined!
    Join Date
    May 2011
    Posts
    1

    GDML make error

    Hi!
    I am currently trying to install GDML. I have already installed xercesc and geant4 without any problems...and I face exactly the same problem as you!!
    So I wonder...did you finally solve your problem?
    If so, how did you do??
    Thanks,
    Marie

  3. #3
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Please start a new thread with your problem, this one is over 4 years old.
    *locking*
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •