new compile fail with git master head - another missing Qt include

Thomas Baumgart thb at net-bembel.de
Mon Jul 2 09:20:12 BST 2018


Hi,

saw it this morning and fixed it in master.

Regards

Thomas

On Montag, 2. Juli 2018 00:24:44 CEST Jack Ostroff wrote:

> I have been doing battle with craft and kde-windows for several days,  
> and have managed to get all prerequisites compiled.  However, kmymoney  
> failed to compile.  I get what I think is the same failure on Artix  
> Linux, but not my Gentoo box, so I suspect it might again be related to  
> QT 5.11.  Below is the log of the failure.  Adding "include  
> <QRegulrExpression>" to kmymoney/dialogs/knewbankdlg.cpp fixes it.  (I  
> have not yet tested the fix with craft.)
> 
> [ 23%] Building CXX object  
> kmymoney/dialogs/CMakeFiles/dialogs.dir/knewbankdlg.cpp.o
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp: In member  
> function ‘void KNewBankDlg::slotUrlChanged(const QString&)’:
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:185:30: error:  
> variable ‘QRegularExpression protocol’ has initializer but incomplete  
> type
>     QRegularExpression  
> protocol(QStringLiteral("^[a-zA-Z]+://(?<url>.*)"),  
> QRegularExpression::CaseInsensitiveOption);
>                                ^
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:185:94: error:  
> incomplete type ‘QRegularExpression’ used in nested name specifier
>     QRegularExpression  
> protocol(QStringLiteral("^[a-zA-Z]+://(?<url>.*)"),  
> QRegularExpression::CaseInsensitiveOption);
>                                                                                                 
> ^~~~~~~~~~~~~~~~~~~~~
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:186:27: error:  
> variable ‘QRegularExpressionMatch matcher’ has initializer but  
> incomplete type
>     QRegularExpressionMatch matcher = protocol.match(newUrl);
>                             ^~~~~~~
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp: In member  
> function ‘void KNewBankDlg::slotLoadIcon()’:
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:207:27: error:  
> variable ‘QRegularExpression urlRe’ has initializer but incomplete type
>     QRegularExpression  
> urlRe(QStringLiteral("^(.*\\.)?[^\\.]{2,}\\.[a-z]{2,}"),  
> QRegularExpression::CaseInsensitiveOption);
>                             ^
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:207:99: error:  
> incomplete type ‘QRegularExpression’ used in nested name specifier
>     QRegularExpression  
> urlRe(QStringLiteral("^(.*\\.)?[^\\.]{2,}\\.[a-z]{2,}"),  
> QRegularExpression::CaseInsensitiveOption);
>                                                                                                      
> ^~~~~~~~~~~~~~~~~~~~~
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:208:27: error:  
> variable ‘QRegularExpressionMatch matcher’ has initializer but  
> incomplete type
>     QRegularExpressionMatch matcher = urlRe.match(path);
>                             ^~~~~~~
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp: In member  
> function ‘void KNewBankDlg::slotIconLoaded(KJob*)’:
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:251:64:  
> warning: this statement may fall through [-Wimplicit-fallthrough=]
>         qDebug() << "KIO::FavIconRequestJob error" << job->error();
>                                                                  ^
> /home/jack/KMM/kmymoney/kmymoney/dialogs/knewbankdlg.cpp:252:5: note:  
> here
>       case EALREADY:    // invalid URL, no server response
>       ^~~~
> make[2]: *** [kmymoney/dialogs/CMakeFiles/dialogs.dir/build.make:525:  
> kmymoney/dialogs/CMakeFiles/dialogs.dir/knewbankdlg.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:7870:  
> kmymoney/dialogs/CMakeFiles/dialogs.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2

-- 

Regards

Thomas Baumgart

https://www.signal.org/       Signal, the better WhatsApp
-------------------------------------------------------------
Windows is not the answer. It's the question. The answer is no!
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 846 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20180702/2fcb153e/attachment.sig>


More information about the KMyMoney-devel mailing list