| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
I am trying to compile [0] and I get the errors below. It must be a stupid and simplething, but I can't figure out what it is. I am on Debian Sid, Qt 4.3.2-1, using KDevelop (I don't think this last thing matters, but...) Any ideas as to where to look for mistakes are welcomed :-) [0] http://perezmeyer.com.ar/temp/practico3/ g++ -c -pipe -fpermissive -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui -o moc_graphicsscene.o moc_graphicsscene.cpp /usr/bin/moc-qt4 -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui point.h -o moc_point.cpp g++ -c -pipe -fpermissive -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui -o moc_point.o moc_point.cpp moc_point.cpp:37: error: âstaticMetaObjectâ is not a member of âQGraphicsItemâ moc_point.cpp: In member function âvirtual void* Point::qt_metacast(const char*)â: moc_point.cpp:51: error: âqt_metacastâ is not a member of âQGraphicsItemâ moc_point.cpp: In member function âvirtual int Point::qt_metacall(QMetaObject::Call, int, void**)â: moc_point.cpp:56: error: âqt_metacallâ is not a member of âQGraphicsItemâ make[1]: *** [moc_point.o] Error 1 make[1]: se sale del directorio `/mnt/damian/uns/psg/practico3/src' make: *** [sub-src-make_default] Error 2 ***Terminado con estado 2*** -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
On 11/2/07, Lisandro Damián Nicanor Pérez Meyer <perezmeyer@xxxxxxxxx> wrote: > I am trying to compile [0] and I get the errors below. It must be a stupid and > simplething, but I can't figure out what it is. > > I am on Debian Sid, Qt 4.3.2-1, using KDevelop (I don't think this last thing > matters, but...) > > Any ideas as to where to look for mistakes are welcomed :-) > > [0] http://perezmeyer.com.ar/temp/practico3/ > > g++ -c -pipe -fpermissive -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui -o > moc_graphicsscene.o moc_graphicsscene.cpp > /usr/bin/moc-qt4 -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui > point.h -o moc_point.cpp > g++ -c -pipe -fpermissive -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iui -o > moc_point.o moc_point.cpp > moc_point.cpp:37: error: 'staticMetaObject' is not a member of 'QGraphicsItem' > moc_point.cpp: In member function 'virtual void* Point::qt_metacast(const > char*)': > moc_point.cpp:51: error: 'qt_metacast' is not a member of 'QGraphicsItem' > moc_point.cpp: In member function 'virtual int > Point::qt_metacall(QMetaObject::Call, int, void**)': > moc_point.cpp:56: error: 'qt_metacall' is not a member of 'QGraphicsItem' > make[1]: *** [moc_point.o] Error 1 > make[1]: se sale del directorio `/mnt/damian/uns/psg/practico3/src' > make: *** [sub-src-make_default] Error 2 > ***Terminado con estado 2*** QGraphicsItem doesn't inherit from QObject. Remove the Q_OBJECT macro from point.h. -- [ signature omitted ]