Can't build gitHEAD version on windows
jeffjl.kde at outlook.com
jeffjl.kde at outlook.com
Sun May 15 17:42:22 UTC 2016
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.
Yes, the "emerge --cleanbuild" removed the entire KMM build folder tree.
Next time I do a build I will capture the actual error messages and file a bug report.
Thanks.
Jeff.
> Subject: Re: Can't build gitHEAD version on windows
> To: kmymoney-devel at kde.org
> From: agander93 at gmail.com
> Date: Sun, 15 May 2016 11:28:33 +0100
>
>
>
> Hi Jeff
>
> See below.
>
> On 15/05/16 10:02, Christian Dávid wrote:
> > 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.kde at 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"
>
> I'm puzzled by the reference to "kmymoney-4.6.1-20110918". Why is it
> not referencing the 4.7.xxxxx location? There can be problems if there
> is more than one KMM version installed.
>
> I must add that I know nothing about Windows installs so ignore me if I
> am talking rubbish.
>
> Allan
>
> >>
> >> 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-david at web.de
> >>> To: kmymoney-devel at 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.kde at 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
> >>>
> >>>
> >>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20160515/829619fa/attachment.html>
More information about the KMyMoney-devel
mailing list