If you are using 4.0 or later, you will need to use a suitable alternative version (I used version 3.4.4) and use that to do the build. I know nothing about the Ubuntu distributions, so I have no idea what other versions are available. If you are very lucky, a suitable version may already be installed, and you may be able to run it with a command like:
gcc -V 3.4.4
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Much appreciated, P. I picked up that I should compile with the earlier versions of gcc and g++ (and did so inelegantly by symlinking those commands to the relevant versions, which are fortunately supplied with Kubuntu - you've reminded me to symlink back now!).
It didn't take me *too* long to realise that I also had to install every likely-looking Qt and KDE development package, including build-essential, linux-headers-[your kernel version], kde-devel etc.
I'm fairly sure the way I got past the error you mentioned...
koeditordetails.cpp:56: error: 'KCal::Attendee' is not a template type
...was to install libkcal2a and libkcal2-dev.
The thorniest problem for me was then errors connected with QPlatinumStyle, viz:
main.cpp: In function `int main(int, char**)':
main.cpp:34: error: `QPlatinumStyle?' has not been declared
From [a href=\"http://lists.debian.org/debian-devel/2003/02/msg00355.html]this posting[/url] I gleaned that Qt styles are now handled as plugins, at least in Debian. Following advice from
here and
here I discovered that I had to edit the three troublesome main.cpp files (gulp!). In each, I added qstylefactory.h as an include in the headers and then changed this line:
QApplication::setStyle(new !QPlatinumStyle());
to
QApplication::setStyle(QStyleFactory::create("platinum"));
Similarly, in pwminit.cpp I had to drop in includes for both qstylefactory.h and qplatinumstyle.h, and change
setStyle(new !QPlatinumStyle());
to
setStyle(QStyleFactory::create("platinum"));
One final fix I did (again not elegantly but it worked) was to fake the path to qdialog.h thus:
# cd /usr/local
# mkdir qt && cd qt && ln -s /usr/include/qt/include
The blighter then finally compiled and the binaries are running sweetly, allowing me to sync without problems between kopi/kapi on my desktop and kopi/kapi on my Zaurus (collie),
It took me a loooong time to work that lot out (since I'm no programmer). Hope the above might help some other mortal, and thanks again for your help Pakman.
Cheers,
TrevZ