Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master does not compile with Qt5 libraries #20339

Closed
qgib opened this issue Feb 6, 2015 · 4 comments
Closed

Master does not compile with Qt5 libraries #20339

qgib opened this issue Feb 6, 2015 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@qgib
Copy link
Contributor

qgib commented Feb 6, 2015

Author Name: Bogdan Hlevca (@bhlevca)
Original Redmine Issue: 12145
Affected QGIS version: master
Redmine category:build/install


Building CXX object src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2registry.cpp.o
[ 13%] Building CXX object src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2utils.cpp.o
In file included from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgsvectorlayer.h:27:0,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgsmarkersymbollayerv2.h:20,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgssymbolv2.cpp:20:
/software/software/Graphics/Maps/QGIS-QT5/src/core/qgsmaplayer.h:558:10: error: ‘void QgsMapLayer::connectNotify(const char*)’ marked override, but does not override
void connectNotify( const char * signal ) override;
^
In file included from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgsvectorlayer.h:27:0,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgsmarkersymbollayerv2.h:20,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgsellipsesymbollayerv2.h:18,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgssymbollayerv2registry.cpp:18:
/software/software/Graphics/Maps/QGIS-QT5/src/core/qgsmaplayer.h:558:10: error: ‘void QgsMapLayer::connectNotify(const char*)’ marked override, but does not override
void connectNotify( const char * signal ) override;
^
In file included from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgsvectorlayer.h:27:0,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgssymbollayerv2.cpp:20:
/software/software/Graphics/Maps/QGIS-QT5/src/core/qgsmaplayer.h:558:10: error: ‘void QgsMapLayer::connectNotify(const char*)’ marked override, but does not override
void connectNotify( const char * signal ) override;
^
src/core/CMakeFiles/qgis_core.dir/build.make:755: recipe for target 'src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbolv2.cpp.o' failed
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbolv2.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/core/CMakeFiles/qgis_core.dir/build.make:801: recipe for target 'src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2registry.cpp.o' failed
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2registry.cpp.o] Error 1
src/core/CMakeFiles/qgis_core.dir/build.make:778: recipe for target 'src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2.cpp.o' failed
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2.cpp.o] Error 1
In file included from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgstolerance.h:20:0,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgssnapper.h:22,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/qgsproject.h:32,
from /software/software/Graphics/Maps/QGIS-QT5/src/core/symbology-ng/qgssymbollayerv2utils.cpp:24:
With ENABLE_QT5 ON the error is (compiles find with Qt4:

/software/software/Graphics/Maps/QGIS-QT5/src/core/qgsmaplayer.h:558:10: error: ‘void QgsMapLayer::connectNotify(const char*)’ marked override, but does not override
void connectNotify( const char * signal ) override;
^
src/core/CMakeFiles/qgis_core.dir/build.make:824: recipe for target 'src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2utils.cpp.o' failed
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/symbology-ng/qgssymbollayerv2utils.cpp.o] Error 1
CMakeFiles/Makefile2:1116: recipe for target 'src/core/CMakeFiles/qgis_core.dir/all' failed
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
bogdan@high:/software/software/Graphics/Maps/QGIS-QT5/build>

@qgib
Copy link
Contributor Author

qgib commented Feb 6, 2015

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 2.6.0 to master
  • category_id was configured as Build/Install

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2015

Author Name: Matthias Kuhn (@m-kuhn)


Fixed in changeset "2e9cc1a4fff94811d87f7958e3defe64ca0462d5".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2015

Author Name: Bogdan Hlevca (@bhlevca)


Got master/latest from git. Still not compiling for me. Perhaps I need a QWT library based on QT5? Would QWT6 do better? I think that I tried that one and did not compile

[ 34%] Building CXX object src/providers/ogr/CMakeFiles/ogrprovider.dir/qgsogrdataitems.cpp.o
In file included from /usr/include/qwt5/qwt_plot.h:18:0,
from /software/software/Graphics/Maps/QGIS-QT5/build/src/gui/../ui/ui_qgsrasterhistogramwidgetbase.h:29,
from /software/software/Graphics/Maps/QGIS-QT5/src/gui/raster/qgsrasterhistogramwidget.h:20,
from /software/software/Graphics/Maps/QGIS-QT5/src/gui/raster/qgsrasterhistogramwidget.cpp:22:
/usr/include/qwt5/qwt_scale_map.h:92:5: error: ‘QT_STATIC_CONST’ does not name a type
QT_STATIC_CONST double LogMin;
^
/usr/include/qwt5/qwt_scale_map.h:93:5: error: ‘QT_STATIC_CONST’ does not name a type
QT_STATIC_CONST double LogMax;
^
src/gui/CMakeFiles/qgis_gui.dir/build.make:1092: recipe for target 'src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o' failed
make[2]: *** [src/gui/CMakeFiles/qgis_gui.dir/raster/qgsrasterhistogramwidget.cpp.o] Error 1
CMakeFiles/Makefile2:1319: recipe for target 'src/gui/CMakeFiles/qgis_gui.dir/all' failed
make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Feb 15, 2015

Author Name: Matthias Kuhn (@m-kuhn)


Yes, you will need to build against a QWT library compiled and linked against Qt5.

I think QWT 5 does not build against Qt5.
QWT 6 does build against Qt5. But be aware that the one provided by your distro may be linked against Qt4.


  • status_id was changed from Reopened to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant