-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Trying to compile this under an elderly Ubuntu 20.04 (which I unfortunately cannot easily upgrade).
I get many compile errors:
cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/WUJ2DR/src/QCamber/src/src.pro ) && make -f Makefile
make[1]: Entering directory '/home/WUJ2DR/src/QCamber/build/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/odbppgraphicsminimapview.o ../../src/graphicsview/odbppgraphicsminimapview.cpp
In file included from ../../src/graphicsview/odbppgraphicsminimapview.cpp:25:
../../src/symbol/symbolfactory.h: In static member function 'static Symbol* SymbolFactory::create(const QString&, const Polarity&, const AttribData&)':
../../src/symbol/symbolfactory.h:129:14: warning: catching polymorphic type 'class InvalidSymbolException' by value [-Wcatch-value=]
129 | } catch (InvalidSymbolException) {
| ^~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsminimapview.cpp: In constructor 'ODBPPGraphicsMiniMapView::ODBPPGraphicsMiniMapView(QWidget*)':
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: error: no matching function for call to 'ODBPPGraphicsMiniMapView::connect(QScrollBar*, const char [19], ODBPPGraphicsMiniMapView*, const char [27])'
56 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:32: note: candidate: 'QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:64: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ~~~~~~~~~~~~~~~^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: candidate: 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)'
228 | static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
260 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: note: candidate expects 3 arguments, 4 provided
56 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
269 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: error: no type named 'type' in 'struct std::enable_if<false, QMetaObject::Connection>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
300 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: note: candidate expects 3 arguments, 4 provided
56 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
308 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:56:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: error: no matching function for call to 'ODBPPGraphicsMiniMapView::connect(QScrollBar*, const char [19], ODBPPGraphicsMiniMapView*, const char [27])'
58 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:32: note: candidate: 'QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:64: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ~~~~~~~~~~~~~~~^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: candidate: 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)'
228 | static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
260 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: note: candidate expects 3 arguments, 4 provided
58 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
269 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: error: no type named 'type' in 'struct std::enable_if<false, QMetaObject::Connection>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
300 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: note: candidate expects 3 arguments, 4 provided
58 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsminimapview.h:26,
from ../../src/graphicsview/odbppgraphicsminimapview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
308 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsminimapview.cpp:58:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
../../src/graphicsview/odbppgraphicsminimapview.cpp: In member function 'virtual void ODBPPGraphicsMiniMapView::keyPressEvent(QKeyEvent*)':
../../src/graphicsview/odbppgraphicsminimapview.cpp:131:57: warning: unused parameter 'event' [-Wunused-parameter]
131 | void ODBPPGraphicsMiniMapView::keyPressEvent(QKeyEvent* event)
| ~~~~~~~~~~~^~~~~
../../src/graphicsview/odbppgraphicsminimapview.cpp: In member function 'virtual void ODBPPGraphicsMiniMapView::wheelEvent(QWheelEvent*)':
../../src/graphicsview/odbppgraphicsminimapview.cpp:136:56: warning: unused parameter 'event' [-Wunused-parameter]
136 | void ODBPPGraphicsMiniMapView::wheelEvent(QWheelEvent* event)
| ~~~~~~~~~~~~~^~~~~
make[1]: *** [Makefile:1646: .build/odbppgraphicsminimapview.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/odbppgraphicsscene.o ../../src/graphicsview/odbppgraphicsscene.cpp
../../src/graphicsview/odbppgraphicsscene.cpp: In member function 'virtual void ODBPPGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent*)':
../../src/graphicsview/odbppgraphicsscene.cpp:117:51: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
117 | m_rubberBand->setRect(QRectF(m_rubberPS, event->scenePos()).normalized());
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp:120:43: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
120 | QRectF rect = QRectF(m_rubberPS, event->scenePos());
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp:115:10: warning: enumeration value 'S_NONE' not handled in switch [-Wswitch]
115 | switch (m_state) {
| ^
../../src/graphicsview/odbppgraphicsscene.cpp:115:10: warning: enumeration value 'S_AREA_ZOOM' not handled in switch [-Wswitch]
../../src/graphicsview/odbppgraphicsscene.cpp:115:10: warning: enumeration value 'S_MEASURE' not handled in switch [-Wswitch]
../../src/graphicsview/odbppgraphicsscene.cpp:125:23: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
125 | emit mouseMove(event->scenePos());
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp: In member function 'virtual void ODBPPGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent*)':
../../src/graphicsview/odbppgraphicsscene.cpp:139:23: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
139 | m_rubberPS = event->scenePos();
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp:146:47: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
146 | emit rectSelected(QRectF(m_rubberPS, event->scenePos()));
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp:154:23: error: invalid use of incomplete type 'class QGraphicsSceneMouseEvent'
154 | m_rubberPS = event->scenePos();
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsScene:1,
from ../../src/graphicsview/odbppgraphicsscene.h:26,
from ../../src/graphicsview/odbppgraphicsscene.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsscene.h:75:7: note: forward declaration of 'class QGraphicsSceneMouseEvent'
75 | class QGraphicsSceneMouseEvent;
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp:136:10: warning: enumeration value 'S_NONE' not handled in switch [-Wswitch]
136 | switch (m_state) {
| ^
../../src/graphicsview/odbppgraphicsscene.cpp:163:19: error: incomplete type 'QApplication' used in nested name specifier
163 | QApplication::sendEvent(m_layers[i]->layerScene(), event);
| ^~~~~~~~~
../../src/graphicsview/odbppgraphicsscene.cpp: In member function 'virtual void ODBPPGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent*)':
../../src/graphicsview/odbppgraphicsscene.cpp:171:19: error: incomplete type 'QApplication' used in nested name specifier
171 | QApplication::sendEvent(m_layers[i]->layerScene(), event);
| ^~~~~~~~~
make[1]: *** [Makefile:1664: .build/odbppgraphicsscene.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/odbppgraphicsview.o ../../src/graphicsview/odbppgraphicsview.cpp
In file included from ../../src/graphicsview/odbppgraphicsview.cpp:27:
../../src/symbol/symbolfactory.h: In static member function 'static Symbol* SymbolFactory::create(const QString&, const Polarity&, const AttribData&)':
../../src/symbol/symbolfactory.h:129:14: warning: catching polymorphic type 'class InvalidSymbolException' by value [-Wcatch-value=]
129 | } catch (InvalidSymbolException) {
| ^~~~~~~~~~~~~~~~~~~~~~
../../src/graphicsview/odbppgraphicsview.cpp: In constructor 'ODBPPGraphicsView::ODBPPGraphicsView(QWidget*)':
../../src/graphicsview/odbppgraphicsview.cpp:50:44: error: no matching function for call to 'ODBPPGraphicsView::connect(QScrollBar*, const char [19], ODBPPGraphicsView*, const char [27])'
50 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:32: note: candidate: 'QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:64: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ~~~~~~~~~~~~~~~^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: candidate: 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)'
228 | static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:50:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
260 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsview.cpp:50:44: note: candidate expects 3 arguments, 4 provided
50 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
269 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:50:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: error: no type named 'type' in 'struct std::enable_if<false, QMetaObject::Connection>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
300 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsview.cpp:50:44: note: candidate expects 3 arguments, 4 provided
50 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
308 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:50:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
../../src/graphicsview/odbppgraphicsview.cpp:52:44: error: no matching function for call to 'ODBPPGraphicsView::connect(QScrollBar*, const char [19], ODBPPGraphicsView*, const char [27])'
52 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:208:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
208 | static QMetaObject::Connection connect(const QObject *sender, const char *signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:36: note: candidate: 'static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:211:59: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
211 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~^~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:32: note: candidate: 'QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:463:64: note: no known conversion for argument 1 from 'QScrollBar*' to 'const QObject*'
463 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
| ~~~~~~~~~~~~~~~^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: candidate: 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)'
228 | static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:52:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:228:43: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
260 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:260:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsview.cpp:52:44: note: candidate expects 3 arguments, 4 provided
52 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
269 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:52:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:269:13: error: no type named 'type' in 'struct std::enable_if<false, QMetaObject::Connection>'
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)'
300 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:300:13: note: template argument deduction/substitution failed:
../../src/graphicsview/odbppgraphicsview.cpp:52:44: note: candidate expects 3 arguments, 4 provided
52 | this, SLOT(updateLayerViewport(void)));
| ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:64,
from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: candidate: 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)'
308 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
| ^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: note: template argument deduction/substitution failed:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h: In substitution of 'template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == -1), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) [with Func1 = const char*; Func2 = const char*]':
../../src/graphicsview/odbppgraphicsview.cpp:52:44: required from here
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:308:13: error: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'
../../src/graphicsview/odbppgraphicsview.cpp: In member function 'void ODBPPGraphicsView::scrollView(int, int)':
../../src/graphicsview/odbppgraphicsview.cpp:70:6: error: invalid use of incomplete type 'class QScrollBar'
70 | hsb->setValue(hsb->value() + dx);
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qscrollarea.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:52:7: note: forward declaration of 'class QScrollBar'
52 | class QScrollBar;
| ^~~~~~~~~~
../../src/graphicsview/odbppgraphicsview.cpp:70:20: error: invalid use of incomplete type 'class QScrollBar'
70 | hsb->setValue(hsb->value() + dx);
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qscrollarea.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:52:7: note: forward declaration of 'class QScrollBar'
52 | class QScrollBar;
| ^~~~~~~~~~
../../src/graphicsview/odbppgraphicsview.cpp:73:6: error: invalid use of incomplete type 'class QScrollBar'
73 | vsb->setValue(vsb->value() + dy);
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qscrollarea.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:52:7: note: forward declaration of 'class QScrollBar'
52 | class QScrollBar;
| ^~~~~~~~~~
../../src/graphicsview/odbppgraphicsview.cpp:73:20: error: invalid use of incomplete type 'class QScrollBar'
73 | vsb->setValue(vsb->value() + dy);
| ^~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qscrollarea.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:46,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
from ../../src/graphicsview/odbppgraphicsview.h:26,
from ../../src/graphicsview/odbppgraphicsview.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:52:7: note: forward declaration of 'class QScrollBar'
52 | class QScrollBar;
| ^~~~~~~~~~
make[1]: *** [Makefile:1718: .build/odbppgraphicsview.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/jobmatrix.o ../../src/gui/jobmatrix.cpp
../../src/gui/jobmatrix.cpp:24:10: fatal error: ui_jobmatrix.h: No such file or directory
24 | #include "ui_jobmatrix.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1764: .build/jobmatrix.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/viewerwindow.o ../../src/gui/viewerwindow.cpp
../../src/gui/viewerwindow.cpp:24:10: fatal error: ui_viewerwindow.h: No such file or directory
24 | #include "ui_viewerwindow.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1796: .build/viewerwindow.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/symbolcount.o ../../src/gui/symbolcount.cpp
../../src/gui/symbolcount.cpp:24:10: fatal error: ui_symbolcount.h: No such file or directory
24 | #include "ui_symbolcount.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1799: .build/symbolcount.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/settingsdialog.o ../../src/gui/settingsdialog.cpp
../../src/gui/settingsdialog.cpp:24:10: fatal error: ui_settingsdialog.h: No such file or directory
24 | #include "ui_settingsdialog.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1803: .build/settingsdialog.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/layerinfobox.o ../../src/gui/layerinfobox.cpp
../../src/gui/layerinfobox.cpp:24:10: fatal error: ui_layerinfobox.h: No such file or directory
24 | #include "ui_layerinfobox.h"
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1822: .build/layerinfobox.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/jobmanagerdialog.o ../../src/gui/jobmanagerdialog.cpp
../../src/gui/jobmanagerdialog.cpp:24:10: fatal error: ui_jobmanagerdialog.h: No such file or directory
24 | #include "ui_jobmanagerdialog.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1853: .build/jobmanagerdialog.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/featurepropertiesdialog.o ../../src/gui/featurepropertiesdialog.cpp
../../src/gui/featurepropertiesdialog.cpp:24:10: fatal error: ui_featurepropertiesdialog.h: No such file or directory
24 | #include "ui_featurepropertiesdialog.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1857: .build/featurepropertiesdialog.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/featureshistogramwidget.o ../../src/gui/featureshistogramwidget.cpp
../../src/gui/featureshistogramwidget.cpp:24:10: fatal error: ui_featureshistogramwidget.h: No such file or directory
24 | #include "ui_featureshistogramwidget.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1860: .build/featureshistogramwidget.o] Error 1
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../src -I. -I../../src -I.build -I../../src/parser -I../../src/parser/odbpp -I../../src/symbol -I../../src/gui -I../../src/graphicsview -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.build -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -o .build/main.o ../../src/main.cpp
../../src/main.cpp: In function 'int main(int, char**)':
../../src/main.cpp:32:20: error: variable 'QApplication app' has initializer but incomplete type
32 | QApplication app(argc, argv);
| ^~~~
../../src/main.cpp:33:17: error: incomplete type 'QApplication' used in nested name specifier
33 | QApplication::setGraphicsSystem("raster");
| ^~~~~~~~~~~~~~~~~
../../src/main.cpp:34:15: error: 'setCodecForCStrings' is not a member of 'QTextCodec'
34 | QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:1890: .build/main.o] Error 1
make[1]: Target 'first' not remade because of errors.
make[1]: Leaving directory '/home/WUJ2DR/src/QCamber/build/src'
make: *** [Makefile:47: sub-src-make_first] Error 2
make: Target 'first' not remade because of errors.
Project was configured and built with
mkdir build
cd build
qmake -makefile ../qcamber.pro
make -k
Metadata
Metadata
Assignees
Labels
No labels