<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello, <div class=""><br class=""></div><div class="">I have started porting Kexi application on MacOs X. It is ongoing with Qt5 porting. I started porting with Predicate repository that is future equivalent of KexiDB. I managed to port successfully on qt5 and it builds under Linux. However under MacOs X I received messages like:</div><div class=""><p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></p><p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/ExpressionData.h:26:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">/Users/wojtek/macos/src/predicate/Predicate/Utils.h:530:24: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span><b class="">calling a private constructor of class 'QString'</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> return iifNotEmpty(QString(string), stringIfEmpty);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class=""> ^</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">/Users/wojtek/Qt/5.2.1/clang_64/lib/QtCore.framework/Headers/qstring.h:694:5: note: </b>declared private here</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString(const QByteArray &a);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class=""> ^</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">In file included from SqlScanner.l:23:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/Expression.h:34:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/ExpressionData.h:26:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">/Users/wojtek/macos/src/predicate/Predicate/Utils.h:537:32: </b><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class=""><b class="">error: </b></span><b class="">calling a private constructor of class 'QString'</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> return iifNotEmpty(string, QString(stringIfEmpty));</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class=""> ^</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><b class="">/Users/wojtek/Qt/5.2.1/clang_64/lib/QtCore.framework/Headers/qstring.h:694:5: note: </b>declared private here</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString(const QByteArray &a);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><b class=""> ^</b></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">2 errors generated.</p><div class=""><br class=""></div></div><div class="">That turns out to be true as qstring does have this constructor as private if some conditions are fullfiled:</div><div class=""><br class=""></div><div class=""><p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">private:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">#if defined(QT_NO_CAST_FROM_ASCII) && !defined(Q_NO_DECLARED_NOT_DEFINED)</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString &operator+=(const char *s);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString &operator+=(const QByteArray &s);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString(const char *ch);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString(const QByteArray &a);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString &operator=(const char *ch);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> QString &operator=(const QByteArray &a);</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">#endif</p></div><div class=""><br class=""></div><div class="">I installed using normal installer. So my question if anyone has run into this problem? :) </div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Wojciech Kosowicz</div></body></html>