[Gambas-user] Compilation error: ‘KeepEmptyParts’ is not a member of ‘Qt’

Bruce Steers bsteers4 at gmail.com
Thu Jun 17 12:47:37 CEST 2021


Same thing here (LinuxMint 20)

Just seen the fix commit.
All fixed.
Cheers Ben , GL



On Thu, 17 Jun 2021 at 10:45, Gianluigi <bagonergi at gmail.com> wrote:

> Hi Benoit,
>
> the terminal returns:
>
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CMouse_moc.cpp CMouse.h
> CMouse.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CMouse_moc.lo
>   CXX      gb_qt5_la-CMouse.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CKey_moc.cpp CKey.h
> CKey.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CKey_moc.lo
>   CXX      gb_qt5_la-CKey.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CColor_moc.cpp CColor.h
> CColor.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CColor_moc.lo
>   CXX      gb_qt5_la-CColor.lo
>   CXX      gb_qt5_la-CConst.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CCheckBox_moc.cpp CCheckBox.h
>   CXX      gb_qt5_la-CCheckBox_moc.lo
>   CXX      gb_qt5_la-CCheckBox.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CPanel_moc.cpp CPanel.h
> CPanel.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CPanel_moc.lo
>   CXX      gb_qt5_la-CPanel.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CRadioButton_moc.cpp
> CRadioButton.h
>   CXX      gb_qt5_la-CRadioButton_moc.lo
>   CXX      gb_qt5_la-CRadioButton.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CTextArea_moc.cpp CTextArea.h
>   CXX      gb_qt5_la-CTextArea_moc.lo
>   CXX      gb_qt5_la-CTextArea.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CTabStrip_moc.cpp CTabStrip.h
>   CXX      gb_qt5_la-CTabStrip_moc.lo
>   CXX      gb_qt5_la-CTabStrip.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CDialog_moc.cpp CDialog.h
> CDialog.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CDialog_moc.lo
>   CXX      gb_qt5_la-CDialog.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CPicture_moc.cpp CPicture.h
> CPicture.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CPicture_moc.lo
>   CXX      gb_qt5_la-CPicture.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CImage_moc.cpp CImage.h
> CImage.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CImage_moc.lo
>   CXX      gb_qt5_la-CImage.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o canimation_moc.cpp canimation.h
>   CXX      gb_qt5_la-canimation_moc.lo
>   CXX      gb_qt5_la-canimation.lo
> /usr/lib/x86_64-linux-gnu/qt5/bin/moc -o CClipboard_moc.cpp CClipboard.h
> CClipboard.h:0: Note: No relevant classes found. No output generated.
>   CXX      gb_qt5_la-CClipboard_moc.lo
>   CXX      gb_qt5_la-CClipboard.lo
>   CXX      gb_qt5_la-CDraw.lo
> CDraw.cpp: In function ‘int get_text_width(QPainter*, QString&)’:
> CDraw.cpp:123:30: error: ‘KeepEmptyParts’ is not a member of ‘Qt’
>   123 |  text_sl = s.split('\n', Qt::KeepEmptyParts);
>       |                              ^~~~~~~~~~~~~~
> make[5]: *** [Makefile:1114: gb_qt5_la-CDraw.lo] Errore 1
> make[5]: uscita dalla directory «/home/gian/gambasdevel/gb.qt5/src»
> make[4]: *** [Makefile:1301: all-recursive] Errore 1
> make[4]: uscita dalla directory «/home/gian/gambasdevel/gb.qt5/src»
> make[3]: *** [Makefile:467: all-recursive] Errore 1
> make[3]: uscita dalla directory «/home/gian/gambasdevel/gb.qt5»
> make[2]: *** [Makefile:399: all] Errore 2
> make[2]: uscita dalla directory «/home/gian/gambasdevel/gb.qt5»
> make[1]: *** [Makefile:441: all-recursive] Errore 1
> make[1]: uscita dalla directory «/home/gian/gambasdevel»
> make: *** [Makefile:382: all] Errore 2
> ---------------------------------------------
>
> Regards
> Gianluigi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210617/899afd4d/attachment.htm>


More information about the User mailing list