Review Request 111649: Prevent linking to Qt4 based DBusMenuQt
Alexander Neundorf
neundorf at kde.org
Wed Jul 24 17:53:58 UTC 2013
> On July 23, 2013, 6:47 p.m., Alexander Neundorf wrote:
> > What's the current state of dbusmenuqt ?
> > Can it be built against both Qt4 and Qt5 ?
> > If so, do they have different version numbers then ?
> > I don't like that an old version of FindDBusMenuQt.cmake will find the Qt4 version, while a newer version of FindDBusMenuQt.cmake will find only the Qt5 version.
> > A simple solution would be to add a FindDBusMenuQt5.cmake. This would make it very obvious, and the "old" file would just keep working.
>
> Alexander Richardson wrote:
> The Qt4 and Qt5 versions have different library names: dbusmenu-qt.so vs debusmenu-qt5.so
>
> I can add a FindDBusMenuQt5.cmake, but I guess that means removing FindDBusMenuQt.cmake, since I don't see much point in installing a find module for Qt4 based software here
What about the version numbers ?
They should have different SO versions.
If from some version on the library is Qt5, then you could decide based on the required version whether to search for the Qt4 or the Qt5 version of dbusmenuqt. This would be a good option.
Alternatively turn it into a FindDBusMenuQt5.cmake, and get rid of everything of the Qt4-version.
Having different files out there in the wild, both named FindDBusMenuQt.cmake, one searching only for the Qt4 version, and one searching only for the Qt5 version just means confusion for developers, and the people trying to fix their build problems.
- Alexander
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111649/#review36406
-----------------------------------------------------------
On July 23, 2013, 11:16 a.m., Alexander Richardson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111649/
> -----------------------------------------------------------
>
> (Updated July 23, 2013, 11:16 a.m.)
>
>
> Review request for KDE Frameworks.
>
>
> Description
> -------
>
> Prevent linking to Qt4 based DBusMenuQt
>
> This fixes all sorts of weird crashes due to having an executable
> linked to both Qt4 and Qt5
>
>
> Diffs
> -----
>
> cmake/modules/FindDBusMenuQt.cmake c231aeac0fe118577fbd57e83320f59c6e6cc23d
>
> Diff: http://git.reviewboard.kde.org/r/111649/diff/
>
>
> Testing
> -------
>
> kdelibs no longer links to system dbusmenu-qt
>
>
> Thanks,
>
> Alexander Richardson
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130724/839d736b/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list