[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-qt
Subject:    Re: cannot compile qt-mozilla
From:       Shao Zhang <shao () hkg ! net>
Date:       2001-04-23 1:52:30
[Download RAW message or body]

John C. Griggs wrote:

> I tried rebuilding mozilla/widget/timer/src/unix/qt from scratch on both
> of my systems (one with Qt v2.2.0 and one with v2.3.0) and I don't see
> this problem.  Note that "make clean" doesn't delete the moc_* files in
> this directory, so you might want to try deleting them by hand.


I did not know the moc_* is automatically generated. I removed them and 
compiled again,
still no luck. But I think you have pointed out where the problem is. 
Can you give
the intructions for "Rebuilding mozilla/widget/timeer/src/unitx/qt from 
scratch"?

After ./configure, I tried to run gmake in the above directory, it 
generated
the moz_* file, but gave some errors. Please see attachment.

 
> I also notice that my version of moc_nsTimerEventHandler.cpp does not
> include methods called "__static_initialization_and_destruction_0(int,
> int)" or "QMetaObjectInit" anywhere within it, so I assume they are
> coming from qmetaobject.h or qapplication.h.


I don't have them in my version either.


> Can you post a copy of the compile line that is generating the errors?


Please see attachment, let me know if you need more information.

Regards,

Shao.





["compile-error" (text/plain)]

moc_nsTimerEventHandler.cpp
c++ -o moc_nsTimerEventHandler.o -c -DOSTYPE=\"FreeBSD4\" -DOSARCH=\"FreeBSD\" -DOJI  \
-I../../../../../dist/include -I../../../../../dist/include \
-I/.amd_mnt/postie/disk0/home/szhang/temp/mozilla/dist/include/nspr      \
-I/home/szhang/local/qt/include -DQT_GENUINE_STR -I./.. -I/usr/X11R6/include   -fPIC  \
-I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith \
-Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wshadow -pedantic \
-Wno-long-long -pipe -pthread -O2  -DNDEBUG -DTRIMMED -I/usr/X11R6/include \
-DMOZILLA_CLIENT -include ../../../../../config-defs.h \
-Wp,-MD,.deps/moc_nsTimerEventHandler.pp moc_nsTimerEventHandler.cpp In file included \
from /home/szhang/local/qt/include/qarray.h:42,  from \
/home/szhang/local/qt/include/qcstring.h:43,  from \
/home/szhang/local/qt/include/qstring.h:43,  from \
/home/szhang/local/qt/include/qwindowdefs.h:44,  from \
/home/szhang/local/qt/include/qobject.h:43,  from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qgarray.h: In method `char * QGArray::at(unsigned int) \
                const':
/home/szhang/local/qt/include/qgarray.h:109: warning: declaration of `index' shadows \
global declaration In file included from /home/szhang/local/qt/include/qcstring.h:43,
                 from /home/szhang/local/qt/include/qstring.h:43,
                 from /home/szhang/local/qt/include/qwindowdefs.h:44,
                 from /home/szhang/local/qt/include/qobject.h:43,
                 from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qarray.h: In method `QArray<type>::QArray(int)':
/home/szhang/local/qt/include/qarray.h:58: warning: declaration of `size' shadows a \
                member of `this'
/home/szhang/local/qt/include/qarray.h: In method `bool QArray<type>::resize(unsigned \
                int)':
/home/szhang/local/qt/include/qarray.h:69: warning: declaration of `size' shadows a \
                member of `this'
/home/szhang/local/qt/include/qarray.h: In method `bool QArray<type>::fill(const type \
                &, int = (-1))':
/home/szhang/local/qt/include/qarray.h:72: warning: declaration of `size' shadows a \
member of `this' In file included from \
/home/szhang/local/qt/include/qwindowdefs.h:44,  from \
/home/szhang/local/qt/include/qobject.h:43,  from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qstring.h: In method `class QString & \
                QString::insert(unsigned int, char)':
/home/szhang/local/qt/include/qstring.h:440: warning: declaration of `index' shadows \
                global declaration
/home/szhang/local/qt/include/qstring.h: In method `int QString::find(char, int = 0, \
                bool = TRUE) const':
/home/szhang/local/qt/include/qstring.h:723: warning: declaration of `index' shadows \
                global declaration
/home/szhang/local/qt/include/qstring.h: In method `int QString::findRev(char, int = \
                -1, bool = TRUE) const':
/home/szhang/local/qt/include/qstring.h:726: warning: declaration of `index' shadows \
                global declaration
/home/szhang/local/qt/include/qstring.h: In method `int QString::find(const char *, \
                int = 0) const':
/home/szhang/local/qt/include/qstring.h:731: warning: declaration of `index' shadows \
                global declaration
/home/szhang/local/qt/include/qstring.h: In method `int QString::findRev(const char \
                *, int = -1) const':
/home/szhang/local/qt/include/qstring.h:734: warning: declaration of `index' shadows \
global declaration In file included from /home/szhang/local/qt/include/qsize.h:42,
                 from /home/szhang/local/qt/include/qrect.h:42,
                 from /home/szhang/local/qt/include/qregion.h:43,
                 from /home/szhang/local/qt/include/qevent.h:43,
                 from /home/szhang/local/qt/include/qobject.h:45,
                 from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qpoint.h: In method `void QPoint::setX(int)':
/home/szhang/local/qt/include/qpoint.h:124: warning: declaration of `x' shadows a \
                member of `this'
/home/szhang/local/qt/include/qpoint.h: In method `void QPoint::setY(int)':
/home/szhang/local/qt/include/qpoint.h:127: warning: declaration of `y' shadows a \
member of `this' In file included from /home/szhang/local/qt/include/qregion.h:43,
                 from /home/szhang/local/qt/include/qevent.h:43,
                 from /home/szhang/local/qt/include/qobject.h:45,
                 from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qrect.h: In method `QRect::QRect(int, int, int, int)':
/home/szhang/local/qt/include/qrect.h:154: warning: declaration of `height' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h:154: warning: declaration of `width' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h:154: warning: declaration of `top' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h:154: warning: declaration of `left' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h: In method `void QRect::setX(int)':
/home/szhang/local/qt/include/qrect.h:213: warning: declaration of `x' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h: In method `void QRect::setY(int)':
/home/szhang/local/qt/include/qrect.h:216: warning: declaration of `y' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h: In method `bool QRect::contains(int, int, bool \
                = FALSE) const':
/home/szhang/local/qt/include/qrect.h:243: warning: declaration of `y' shadows a \
                member of `this'
/home/szhang/local/qt/include/qrect.h:243: warning: declaration of `x' shadows a \
member of `this' In file included from /home/szhang/local/qt/include/qobject.h:45,
                 from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qevent.h: In method `QEvent::QEvent(QEvent::Type)':
/home/szhang/local/qt/include/qevent.h:117: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QTimerEvent::QTimerEvent(int)':
/home/szhang/local/qt/include/qevent.h:137: warning: declaration of `timerId' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QMouseEvent::QMouseEvent(QEvent::Type, const QPoint &, const QPoint \
                &, int, int)':
/home/szhang/local/qt/include/qevent.h:151: warning: declaration of `state' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:151: warning: declaration of `button' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h:151: warning: declaration of `globalPos' \
                shadows a member of `this'
/home/szhang/local/qt/include/qevent.h:151: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:151: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QWheelEvent::QWheelEvent(const \
                QPoint &, const QPoint &, int, int)':
/home/szhang/local/qt/include/qevent.h:176: warning: declaration of `state' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:176: warning: declaration of `delta' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:176: warning: declaration of `globalPos' \
                shadows a member of `this'
/home/szhang/local/qt/include/qevent.h:176: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QKeyEvent::QKeyEvent(QEvent::Type, \
int, int, int, const QString & = QString::null, bool = FALSE, short unsigned int = \
                1)':
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `count' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `text' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `state' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `ascii' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `key' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:203: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QFocusEvent::QFocusEvent(QEvent::Type)':
/home/szhang/local/qt/include/qevent.h:231: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QPaintEvent::QPaintEvent(const \
                QRegion &, bool = TRUE)':
/home/szhang/local/qt/include/qevent.h:251: warning: declaration of `erased' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QPaintEvent::QPaintEvent(const \
                QRect &, bool = TRUE)':
/home/szhang/local/qt/include/qevent.h:256: warning: declaration of `erased' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QMoveEvent::QMoveEvent(const \
                QPoint &, const QPoint &)':
/home/szhang/local/qt/include/qevent.h:276: warning: declaration of `oldPos' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h:276: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QResizeEvent::QResizeEvent(const \
                QSize &, const QSize &)':
/home/szhang/local/qt/include/qevent.h:290: warning: declaration of `oldSize' shadows \
                a member of `this'
/home/szhang/local/qt/include/qevent.h:290: warning: declaration of `size' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QShowEvent::QShowEvent(bool)':
/home/szhang/local/qt/include/qevent.h:317: warning: declaration of `spontaneous' \
                shadows a member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QHideEvent::QHideEvent(bool)':
/home/szhang/local/qt/include/qevent.h:328: warning: declaration of `spontaneous' \
                shadows a member of `this'
/home/szhang/local/qt/include/qevent.h: In method `QDropEvent::QDropEvent(const \
                QPoint &, QEvent::Type = Drop)':
/home/szhang/local/qt/include/qevent.h:344: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QDragMoveEvent::QDragMoveEvent(const QPoint &, QEvent::Type = \
                DragMove)':
/home/szhang/local/qt/include/qevent.h:383: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QDragEnterEvent::QDragEnterEvent(const QPoint &)':
/home/szhang/local/qt/include/qevent.h:399: warning: declaration of `pos' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QChildEvent::QChildEvent(QEvent::Type, QObject *)':
/home/szhang/local/qt/include/qevent.h:429: warning: declaration of `child' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:429: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method \
                `QCustomEvent::QCustomEvent(QEvent::Type, void *)':
/home/szhang/local/qt/include/qevent.h:443: warning: declaration of `data' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h:443: warning: declaration of `type' shadows a \
                member of `this'
/home/szhang/local/qt/include/qevent.h: In method `void QCustomEvent::setData(void \
                *)':
/home/szhang/local/qt/include/qevent.h:445: warning: declaration of `data' shadows a \
member of `this' In file included from \
/home/szhang/local/qt/include/qstringlist.h:44,  from \
/home/szhang/local/qt/include/qobject.h:47,  from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qregexp.h: In method `void QRegExp::setPattern(const \
                QString &)':
/home/szhang/local/qt/include/qregexp.h:72: warning: declaration of `pattern' shadows \
                a member of `this'
/home/szhang/local/qt/include/qregexp.h: In method `int QRegExp::find(const QString \
                &, int)':
/home/szhang/local/qt/include/qregexp.h:77: warning: declaration of `index' shadows \
global declaration In file included from nsTimerEventHandler.h:30,
                 from moc_nsTimerEventHandler.cpp:16:
/home/szhang/local/qt/include/qobject.h: In method `bool QObject::connect(const \
                QObject *, const char *, const char *) const':
/home/szhang/local/qt/include/qobject.h:210: warning: declaration of `sender' shadows \
a member of `this' In file included from /home/szhang/local/qt/include/qlist.h:42,
                 from /home/szhang/local/qt/include/qstrlist.h:43,
                 from /home/szhang/local/qt/include/qmetaobject.h:43,
                 from moc_nsTimerEventHandler.cpp:17:
/home/szhang/local/qt/include/qglist.h: In method `void * QGList::at(unsigned int)':
/home/szhang/local/qt/include/qglist.h:173: warning: declaration of `index' shadows \
                global declaration
moc_nsTimerEventHandler.cpp: At top level:
moc_nsTimerEventHandler.cpp:45: new declaration `static void \
nsTimerEventHandler::staticMetaObject()' nsTimerEventHandler.h:34: ambiguates old \
                declaration `static class QMetaObject * \
                nsTimerEventHandler::staticMetaObject()'
moc_nsTimerEventHandler.cpp: In function `void \
__static_initialization_and_destruction_0(int, int)': moc_nsTimerEventHandler.cpp:29: \
no matching function for call to `QMetaObjectInit::QMetaObjectInit (QMetaObject * \
                (*)())'
/home/szhang/local/qt/include/qmetaobject.h:259: candidates are: \
                QMetaObjectInit::QMetaObjectInit(void (*)())
/home/szhang/local/qt/include/qmetaobject.h:261:                 \
                QMetaObjectInit::QMetaObjectInit(const QMetaObjectInit &)
gmake: *** [moc_nsTimerEventHandler.o] Error 1



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic