<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'>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>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><div>> 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></div>                                          </div></body>
</html>