kMyMoney questions

First, sorry, I don’t know if this the appropriate place to ask this question. If it is not, please refer me to a more appropriate forum. My link to the kMyMoney forum is broken so I’m assuming that forum is shut down.

I am trying to build kMyMoney locally in Linux and also in Windows 11. For Linux dependencies, I found the bash script and ran it under ubuntu 22.04. Everything worked except that “python-yaml” and “libicu66” are not available. I searched around using apt search and found potential substitutes.

Is “python3-yaml” an appropriate substitute for “python-yaml”?

Is “libicu70” an appropriate substitute for “libicu66”?

This is the place. The old forum is still available as a read-only
archive, but no longer accepting new posts. For other options, see
KMyMoney - Support | KMyMoney (although the footer does still have
a link to the old forums.) It’s really a personal choice between here
and the mailing list.

Which Linux distro are you using, and where did you get that script? I
don’t see it in our git repository. My guess is that it just hasn’t
been updated in a while, so it may well be calling for old versions of

I would guess that those two substitutes are OK, but the only way to be
sure is to try it.

Building on Windows has always been an adventure, feel free to post
back with whatever issues you run into. I believe the Windows images
you can get through the download section are all

My Linux distro is Kubuntu 22.04.

The script is located here and of course, now that I try to retrace my steps, I can’t. Have a feeling it’s getting dependencies for building the vcpkg program itself so its probably a red herring for me.

My objective is to build kMyMoney locally so I can modify it for my purposes. I don’t think a cross-compiled Windows image is going to let me meet that objective, is it?

You had suggested before I download packages and run CMake. The problem there is identifying the packages. Apt searches like “gmp” return too many results to deal with for my beginners mind. That’s where vcpkg has appeal and so I’m going to drop back and pick up the vcpkg.json from the kMyMoney > Wiki >Build environment page and try again.

My Windows problems are infinitely more serious and just downright dangerous for me and for anyone trying to build kMyMoney on Windows using the vcpkg.json file. Please see my post just before this one titled kMyMoney vcpkg - probable viruses.

BTW, what virus protection software do you use on Linux? I was Googling to find something but all I came up with was Bitdefender and business protection packages that seem to be geared to servers, not local laptops.

Usually you can build KDE software on Linux using kdesrc-build: Get Involved/development/Build software with kdesrc-build - KDE Community Wiki

That should handle most dependencies automatically. Not sure why that wiki page recommends otherwise (I’m not familiar with kMyMoney, so maybe there is a reason)?

Windows and and antivirus often give false positives. For example I couldn’t even compile a Hello world program with vscode without antivirus deleting the binary and shouting Virus/Trojan. With Visual Studio it worked.
That being said I don’t know the vcpkg and can’t vouch for it being safe.

I doubt many people use antivirus on Linux. There is

One thing to remember when looking for dependency packages on a distro
like Kubuntu - you almost always need the one ending in -dev, which
includes header files and other things necessary to compile against
that library, not just to link with and use it. The process is
generally run cmake, identify missing packages, interpret which is the
actual package to provide that, install it, rinse and repeat. It can
certainly be time consuming. One thing you might try is to identify
all the packages Kubuntu says the KMyMoney package depends on, and then
install the -dev versions of those. That should get you fairly far
along that path. (I use Gentoo, which builds everything from scratch,
so even when compilling something new, I often have the deps already
installed, and I don’t need to use -dev packages. However, source
based distros are not very common.)


In my experience with AV programs on Windows and Kaspersky in particular, false positives are very rare. So, I’m still not sure where you’re getting the impression that Windows and antivirus programs often give false positives. I’m confused by your example because neither vscode not Visual Studio perform virus detection/protection functions. Ignoring viruses doesn’t make them less dangerous.

I finally went and browsed at the KMyMoney wiki on Invent, and admit I had not previously looked at it. I believe the suggestion to use vcpkg was made by one developer looking for a single system to compile KMM for multiple platforms. I consider it to still be a work in progress, and really cannot be sure if it will eventually be more fully fleshed out or replaced by something else.

For a bit more detail, is a script specifically for setting up vcpkg, and has nothing specific to do with KMyMoney. As I see it, it comes from Microsoft, and you would have to ask them whether it has been kept up to date.

In terms of Windows AV results, in my relatively small experience actually using Windows, my anti-virus hits were probably near half false positives. I consider that due to my being very careful with what I downloaded, and with using lots of FOSS software. If you search for any variant on “windows anti-virus false positives” you should find lots of stories. I won’t go as far as to say any positive is a false positive, but if you search for any other folks getting the same result, and you trust the source of the file being flagged, you are likely safe.

Something I forgot to mention in a previous post - I think a number of linux based anti-virus products are actually for scanning email content on Linux email servers, when the email clients are more likely to be running Windows. That is for protecting the email recipients, not for directly protecting the linux box.