Hi devs, I'm failing to compile QGIS starting from the merge of the PR [FEATURE] Projects in PostgreSQL. Long error trace here [0]
Are there any special requirements starting from this commit, like Qt >=5.5.1 or something else? Thanks to all the suggestions and hints Cheers Matteo [0] [ 75%] Building CXX object src/providers/postgres/CMakeFiles/postgresprovider.dir/moc_qgscolumntypethread.cpp.o [ 75%] Building CXX object src/providers/postgres/CMakeFiles/postgresprovider.dir/moc_qgspgtablemodel.cpp.o /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp: In constructor ‘QgsPostgresProjectStorageDialog::QgsPostgresProjectStorageDialog(bool, QWidget*)’: /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:25:135: error: no matching function for call to ‘QMenu::addAction(QString, QgsPostgresProjectStorageDialog*, void (QgsPostgresProjectStorageDialog::*)())’ mActionRemoveProject = menuManageProjects->addAction( tr( "Remove Project" ), this, &QgsPostgresProjectStorageDialog::removeProject ); ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMenu:1:0, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:11: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:76:14: note: candidate: QAction* QMenu::addAction(const QString&) QAction *addAction(const QString &text); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:76:14: note: candidate expects 1 argument, 3 provided /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:77:14: note: candidate: QAction* QMenu::addAction(const QIcon&, const QString&) QAction *addAction(const QIcon &icon, const QString &text); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:77:14: note: candidate expects 2 arguments, 3 provided /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:78:14: note: candidate: QAction* QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&) QAction *addAction(const QString &text, const QObject *receiver, const char* member, const QKeySequence &shortcut = 0); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:78:14: note: no known conversion for argument 3 from ‘void (QgsPostgresProjectStorageDialog::*)()’ to ‘const char*’ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:79:14: note: candidate: QAction* QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&) QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char* member, const QKeySequence &shortcut = 0); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:79:14: note: candidate expects 5 arguments, 3 provided In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:37:0, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.h:4, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:538:10: note: candidate: void QWidget::addAction(QAction*) void addAction(QAction *action); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:538:10: note: candidate expects 1 argument, 3 provided /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp: In member function ‘void QgsPostgresProjectStorageDialog::populateSchemas()’: /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:106:69: error: ‘qAsConst’ was not declared in this scope for ( const QgsPostgresSchemaProperty &schema : qAsConst( schemas ) ) ^ src/providers/postgres/CMakeFiles/postgresprovider.dir/build.make:418: recipe for target 'src/providers/postgres/CMakeFiles/postgresprovider.dir/qgspostgresprojectstoragedialog.cpp.o' failed make[2]: *** [src/providers/postgres/CMakeFiles/postgresprovider.dir/qgspostgresprojectstoragedialog.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 75%] Linking CXX shared module ../../../output/lib/qgis/plugins/libcoordinatecaptureplugin.so /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp: In constructor ‘QgsPostgresProjectStorageDialog::QgsPostgresProjectStorageDialog(bool, QWidget*)’: /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:25:135: error: no matching function for call to ‘QMenu::addAction(QString, QgsPostgresProjectStorageDialog*, void (QgsPostgresProjectStorageDialog::*)())’ mActionRemoveProject = menuManageProjects->addAction( tr( "Remove Project" ), this, &QgsPostgresProjectStorageDialog::removeProject ); ^ In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMenu:1:0, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:11: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:76:14: note: candidate: QAction* QMenu::addAction(const QString&) QAction *addAction(const QString &text); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:76:14: note: candidate expects 1 argument, 3 provided /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:77:14: note: candidate: QAction* QMenu::addAction(const QIcon&, const QString&) QAction *addAction(const QIcon &icon, const QString &text); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:77:14: note: candidate expects 2 arguments, 3 provided /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:78:14: note: candidate: QAction* QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&) QAction *addAction(const QString &text, const QObject *receiver, const char* member, const QKeySequence &shortcut = 0); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:78:14: note: no known conversion for argument 3 from ‘void (QgsPostgresProjectStorageDialog::*)()’ to ‘const char*’ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:79:14: note: candidate: QAction* QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&) QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char* member, const QKeySequence &shortcut = 0); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:79:14: note: candidate expects 5 arguments, 3 provided In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdialog.h:37:0, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QDialog:1, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.h:4, from /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:538:10: note: candidate: void QWidget::addAction(QAction*) void addAction(QAction *action); ^ /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:538:10: note: candidate expects 1 argument, 3 provided /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp: In member function ‘void QgsPostgresProjectStorageDialog::populateSchemas()’: /home/matteo/lavori/QGIS/QGIS/src/providers/postgres/qgspostgresprojectstoragedialog.cpp:106:69: error: ‘qAsConst’ was not declared in this scope for ( const QgsPostgresSchemaProperty &schema : qAsConst( schemas ) ) ^ src/providers/postgres/CMakeFiles/postgresprovider_a.dir/build.make:418: recipe for target 'src/providers/postgres/CMakeFiles/postgresprovider_a.dir/qgspostgresprojectstoragedialog.cpp.o' failed make[2]: *** [src/providers/postgres/CMakeFiles/postgresprovider_a.dir/qgspostgresprojectstoragedialog.cpp.o] Error 1 CMakeFiles/Makefile2:2745: recipe for target 'src/providers/postgres/CMakeFiles/postgresprovider_a.dir/all' failed make[1]: *** [src/providers/postgres/CMakeFiles/postgresprovider_a.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 75%] Built target coordinatecaptureplugin [ 75%] Linking CXX shared library ../../output/lib/libqgis_app.so CMakeFiles/Makefile2:2706: recipe for target 'src/providers/postgres/CMakeFiles/postgresprovider.dir/all' failed make[1]: *** [src/providers/postgres/CMakeFiles/postgresprovider.dir/all] Error 2 [ 89%] Built target qgis_app Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer