error compiling gwenhywfar for qt5

Jack ostroffjh at users.sourceforge.net
Wed Jun 1 19:08:12 UTC 2016


(please try to configure your emailer to either not use HTML at all, or  
at least include a valid plain text version)

Yes - that would work, but it's not that simple for me.  When I compile  
gwenhywfar, I don't just want it to use qt5, I want it to know about  
both qt4 and qt5, as I currently have clients that need both.  The  
gwenhywfar ./configure is indeed able to do that, and I think my  
response in the other thread gave the core parameters I needed to use,  
but I'm pretty sure there is a "less ugly" way than what I ended up  
with.

Jack


On 2016.06.01 13:12, "Christian Dávid" wrote:
> <html><head></head><body><div style="font-family: Verdana;font-size:  
> 12.0px;"><div>Hi Jack,<br/>
> <br/>
> maybe you can use qmake and qmoc within the /usr/lib/qt/qt5/  
> directory directly? The configure scripts should be able to handle  
> that (btw: I think qmake is only needed to find the include directory  
> but not used afterwards).<br/>
> <br/>
> Greetings<br/>
> Christian<br/>
> <br/>
> > Jack <ostroffjh at users.sourceforge.net> hat am 31. Mai 2016  
> um 23:12 geschrieben:<br/>
> ><br/>
> ><br/>
> > I'm still waiting to see what the official Gentoo response  
> will be to<br/>
> > get gwenhywfar to include qt5. I did find some configure  
> hand-waving<br/>
> > which made it work. Gwenhywfar already has a "--guis='x  
> y z'"<br/>
> > configure parameter, but just adding qt5 isn't enough. The  
> one thing I<br/>
> > discovered is that many of the qt related utilities (at least  
> under<br/>
> > Gentoo) are actually symlinks to a program qtchooser, which  
> calls the<br/>
> > appropriate version, based either on a command line flag (--qt=5  
> or<br/>
> > --qt=4) or else something in the environment. (so "moc  
> --qt=4" or "moc<br/>
> > --qt=5 as appropriate) Simply adding --qt5-moc='moc  
> --qt=5' to the<br/>
> > configure was not quite enough but I'd have to go dig up the  
> script I<br/>
> > used to get the final bit that finally worked.<br/>
> ><br/>
> > More details on Gentoo - the actual utilities are under<br/>
> > /usr/lib/qt/qt4/ and /usr/lib/qt/qt5/ so they can still have the  
> same<br/>
> > name - it is qtchooser which dispatches the correct one.<br/>
> ><br/>
> > Also - the error I got about not finding <QDialog> was  
> indeed because<br/>
> > it was still using the qt4 version of qmake (I think.) Once I  
> got the<br/>
> > qt5 stuff properly included, that problem went away.<br/>
> […]</div></div></body></html>
> 



More information about the KMyMoney-devel mailing list