KDE problem: Meta Object Compiler produces broken code
Vaughn Treude
plug-discuss@lists.plug.phoenix.az.us
Thu, 24 Oct 2002 22:15:51 -0600
Hello you KDE gurus out there:
I downloaded a KDE application called 'khotkeys" which I need to get running
as part of a larger project. It has two versions, one for KDE1 and one for
KDE3. (Why there's no KDE2 version, I don't know.) I'm actually running
KDE2, but I have a "KDE1" source tree with include files, libraries, etc.,
so I'm trying to get the KDE1 version compiled. It uses a program called
MOC (meta object compiler) which, if I understand correctly, extends any
class that's derived from the QT library's QObject class. (It adds some
methods which I believe related to communications between tasks or something
like that.) Now, MOC creates references to a data member called
staticMetaObject, which breaks the compile, because it doesn't exist in QT
1.45, which goes with the KDE 1.1.2 source I downloaded. Or at least, I
can't find any reference in the source. The problem may be that I got my
KDE and QT downloads from the Cygwin website, which is actually intended for
running Linux apps on Windows. So maybe the libraries are wrong. Or maybe
they don't match my version of moc. I can't use theirs, it's a Windows
executable. So why, you ask, don't I get KDE and QT from someplace else?
Because they apparently don't exist. Nobody else seems to be keeping these
old versions around. If they are, they don't show up on my search. Or
perhaps I should try to port this khotkeys application to KDE2, but I don't
have a clue as to what's involved. I have years of experience in C++, but I
know very little about this meta-object-system crap. So: (a) is there
another place for me to download old KDE versions - including old versions
of moc? and (b) If I do finally get it to compile, is there a chance it will
work on KDE 2?
Thanks,
Vaughn Treude
Nakota Software, Inc.
P. S. The KDE 3 version won't compile, either, of course.