Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - trevz

Pages: [1]
1
Software / Building Kde-pim/pi On Solaris? (solved - Sort Of)
« on: November 17, 2005, 07:36:55 pm »
Quote
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:
Quote
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...
Code: [Select]
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:
Code: [Select]
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:
   
Code: [Select]
QApplication::setStyle(new !QPlatinumStyle());to
   
Code: [Select]
QApplication::setStyle(QStyleFactory::create("platinum"));
Similarly, in pwminit.cpp I had to drop in includes for both qstylefactory.h and  qplatinumstyle.h, and change
Code: [Select]
setStyle(new !QPlatinumStyle());to
Code: [Select]
setStyle(QStyleFactory::create("platinum"));
One final fix I did (again not elegantly but it worked) was to fake the path to qdialog.h thus:
Code: [Select]
# 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

2
Software / Building Kde-pim/pi On Solaris? (solved - Sort Of)
« on: November 14, 2005, 08:15:08 am »
Quote
I had another look at this over the weekend, and I have now managed to build it (apart from the gammu stuff, which I don't have the hardware for anyway). It turned out to be a compiler problem: it doesn't build under gcc version 4.0, but does under 3.4.4. This could affect any platform, not just Solaris.

Doing the build turned out to be quite an adventure. If anyone is interested, please say so here, and I'll summarise as much as I can about how I did it. I'm going away for a few weeks, but if there is any interest I'll  post when I get back.

Regards,
P.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=86180\"][{POST_SNAPBACK}][/a][/div]

I'm a bit late to respond, but yes please pakman, I'd be interested to know how you got the build done. I'm trying to compile kdepimpi on Kubuntu Breezy and coming up with the same error.

Pages: [1]