[KDE/Mac] [Kexi] Predicate qt5/macos porting

Wojciech Kosowicz pcellix at gmail.com
Sun Jan 4 22:53:35 UTC 2015


Hello, 

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:

In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/ExpressionData.h:26:
/Users/wojtek/macos/src/predicate/Predicate/Utils.h:530:24: error: calling a private constructor of class 'QString'
    return iifNotEmpty(QString(string), stringIfEmpty);
                       ^
/Users/wojtek/Qt/5.2.1/clang_64/lib/QtCore.framework/Headers/qstring.h:694:5: note: declared private here
    QString(const QByteArray &a);
    ^
In file included from SqlScanner.l:23:
In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/Expression.h:34:
In file included from /Users/wojtek/macos/src/predicate/Predicate/expression/ExpressionData.h:26:
/Users/wojtek/macos/src/predicate/Predicate/Utils.h:537:32: error: calling a private constructor of class 'QString'
    return iifNotEmpty(string, QString(stringIfEmpty));
                               ^
/Users/wojtek/Qt/5.2.1/clang_64/lib/QtCore.framework/Headers/qstring.h:694:5: note: declared private here
    QString(const QByteArray &a);
    ^
2 errors generated.

That turns out to be true as qstring does have this constructor as private if some conditions are fullfiled:

private:
#if defined(QT_NO_CAST_FROM_ASCII) && !defined(Q_NO_DECLARED_NOT_DEFINED)
    QString &operator+=(const char *s);
    QString &operator+=(const QByteArray &s);
    QString(const char *ch);
    QString(const QByteArray &a);
    QString &operator=(const char  *ch);
    QString &operator=(const QByteArray &a);
#endif

I installed using normal installer. So my question if anyone has run into this problem? :) 

Regards,
Wojciech Kosowicz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20150104/cc359be4/attachment-0001.html>


More information about the kde-mac mailing list