[Interest] layer-shell-qt with qt6

Ralf Van Bogaert ralf.vanbogaert at gmail.com
Mon Aug 22 11:08:16 CEST 2022


> Hi,
>
> I need to use this library in my Qt6-based project:
> https://invent.kde.org/plasma/layer-shell-qt
>
> I cloned the source, compiled it with cmake, and installed it.
>
> I can add the library to my project and access it's classes. I can also
> compile my project without issues.
>
> However, it now crashes on launch.
>
> I get the impression the library is being compiled for qt5. I don't know,
I
> am not very experienced with makefiles.

To build layer-shell-qt for Qt6, use cmake with -DQT_MAJOR_VERSION=6.

Thank you very much Fabian,  that did the trick!

Op ma 22 aug. 2022 om 08:31 schreef Fabian Vogt <fabian at ritter-vogt.de>:

> Moin,
>
> Am Sonntag, 21. August 2022, 15:15:42 CEST schrieb Ralf Van Bogaert:
> > Hi,
> >
> > I need to use this library in my Qt6-based project:
> > https://invent.kde.org/plasma/layer-shell-qt
> >
> > I cloned the source, compiled it with cmake, and installed it.
> >
> > I can add the library to my project and access it's classes. I can also
> > compile my project without issues.
> >
> > However, it now crashes on launch.
> >
> > I get the impression the library is being compiled for qt5. I don't
> know, I
> > am not very experienced with makefiles.
>
> To build layer-shell-qt for Qt6, use cmake with -DQT_MAJOR_VERSION=6.
>
> Cheers,
> Fabian
>
> > Can anyone help?
> >
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220822/ace41812/attachment.htm>


More information about the Interest mailing list