<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>To clarify - After searching for a way to build KMM on Windows, I ended up with "emerge". It will (with quite a few fixes since it is a bit out of date) download and build everything needed to build KMM on a pure Windows system, e.g. mingw, gcc, msys, QT, KDE, libraries, and KMM. The emerge scripts create build folders based upon the names of the script files. It looks like the script file names are not always maintained and many script file names have versions and dates that are different from what they actually download and build. The script in emerge for KMM built version 4.6.4 but was still named "kmymoney-4.6.1-20110918.py". I modified the script to pull the master branch from git (that option was in the original script but was not used) but I didn't change the script file name (a new script name would disconnect it from the emerge git repository). So the git master branch is getting built in the folder tree containing the name "kmymoney-4.6.1-20110918". I am not mixing versions. Sorry for the confusion.<BR> <BR>Yes, the "emerge --cleanbuild" removed the entire KMM build folder tree.<BR> <BR>Next time I do a build I will capture the actual error messages and file a bug report.<BR> <BR>Thanks.<BR> Jeff.<BR> <BR><div>> Subject: Re: Can't build gitHEAD version on windows<br>> To: kmymoney-devel@kde.org<br>> From: agander93@gmail.com<br>> Date: Sun, 15 May 2016 11:28:33 +0100<br>> <br>> <br>> <br>> Hi Jeff<br>> <br>> See below.<br>> <br>> On 15/05/16 10:02, Christian Dávid wrote:<br>> > Hi Jeff,<br>> ><br>> > I do not know what "emerge --cleanbuild" does. If it means "remove the hole build folder and rebuild" then you found a bug.<br>> ><br>> > Maybe gcc on Linux is more forgiving in this case, so I never saw this. However, I will try to fix this. Due to a lot of work this will probably take some time. If possible, could you file a bug report? I will mark myself as assignee so I cannot forget it.<br>> ><br>> > Greetings<br>> > Christian<br>> ><br>> >> jeffjl.kde@outlook.com hat am 7. Mai 2016 um 05:53 geschrieben:<br>> >><br>> >><br>> >> Hi Christian,<br>> >><br>> >> I just tried<br>> >> "emerge --cleanbuild kmymoney"<br>> >><br>> >> which removed everything under ...\build\extragear\kmymoney-4.6.1-20110918\work\mingw4-RelWithDebInfo-gitHEAD"<br>> <br>> I'm puzzled by the reference to "kmymoney-4.6.1-20110918".  Why is it <br>> not referencing the 4.7.xxxxx location?  There can be problems if there <br>> is more than one KMM version installed.<br>> <br>> I must add that I know nothing about Windows installs so ignore me if I <br>> am talking rubbish.<br>> <br>> Allan<br>> <br>> >><br>> >> followed by<br>> >> "emerge --update kmymoney".<br>> >><br>> >> Which seems to recompile everything. Still breaks at linking kmymoney.exe due to multiple payeeIdentifierLoader.<br>> >><br>> >> Sorry about the "gitHEAD" nomenclature. That's what the emerge python script uses. It just did a git today from the master branch. In fact, I've been trying this (new git) every month or so since about August 2015. As I recall, it has always had this linking problem. (In the mean time I've just been using the 4.7.2 branch because it builds.)<br>> >><br>> >> I've always assumed it was a Windows thing, and that it would eventually get fixed with the next release (when you tried to build the Windows version).  I just recently chased down what's wrong and decided to ask if it was an easy fix.<br>> >><br>> >> Thanks,<br>> >> Jeff.<br>> >><br>> >>> From: christian-david@web.de<br>> >>> To: kmymoney-devel@kde.org<br>> >>> Subject: Re: Can't build gitHEAD version on windows<br>> >>> Date: Fri, 6 May 2016 20:59:55 +0200<br>> >>><br>> >>> Hi Jeff,<br>> >>><br>> >>> did you use a "make clean" or even better removed the build folder and rerun<br>> >>> cmake? My gcc on Linux has no problems building it at all.<br>> >>><br>> >>> payeeIdentifierLoader is automatically added to kmymoney.exe because it is<br>> >>> marked "LINK_PUBLIC" in target_link_libraries of kmm_mymoney. This is not good<br>> >>> (I did it as a work around). If this really needs to be corrected, the library<br>> >>> has to be build as part of kmm_mymoney with correct export attributes (which<br>> >>> is some work, so I hope the clean will solve the issue :/)<br>> >>><br>> >>> Greetings<br>> >>> Christian<br>> >>><br>> >>> P.S.: I assume you are using the branch master. HEAD and 4.7.90 do not include<br>> >>> too much info. Especially as "HEAD" is a local ref and can stay the same<br>> >>> forever if you never pull.<br>> >>><br>> >>> Am Freitag, 6. Mai 2016, 15:42:05 CEST schrieb jeffjl.kde@outlook.com:<br>> >>>> I got version 4.7.2 to build on windows using emerge and mingw.<br>> >>>><br>> >>>> I have trouble with version 4.7.90. It gets to linking kmymoney.exe and gets<br>> >>>> "multiple definition of payeeIdentifierLoader".  The problem seems to be<br>> >>>> that kmm_mymoney.dll already contains payeeIdentifierLoader but<br>> >>>> kmymoney.exe links both the dll and the payeeIdentifierLoader itself.  If I<br>> >>>> manually edit the<br>> >>>> ...work\mingw4-RelWithDebInfo-gitHEAD\kmymoney\CMakeFiles\kmymoney.dir\link<br>> >>>> .txt and remove "..\bin\libkmm_payeeidentifier_loader.a", it links OK.  I<br>> >>>> cannot figure out how to fix the make files such that<br>> >>>> libkmm_payeeidentifier_loader.a is not added to the link.txt file.<br>> >>>><br>> >>>> This same problem occurs linking in some of the test programs (the first one<br>> >>>> being mymoneyfiletest), but I can work around that by not building the test<br>> >>>> programs.<br>> >>>><br>> >>>> How does libkmm_payeeidentifier_loader.a get added to the link.txt file?<br>> >>>> What do I change to get it to stop doing that?<br>> >>>><br>> >>>> Thanks.<br>> >>>> Jeff<br>> >>><br>> >>><br>> >><br>> ><br>> <br></div>                                        </div></body>
</html>