Add new comment

asoliverez's picture

KMyMoney on Windows

This is a message that Cristian Onet sent to the KMyMoney KDE4 mailing list today. I got his permission to post it here, as I thought it would be interesting for everyone to see.

DISCLAIMER: THIS IS NOT EVEN BETA! IT WILL EAT YOUR  DOG!! DON'T TRY THIS AT HOME! Done, there you have your warning. Now to the point.

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

Hi,

Yesterday I've managed to compile and run KMyMoney on Windows (see the
attached screenshot). I'll try to summarize all the issues I've
observed while doing this (some of them were already fixed yesterday).
First of all I would like to give some kudos for the KDE on Windows
project they have made developing KDE on Windows really easy (see the
emerge tool like on Gentoo).
I have compiled with msvc2008 and did not used gcc on purpose (I've
wanted to see what does another compiler has to say about the code :)
). This lead to the first group of issues caused by gcc specific
entities in the code. So here is the list:
1. '__attribute__', '__func__' and '__PRETTY_FUNCTION__'
2. K3Process is no longer supported on windows but only libkgpg uses
it and it will be ported by Thomas so this is OK (also we have to
remove the include from some dialog which does not uses it)
3. When linking kmymoney we don't specify KDE_UTILS lib and QT_SQL_LIB in cmake
4. Really strange code like 'if ((periodType() == "day") and (mult()
== "1")) return("daily");' (in GncRecurrence::getFrequency())

; since
when can 'and' be used in C++ :) ?
5. D-Bus another instance check uses 'getpid' we should do this in a
more portable way (find some qt function that returns the pid of the
current process)
6. the compiler complained about all the #warning 'Port to KDE' stuff
being invalid directives

That's all :) (it's shorter than I thought it will be) I hope I didn't
forget anything because while writing this I don't have the diff.
I didn't manage to open a file yet but that has nothing to do with
kmymoney. I get some 'Could not talk to klauncher' error after the
D-Bus checking which causes D-Bus to crash (this is a KDE runtime
environment problem).

I'll get back with this subject once I'll manage to open a file :).

Regards,
Cristian

 

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

He has later managed to get it working by changing KUrl.path() to KUrl.toLocalFile(), and every view seems to be working, at least from a first glance.

 I'm not a fan of Windows, but this is important. The following exchange took place after he sent this message:

Alvaro: Can I post this message on my blog? For the crowds asking for Windows support (though I'm not a big fan of it, it is good news)

Cristian: Sure. I'm not a fan either but freedom of choice is a good thing (even if the choice is to use a proprietary OS).

Thomas: In general I agree, but just too many times somebody else takes care of the choice for you  (e.g. workplaces) :(

 So, I have mixed feelings about KMM running on Windows, but I know it's a good thing anyway.

 

 

AttachmentSize
kymoney_on_win4.png108.94 KB
kymoney_on_win.png368.94 KB

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Full HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Twitter icon
Facebook icon
Google icon
StumbleUpon icon
Del.icio.us icon
Digg icon
LinkedIn icon
MySpace icon
Newsvine icon
Reddit icon
Technorati icon
Yahoo! icon
e-mail icon