Message: Compilation error for N03 with Qt Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Compilation error for N03 with Qt 

Forum: Installation and Configuration
Date: 14 Feb, 2008
From: Yun-Ha Shin <Yun-Ha Shin>

Dear All,

I installed G4 9.1.p01 with Qt support successfully, but got compilation error for exN03. My system is SLC3 and Qt4.3.3 is installed to other dir than /usr/local. Please help me to fix this problem.

Thanks in advance for the comments and advices, Yun-Ha

Here is the error message :

Compiling exampleN03.cc ...
In file included from /data/data020/HEP/Qt4/include/QtCore/qobjectdefs.h:40,
                 from /data/data020/HEP/Qt4/include/Qt/qobject.h:42,
                 from /data/data020/HEP/Geant4/geant4.9.1.p01/include/G4UIQt.hh:40,
                 from exampleN03.cc:62:
/data/data020/HEP/Qt4/include/QtCore/qnamespace.h:1028: syntax error before
   numeric constant
In file included from /data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:41,
                 from /data/data020/HEP/Qt4/include/Qt/qapplication.h:40,
                 from exampleN03.cc:64:
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:59: syntax error before
   numeric constant
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:247: missing ';' before right
   brace
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:249: syntax error before `)'
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:250: destructors must be
   member functions
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:250: virtual outside class
   declaration
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:251: syntax error before `('
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:252: non-member function `
   bool spontaneous()' cannot have `const' method qualifier
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: In function `bool
   spontaneous()':
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:252: `spont' undeclared
   (first use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:252: (Each undeclared
   identifier is reported only once for each function it appears in.)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: In function `void
   setAccepted(bool)':
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:254: `m_accept' undeclared
   (first use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: At global scope:
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:255: non-member function `
   bool isAccepted()' cannot have `const' method qualifier
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:260: syntax error before `
   protected'
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:264: syntax error before `
   private'
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:266: syntax error before `:'
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:267: syntax error before `:'
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:268: syntax error before `:'
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:270: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:271: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:272: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:273: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:274: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:275: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:276: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:277: `friend' can only be
   specified inside a class
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:278: syntax error before `}'
   token
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: In member function `bool
   QChildEvent::added() const':
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:298: `type' undeclared (first
   use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:298: `ChildAdded' undeclared
   (first use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: In member function `bool
   QChildEvent::polished() const':
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:302: `ChildPolished'
   undeclared (first use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h: In member function `bool
   QChildEvent::removed() const':
/data/data020/HEP/Qt4/include/QtCore/qcoreevent.h:303: `ChildRemoved'
   undeclared (first use this function)
In file included from /data/data020/HEP/Qt4/include/Qt/qapplication.h:40,
                 from exampleN03.cc:64:
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h: At global scope:
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:97: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:97: syntax error before
   `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:98: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:98: syntax error before
   `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:99: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:99: syntax error before
   `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:99: `static void
   QCoreApplication::postEvent(...)' and `static void
   QCoreApplication::postEvent(...)' cannot be overloaded
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:106: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:106: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:171: syntax error
   before `)' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:173: syntax error
   before `,' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:179: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:179: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:180: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:180: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:194: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:194: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/Qt/qobject.h:115: warning: `virtual bool
   QObject::event(QEvent*)' was hidden
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:171: warning:   by `
   bool QCoreApplication::event(...)'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:199: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:199: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h: In static member
   function `static bool QCoreApplication::sendEvent(...)':
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:200: could not convert
   `0->QCoreApplication::event(...)' to `bool'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:200: invalid use of
   member (did you forget the `&' ?)
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:200: base operand of
   `->' is not a pointer
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:200: `receiver'
   undeclared (first use this function)
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h: At global scope:
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:202: type specifier
   omitted for parameter `QEvent'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:202: syntax error
   before `*' token
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h: In static member
   function `static bool QCoreApplication::sendSpontaneousEvent(...)':
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:203: could not convert
   `0->QCoreApplication::event(...)' to `bool'
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:203: invalid use of
   member (did you forget the `&' ?)
/data/data020/HEP/Qt4/include/QtCore/qcoreapplication.h:203: base operand of
   `->' is not a pointer
In file included from /data/data020/HEP/Qt4/include/Qt/qapplication.h:44,
                 from exampleN03.cc:64:
/data/data020/HEP/Qt4/include/QtGui/qcursor.h: At global scope:
/data/data020/HEP/Qt4/include/QtGui/qcursor.h:80: syntax error before numeric
   constant
/data/data020/HEP/Qt4/include/QtGui/qcursor.h:88: syntax error before numeric
   constant
/data/data020/HEP/Qt4/include/QtGui/qcursor.h:89: syntax error before numeric
   constant
In file included from exampleN03.cc:64:
/data/data020/HEP/Qt4/include/Qt/qapplication.h:243: type specifier omitted for
   parameter `QEvent'
/data/data020/HEP/Qt4/include/Qt/qapplication.h:243: syntax error before `*'
   token
/data/data020/HEP/Qt4/include/Qt/qapplication.h:275: syntax error before `)'
   token
/data/data020/HEP/Qt4/include/Qt/qapplication.h:276: syntax error before `,'
   token
/data/data020/HEP/Qt4/include/Qt/qobject.h:115: warning: `virtual bool
   QObject::event(QEvent*)' was hidden
/data/data020/HEP/Qt4/include/Qt/qapplication.h:275: warning:   by `bool
   QApplication::event(...)'
make: *** [/data/data021/yshin/geant4/tmp/Linux-g++/exampleN03/exe/exampleN03.o] Error 1

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

1 None: Re: Compilation error for N03 with Qt   (garnier - 15 Feb, 2008)
 Add Message Add Message
to: "Compilation error for N03 with Qt"

 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 ]