This forum has been archived. All content is frozen. Please use KDE Discuss instead.

ktorrent 2.2.5 compiled fault........

Tags: None
(comma "," separated)
linfves
Registered Member
Posts
1
Karma
0
/opt/qt-3.3.8/bin/moc ./autorotatelogjob.h -o autorotatelogjob.moc
/bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I./../../libktorrent -I/opt/kde-3.5.8/include -I/opt/qt-3.3.8/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions -MT autorotatelogjob.lo -MD -MP -MF .deps/autorotatelogjob.Tpo -c -o autorotatelogjob.lo autorotatelogjob.cpp
In file included from autorotatelogjob.cpp:88:
autorotatelogjob.moc:12:2: error: #error "The header file 'autorotatelogjob.h' doesn't include <QObject>."
In file included from autorotatelogjob.cpp:88:
autorotatelogjob.moc:39: error: 'const QMetaObject bt::AutoRotateLogJob::staticMetaObject' is not a static member of 'class bt::AutoRotateLogJob'
autorotatelogjob.moc:39: error: variable 'const QMetaObject bt::AutoRotateLogJob::staticMetaObject' has initializer but incomplete type
autorotatelogjob.moc:44: error: prototype for 'const QMetaObject* bt::AutoRotateLogJob::metaObject() const' does not match any in class 'bt::AutoRotateLogJob'
autorotatelogjob.h:38: error: candidate is: virtual QMetaObject* bt::AutoRotateLogJob::metaObject() const
autorotatelogjob.moc:44: error: 'const QMetaObject* bt::AutoRotateLogJob::metaObject() const' cannot be overloaded
autorotatelogjob.h:38: error: with 'virtual QMetaObject* bt::AutoRotateLogJob::metaObject() const'
autorotatelogjob.moc: In member function 'const QMetaObject* bt::AutoRotateLogJob::metaObject() const':
autorotatelogjob.moc:46: error: cannot convert 'QMetaObject* (*)()' to 'const QMetaObject*' in return
autorotatelogjob.moc: At global scope:
autorotatelogjob.moc:49: error: no 'void* bt::AutoRotateLogJob::qt_metacast(const char*)' member function declared in class 'bt::AutoRotateLogJob'
autorotatelogjob.moc: In member function 'void* bt::AutoRotateLogJob::qt_metacast(const char*)':
autorotatelogjob.moc:55: error: 'qt_metacast' is not a member of 'bt::AutoRotateLogJob::qt_metacast(const char*)::QMocSuperClass'
autorotatelogjob.moc: At global scope:
autorotatelogjob.moc:58: error: 'int bt::AutoRotateLogJob::qt_metacall' is not a static member of 'class bt::AutoRotateLogJob'
autorotatelogjob.moc:58: error: incomplete type 'QMetaObject' used in nested name specifier
autorotatelogjob.moc:58: error: expected primary-expression before 'int'
autorotatelogjob.moc:58: error: expected primary-expression before 'void'
autorotatelogjob.moc:58: error: initializer expression list treated as compound expression
autorotatelogjob.moc:59: error: expected ',' or ';' before '{' token
make[4]: *** [autorotatelogjob.lo] Error 1
make[4]: Leaving directory `/home/linfves/Download/ktorrent-2.2.5/libktorrent/util'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/linfves/Download/ktorrent-2.2.5/libktorrent'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/linfves/Download/ktorrent-2.2.5/libktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/linfves/Download/ktorrent-2.2.5'
make: *** [all] Error 2
George
Moderator
Posts
5421
Karma
1

Sat Mar 08, 2008 11:36 am
#error "The header file 'autorotatelogjob.h' doesn't include <QObject>

This can only happen when you are mixing bits of qt3 and qt4, the QObject header file is not part of qt3. So it looks like moc (which generates autorotatelogjob.moc) is the one from qt4.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]