Building KF in version 5.14 on OSX fails for framework kdesignerplugin

Kurt Hindenburg kurt.hindenburg at gmail.com
Wed Sep 16 02:50:50 UTC 2015


> On Sep 15, 2015, at 2:07 PM, Marko Käning <mk-lists at mailbox.org> wrote:
> 
> Hi kdesignerplugin devs,
> 
> On 14 Sep 2015, at 15:00 , Kurt Hindenburg <kurt.hindenburg at gmail.com> wrote:
>> 
>> It appears the  QT_VERSION check in d53ec9b97d7b353ea4cce54d5ecae3c93b933ddd is not enough when using Qt 5.4.x
> 
> anyone out there who can fix kdesignerplugin regarding this version check so that the next KF5 release is build-able again on Qt 5.4.x?
> 
If I read the Qt moc docs correctly, moc can’t expand macros.  So it never actually handles the #if.

The quick and dirty hack is to put the #if outside the static const, which means duplicating most of the static const.  It works here for Qt 5.4.x.  There is likely a more elegant way of doing it.


 Kurt




More information about the Kde-frameworks-devel mailing list