You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, March 6th 2006, 11:21pm

[Kopete] compiler error

I tried to compile kopete 0.10.3 and the compilation ended up with many, many compiler errors. I am currently running Suse Linux 9.1, and I have kde 3.2. Also, I was running as root. I typed ./configure, then I typed "make" and it started to output a shell script:

here is a small part of the output, im not sure if this is normal to echo out the actual script:
----------------------------------------------------------------------------
sr/include/libxml2 -I../../kopete/libkopete -I../../kopete/libkopete/ui -I../../kopete/libkopete/ui -I../../kopete/libkopete/private -I../../kopete/libkopete/ui -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT kopeteonlinestatus.lo -MD -MP -MF ".deps/kopeteonlinestatus.Tpo" -c -o kopeteonlinestatus.lo kopeteonlinestatus.cpp; \
then mv -f ".deps/kopeteonlinestatus.Tpo" ".deps/kopeteonlinestatus.Plo"; else rm -f ".deps/kopeteonlinestatus.Tpo"; exit 1; fi
/usr/lib/qt3/bin/moc ./kopeteonlinestatusmanager.h -o kopeteonlinestatusmanager.moc
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I/usr/include/libxml2 -I/usr/include/libxml2 -I../../kopete/libkopete -I../../kopete/libkopete/ui -I../../kopete/libkopete/ui -I../../kopete/libkopete/private -I../../kopete/libkopete/ui -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT kopeteonlinestatusmanager.lo -MD -MP -MF ".deps/kopeteonlinestatusmanager.Tpo" -c -o kopeteonlinestatusmanager.lo kopeteonlinestatusmanager.cpp; \


----------------------------------------------------------------------------


here are the compiler errors:

------------------------------------------------------------------------
In file included from kopetelistviewsearchline.cpp:19:
kopetelistviewsearchline.h:21:33: klistviewsearchline.h: No such file or directory
In file included from kopetelistviewsearchline.cpp:19:
kopetelistviewsearchline.h:30: error: syntax error before `{' token
kopetelistviewsearchline.h:34: error: destructors must be member functions
kopetelistviewsearchline.h:36: error: syntax error before `&' token
kopetelistviewsearchline.h:40: error: `QListViewItem' was not declared in this
scope
kopetelistviewsearchline.h:40: error: `it' was not declared in this scope
kopetelistviewsearchline.h:40: error: virtual outside class declaration
kopetelistviewsearchline.h:41: error: `QListViewItem' was not declared in this
scope
kopetelistviewsearchline.h:41: error: `it' was not declared in this scope
kopetelistviewsearchline.h:41: error: syntax error before `)' token
kopetelistviewsearchline.h:41: error: virtual outside class declaration
kopetelistviewsearchline.h:49: error: syntax error before `}' token
kopetelistviewsearchline.cpp:28: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.cpp: In constructor `
Kopete::UI::ListView::SearchLine::SearchLine(QWidget*,
Kopete::UI::ListView::ListView*, const char*)':
kopetelistviewsearchline.cpp:28: error: class `Kopete::UI::ListView::SearchLine
' does not have any field named `KListViewSearchLine'
kopetelistviewsearchline.cpp: At global scope:
kopetelistviewsearchline.cpp:33: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.cpp:38: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.cpp: In member function `void
Kopete::UI::ListView::SearchLine::updateSearch(const QString&)':
kopetelistviewsearchline.cpp:44: error: `listView' undeclared (first use this
function)
kopetelistviewsearchline.cpp:44: error: (Each undeclared identifier is reported
only once for each function it appears in.)
kopetelistviewsearchline.cpp:47: error: `search' undeclared (first use this
function)
kopetelistviewsearchline.cpp:47: error: `text' undeclared (first use this
function)
kopetelistviewsearchline.cpp:70: error: `keepParentsVisible' undeclared (first
use this function)
kopetelistviewsearchline.cpp:71: error: `
Kopete::UI::ListView::checkItemParentsVisible' cannot be used as a function
kopetelistviewsearchline.cpp:73: error: `checkItemParentsNotVisible' undeclared
(first use this function)
kopetelistviewsearchline.cpp: At global scope:
kopetelistviewsearchline.cpp:81: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.cpp: In member function `void
Kopete::UI::ListView::SearchLine::checkItemParentsNotVisible()':
kopetelistviewsearchline.cpp:87: error: `itemMatches' undeclared (first use
this function)
kopetelistviewsearchline.cpp: At global scope:
kopetelistviewsearchline.cpp:96: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.cpp: In member function `bool
Kopete::UI::ListView::SearchLine::checkItemParentsVisible(QListViewItem*)':
kopetelistviewsearchline.cpp:100: error: `
Kopete::UI::ListView::checkItemParentsVisible' cannot be used as a function
kopetelistviewsearchline.cpp:101: error: `itemMatches' undeclared (first use
this function)
kopetelistviewsearchline.cpp:111: error: `
Kopete::UI::ListView::checkItemParentsVisible' cannot be used as a function
kopetelistviewsearchline.cpp: At global scope:
kopetelistviewsearchline.cpp:122: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
In file included from kopetelistviewsearchline.cpp:133:
kopetelistviewsearchline.moc:23: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc:27: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc:27: error: assignment (not initialization) in
declaration
kopetelistviewsearchline.moc:28: error: incomplete type `
Kopete::UI::ListView::SearchLine' does not have member `staticMetaObject'
kopetelistviewsearchline.moc:51: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `QMetaObject*
Kopete::UI::ListView::SearchLine::staticMetaObject()':
kopetelistviewsearchline.moc:52: error: `metaObj' undeclared (first use this
function)
kopetelistviewsearchline.moc:54: error: `KListViewSearchLine' undeclared (first
use this function)
kopetelistviewsearchline.moc:54: error: syntax error before `::' token
kopetelistviewsearchline.moc: At global scope:
kopetelistviewsearchline.moc:69: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `void*
Kopete::UI::ListView::SearchLine::qt_cast(const char*)':
kopetelistviewsearchline.moc:72: error: syntax error before `::' token
kopetelistviewsearchline.moc: At global scope:
kopetelistviewsearchline.moc:76: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_invoke(int, QUObject*)':
kopetelistviewsearchline.moc:77: error: syntax error before `::' token
kopetelistviewsearchline.moc: At global scope:
kopetelistviewsearchline.moc:81: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_emit(int, QUObject*)':
kopetelistviewsearchline.moc:82: error: syntax error before `::' token
kopetelistviewsearchline.moc: At global scope:
kopetelistviewsearchline.moc:87: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_property(int, int, QVariant*)':
kopetelistviewsearchline.moc:88: error: syntax error before `::' token
kopetelistviewsearchline.moc: At global scope:
kopetelistviewsearchline.moc:91: error: invalid use of undefined type `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.h:29: error: forward declaration of `class
Kopete::UI::ListView::SearchLine'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_invoke(int, QUObject*)':
kopetelistviewsearchline.moc:76: warning: unused parameter `int _id'
kopetelistviewsearchline.moc:76: warning: unused parameter `QUObject*_o'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_emit(int, QUObject*)':
kopetelistviewsearchline.moc:81: warning: unused parameter `int _id'
kopetelistviewsearchline.moc:81: warning: unused parameter `QUObject*_o'
kopetelistviewsearchline.moc: In member function `bool
Kopete::UI::ListView::SearchLine::qt_property(int, int, QVariant*)':
kopetelistviewsearchline.moc:87: warning: unused parameter `int id'
kopetelistviewsearchline.moc:87: warning: unused parameter `int f'
kopetelistviewsearchline.moc:87: warning: unused parameter `QVariant*v'
make[4]: *** [kopetelistviewsearchline.lo] Error 1
make[4]: Leaving directory `/home/Erik/Documents/kopete/kopete-0.10.3/kopete/kopete/contactlist'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Erik/Documents/kopete/kopete-0.10.3/kopete/kopete'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Erik/Documents/kopete/kopete-0.10.3/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Erik/Documents/kopete/kopete-0.10.3'
--------------------------------------------------------------------------

...Does anyone here know what is going on here? Can anyone help me trouble shoot this problem?

This post has been edited 1 times, last edit by "Erikwillard" (Mar 6th 2006, 11:23pm)


2

Monday, March 6th 2006, 11:34pm

Which shell should I run?

I forgot to mention something that might be important.
The question is, which shell should I be compiling Kopete 0.10.3 in?
I just checked the konsole settings, and I was running bash.

3

Monday, March 6th 2006, 11:56pm

klistview.h does not exist!!!!

how silly of me, im a programmer and I missed this.

It seems that "klistview.h" does not even exist and thats
the error all together. Ok, so WHY is klistview.h missing, and where do I find it? Or how do I solve this problem...

4

Tuesday, March 7th 2006, 12:38am

fixed error, but another error...

I found that klistview.h was in /opt/kd3 during a system search. So, I typed "./configure --prefix=/opt/kde3" then I typed "make" and instead of the "klistview.h" file not found error, I now have this error, plus tons of errors after it (which are caused by one error...):

In file included from kopetelistviewsearchline.cpp:19:
kopetelistviewsearchline.h:21:33: klistviewsearchline.h: No such file or directory

... I even did a search for klistviewsearchline.h and its nowhere to be found on my system...

mattr

Trainee

Posts: 105

Location: US

Occupation: Software Engineer

  • Send private message

5

Tuesday, March 7th 2006, 5:39pm

RE: fixed error, but another error...

Kopete 0.10.3 won't compile on KDE 3.2 as we only support KDE 3.3 or KDE 3.4 with the 0.10 release series. You'll need to upgrade to KDE 3.3.x somehow.
--Matt