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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
Thanks a lot for reply. I ll revert to QT4.
All the best, Atilla Karaca