Bug report #15571

globe_plugin build errors in master

Added by Andy Wood over 3 years ago. Updated over 3 years ago.

Status:Closed
Priority:High
Assignee:Pirmin Kalberer
Category:C++ plugins/Globe
Affected QGIS version:master Regression?:No
Operating System:Linux amd64 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23495

Description

The following build error has been in master for the past few days:

[ 89%] Building CXX object src/plugins/globe/CMakeFiles/globeplugin.dir/globe_plugin.cpp.o
cd /home/agw/src/qgis/qgis_src/debian/build/src/plugins/globe && /usr/bin/c++   -DHAS_MOVE_SEMANTICS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_XML_LIB -Dglobeplugin_EXPORTS -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtOpenGL -isystem /usr/include/qt4/QtSvg -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtSql -isystem /usr/include/qt4/QtNetwork -isystem /usr/include/qt4/QtCore -I/home/agw/src/qgis/qgis_src/debian/build -I/home/agw/src/qgis/qgis_src/debian/build/src/plugins/globe -I/usr/include/python2.7 -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/geometry -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/raster -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../gui -I/home/agw/src/qgis/qgis_src/src/plugins/globe/..  -g -O2 -fdebug-prefix-map=/home/agw/src/qgis/qgis_src=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DGLOBE_EXPORT= -o CMakeFiles/globeplugin.dir/globe_plugin.cpp.o -c /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp: In member function ‘void GlobePlugin::addModelLayer(QgsVectorLayer*, QgsGlobeVectorLayerConfig*)’:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:780:37: error: no matching function for call to ‘QgsFeatureRenderer::symbols()’
   if ( !vLayer->renderer()->symbols().isEmpty() )
                                     ^
In file included from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:43:0:
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note: candidate: virtual QgsSymbolList QgsFeatureRenderer::symbols(QgsRenderContext&)
     virtual QgsSymbolList symbols( QgsRenderContext& context ) {  Q_UNUSED( context ); return QgsSymbolList(); }
                           ^~~~~~~
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
                 from /usr/include/qt4/QtCore/qstring.h:45,
                 from /usr/include/qt4/QtCore/QString:1,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/../qgisplugin.h:38,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.h:22,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:21:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:61: error: no matching function for call to ‘QgsFeatureRenderer::symbols()’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
                                                             ^
In file included from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:43:0:
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note: candidate: virtual QgsSymbolList QgsFeatureRenderer::symbols(QgsRenderContext&)
     virtual QgsSymbolList symbols( QgsRenderContext& context ) {  Q_UNUSED( context ); return QgsSymbolList(); }
                           ^~~~~~~
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
                 from /usr/include/qt4/QtCore/qstring.h:45,
                 from /usr/include/qt4/QtCore/QString:1,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/../qgisplugin.h:38,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.h:22,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:21:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: template argument 1 is invalid
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:61: error: no matching function for call to ‘QgsFeatureRenderer::symbols()’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
                                                             ^
In file included from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:43:0:
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note: candidate: virtual QgsSymbolList QgsFeatureRenderer::symbols(QgsRenderContext&)
     virtual QgsSymbolList symbols( QgsRenderContext& context ) {  Q_UNUSED( context ); return QgsSymbolList(); }
                           ^~~~~~~
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
                 from /usr/include/qt4/QtCore/qstring.h:45,
                 from /usr/include/qt4/QtCore/QString:1,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/../qgisplugin.h:38,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.h:22,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:21:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘e’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘i’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:5: error: request for member ‘brk’ in ‘_container_’, which is of non-class type ‘int’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
     ^
src/plugins/globe/CMakeFiles/globeplugin.dir/build.make:105: recipe for target 'src/plugins/globe/CMakeFiles/globeplugin.dir/globe_plugin.cpp.o' failed

History

#1 Updated by Andy Wood over 3 years ago

Sorry automatic formatting has messed that up. Here is the top again:

[ 89%] Building CXX object src/plugins/globe/CMakeFiles/globeplugin.dir/globe_plugin.cpp.o
cd /home/agw/src/qgis/qgis_src/debian/build/src/plugins/globe && /usr/bin/c++   -DHAS_MOVE_SEMANTICS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_XML_LIB -Dglobeplugin_EXPORTS -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtOpenGL -isystem /usr/include/qt4/QtSvg -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtSql -isystem /usr/include/qt4/QtNetwork -isystem /usr/include/qt4/QtCore -I/home/agw/src/qgis/qgis_src/debian/build -I/home/agw/src/qgis/qgis_src/debian/build/src/plugins/globe -I/usr/include/python2.7 -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/geometry -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/raster -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng -I/home/agw/src/qgis/qgis_src/src/plugins/globe/../../gui -I/home/agw/src/qgis/qgis_src/src/plugins/globe/..  -g -O2 -fdebug-prefix-map=/home/agw/src/qgis/qgis_src=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -Wdate-time -D_FORTIFY_SOURCE=2  -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DGLOBE_EXPORT= -o CMakeFiles/globeplugin.dir/globe_plugin.cpp.o -c /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp: In member function ‘void GlobePlugin::addModelLayer(QgsVectorLayer*, QgsGlobeVectorLayerConfig*)’:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:780:37: error: no matching function for call to ‘QgsFeatureRenderer::symbols()’
   if ( !vLayer->renderer()->symbols().isEmpty() )
                                     ^
In file included from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:43:0:
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note: candidate: virtual QgsSymbolList QgsFeatureRenderer::symbols(QgsRenderContext&)
     virtual QgsSymbolList symbols( QgsRenderContext& context ) {  Q_UNUSED( context ); return QgsSymbolList(); }
                           ^~~~~~~
/home/agw/src/qgis/qgis_src/src/plugins/globe/../../core/symbology-ng/qgsrenderer.h:216:27: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/qt4/QtCore/qchar.h:45:0,
                 from /usr/include/qt4/QtCore/qstring.h:45,
                 from /usr/include/qt4/QtCore/QString:1,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/../qgisplugin.h:38,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.h:22,
                 from /home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:21:
/home/agw/src/qgis/qgis_src/src/plugins/globe/globe_plugin.cpp:782:61: error: no matching function for call to ‘QgsFeatureRenderer::symbols()’
     Q_FOREACH ( QgsSymbol* sym, vLayer->renderer()->symbols() )
                                                             ^

#2 Updated by Andy Wood over 3 years ago

  • Status changed from Open to Closed

This one has gone away or is fixed now.

Also available in: Atom PDF