problems compiling subsurface 4.4 on fedora 18

Michele Fabi fabiemme at gmail.com
Tue Feb 17 05:42:23 PST 2015


2015-02-17 12:50 GMT+01:00 Lubomir I. Ivanov <neolit123 at 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 at localhost subsurface]$ git am
0001-simplewidgets.cpp-QLineEdit-setClearButtonEnabled-is.patch
Applying: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from
Qt5.2
[michele at 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 at localhost subsurface]$

Michele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150217/9673cd2e/attachment.html>


More information about the subsurface mailing list