Menu

Compilation error on Ubuntu 13.04

Atilla
2013-10-10
2013-10-11
  • Atilla

    Atilla - 2013-10-10

    First of all thank you for such a project. When I first I tried to compile it I got "QApplication: No such file or directory" error then I fixed it adding QT += widgets in qjdicexamplecore.pro. After then I got "qInstallMsgHandler" error (it's deprecated in QT5)I replaced it with "qInstallMessageHandler". Finally I get
    ~~~~~
    ZinniaGenerator.cpp: In function 'int main(int, char)':
    ZinniaGenerator.cpp:63:40: error: invalid conversion from 'void (
    )(QtMsgType, const char
    )' to 'QtMessageHandler {aka void ()(QtMsgType, const QMessageLogContext&, const QString&)}' [-fpermissive]
    In file included from /usr/include/qt5/QtCore/qglobal.h:1093:0,
    from /usr/include/qt5/QtCore/qnamespace.h:45,
    from /usr/include/qt5/QtCore/qobjectdefs.h:45,
    from /usr/include/qt5/QtCore/qobject.h:47,
    from /usr/include/qt5/QtCore/qcoreapplication.h:45,
    from /usr/include/qt5/QtCore/QCoreApplication:1,
    from ZinniaGenerator.cpp:21:
    /usr/include/qt5/QtCore/qlogging.h:170:32: error: initializing argument 1 of 'void (
    qInstallMessageHandler(QtMessageHandler))(QtMsgType, const QMessageLogContext&, const QString&)' [-fpermissive]
    ~~~~~~

    Would you please help me fix it?

    Regards.

     
  • Koptsow Dmitriy

    Koptsow Dmitriy - 2013-10-10

    Hi

    Thank you for your feedback.
    Unfortunately I have not ported QJDicExample from Qt4 to Qt5 yet. AFAIK even if we manage to fix this particular issue, it will break somewhere else.
    I am also using Ubuntu 13.04 and fortunately Qt4 is still available. So probably the easiest way will be to install Qt4 and compile QJDicExample against it.
    I will try to port to Qt5 in the nearest future.

    Best regards, Koptsov Dmitry.

     
  • Atilla

    Atilla - 2013-10-11

    Thanks a lot for reply. I ll revert to QT4.
    All the best, Atilla Karaca

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.