2015-02-17 12:50 GMT+01:00 Lubomir I. Ivanov <neolit...@gmail.com>: > if you haven't updated yet, you can save locally the raw email / patch > i've just sent to the mailing list: > [PATCH] simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 > > move it to the Subsurface source folder and do: > git am <patch-file> > > then call 'make' again to see if the QLineEdit error is fixed. > i'm assuming you have Qt < 5.2.0 > > Thanks Lubomir for the help with the patch. Here it is the output:
[michele@localhost subsurface]$ git am 0001-simplewidgets.cpp-QLineEdit-setClearButtonEnabled-is.patch Applying: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 [michele@localhost subsurface]$ make Checking /home/michele/src/subsurface/ssrf-version.h compiling version.c compiling qt-ui/simplewidgets.cpp compiling qt-ui/starwidget.cpp compiling qt-ui/subsurfacewebservices.cpp qt-ui/subsurfacewebservices.cpp: In member function ‘bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString&, bool)’: qt-ui/subsurfacewebservices.cpp:129:85: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ qt-ui/subsurfacewebservices.cpp:190:88: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ qt-ui/subsurfacewebservices.cpp:210:87: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ make: *** [.obj/subsurfacewebservices.o] Error 1 [michele@localhost subsurface]$ Michele
_______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface