Hi Jeff, I do not know what "emerge --cleanbuild" does. If it means "remove the hole build folder and rebuild" then you found a bug.
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. Greetings Christian > jeffjl....@outlook.com hat am 7. Mai 2016 um 05:53 geschrieben: > > > Hi Christian, > > I just tried > "emerge --cleanbuild kmymoney" > > which removed everything under > ...\build\extragear\kmymoney-4.6.1-20110918\work\mingw4-RelWithDebInfo-gitHEAD" > > > followed by > "emerge --update kmymoney". > > Which seems to recompile everything. Still breaks at linking kmymoney.exe due > to multiple payeeIdentifierLoader. > > 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.) > > 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. > > Thanks, > Jeff. > > > From: christian-da...@web.de > > To: kmymoney-devel@kde.org > > Subject: Re: Can't build gitHEAD version on windows > > Date: Fri, 6 May 2016 20:59:55 +0200 > > > > Hi Jeff, > > > > did you use a "make clean" or even better removed the build folder and > > rerun > > cmake? My gcc on Linux has no problems building it at all. > > > > payeeIdentifierLoader is automatically added to kmymoney.exe because it is > > marked "LINK_PUBLIC" in target_link_libraries of kmm_mymoney. This is not > > good > > (I did it as a work around). If this really needs to be corrected, the > > library > > has to be build as part of kmm_mymoney with correct export attributes > > (which > > is some work, so I hope the clean will solve the issue :/) > > > > Greetings > > Christian > > > > P.S.: I assume you are using the branch master. HEAD and 4.7.90 do not > > include > > too much info. Especially as "HEAD" is a local ref and can stay the same > > forever if you never pull. > > > > Am Freitag, 6. Mai 2016, 15:42:05 CEST schrieb jeffjl....@outlook.com: > > > I got version 4.7.2 to build on windows using emerge and mingw. > > > > > > I have trouble with version 4.7.90. It gets to linking kmymoney.exe and > > > gets > > > "multiple definition of payeeIdentifierLoader". The problem seems to be > > > that kmm_mymoney.dll already contains payeeIdentifierLoader but > > > kmymoney.exe links both the dll and the payeeIdentifierLoader itself. If > > > I > > > manually edit the > > > ...work\mingw4-RelWithDebInfo-gitHEAD\kmymoney\CMakeFiles\kmymoney.dir\link > > > .txt and remove "..\bin\libkmm_payeeidentifier_loader.a", it links OK. I > > > cannot figure out how to fix the make files such that > > > libkmm_payeeidentifier_loader.a is not added to the link.txt file. > > > > > > This same problem occurs linking in some of the test programs (the first > > > one > > > being mymoneyfiletest), but I can work around that by not building the > > > test > > > programs. > > > > > > How does libkmm_payeeidentifier_loader.a get added to the link.txt file? > > > What do I change to get it to stop doing that? > > > > > > Thanks. > > > Jeff > > > > >