plugins
plugins copied to clipboard
garphicalquerybuilder compile fails on Windows (MSYS2 MINGW64)
I'm trying to compile pgModeler 1.1.0-alpha1 with the graphicalquerybuilder plugin on Windows using MSYS2 MINGW64. Without the plugin, I can compile it with no issues based on the instructions on the website. However, when I add the plugin and try to compile (running make) I get the following error:
make[3]: Entering directory 'pgmodeler/plugins/graphicalquerybuilder'
g++ -c -fno-keep-inline-dllexport -march=nocona -msahf -mtune=generic -Wa,-mbig-obj -O2 -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -frtti -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DPGMODELER_DEBUG -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -DCHECK_CURR_VER -DBUILDNUM=\"20231012\" -DBUILDDATE=\"20231012\" -DBINDIR=\"pgmodeler.pro\" -DPLUGINSDIR=\"pgmodeler.pro/plugins\" -DPRIVATEBINDIR=\"pgmodeler.pro/bin\" -DCONFDIR=\"pgmodeler.pro/conf\" -DDOCDIR=\"pgmodeler.pro/docs\" -DLANGDIR=\"pgmodeler.pro/lang\" -DSAMPLESDIR=\"pgmodeler.pro/samples\" -DSCHEMASDIR=\"pgmodeler.pro/schemas\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_UITOOLS_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -IC:/Tools/msys64pgmodeler/plugins/src -IC:/Tools/msys64/mingw64/include -IC:/Tools/msys64/mingw64/include/libxml2 -I../../libs/libgui/src -I../../libs/libcanvas/src -I../../libs/libconnector/src -I../../libs/libcore/src -I../../libs/libparsers/src -I../../libs/libutils/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libgui -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libgui/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libcanvas/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libconnector/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libcore/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libparsers/src -IC:/Tools/msys64pgmodeler/plugins/graphicalquerybuilder/../../libutils/src -IC:/Tools/msys64/mingw64/include/qt6 -IC:/Tools/msys64/mingw64/include/qt6/QtPrintSupport -IC:/Tools/msys64/mingw64/include/qt6/QtUiTools -IC:/Tools/msys64/mingw64/include/qt6/QtOpenGLWidgets -IC:/Tools/msys64/mingw64/include/qt6/QtWidgets -IC:/Tools/msys64/mingw64/include/qt6/QtSvg -IC:/Tools/msys64/mingw64/include/qt6/QtOpenGL -IC:/Tools/msys64/mingw64/include/qt6/QtGui -IC:/Tools/msys64/mingw64/include/qt6/QtNetwork -IC:/Tools/msys64/mingw64/include/qt6/QtCore -Imoc -Isrc -I/include -IC:/Tools/msys64/mingw64/share/qt6/mkspecs/win32-g++ -o obj/graphicalquerybuilder.o src/graphicalquerybuilder.cpp
In file included from src/graphicalquerybuildercorewidget.h:30,
from src/graphicalquerybuilder.h:29,
from src/graphicalquerybuilder.cpp:19:
src/graphicalquerybuildersqlwidget.h:42:17: error: 'SyntaxHighlighter' does not name a type; did you mean 'QSyntaxHighlighter'?
42 | SyntaxHighlighter *hl_sqlcode;
| ^~~~~~~~~~~~~~~~~
| QSyntaxHighlighter
In file included from src/graphicalquerybuilder.h:28:
../../libs/libgui/src/pgmodelerplugin.h:142:30: warning: 'virtual void PgModelerPlugin::showPluginInfo() const' was hidden [-Woverloaded-virtual=]
142 | virtual void showPluginInfo(void) const;
| ^~~~~~~~~~~~~~
src/graphicalquerybuilder.h:70:22: note: by 'void GraphicalQueryBuilder::showPluginInfo()'
70 | void showPluginInfo(void);
| ^~~~~~~~~~~~~~
../../libs/libgui/src/pgmodelerplugin.h:139:33: warning: 'virtual QString PgModelerPlugin::getPluginDescription() const' was hidden [-Woverloaded-virtual=]
139 | virtual QString getPluginDescription(void) const = 0;
| ^~~~~~~~~~~~~~~~~~~~
src/graphicalquerybuilder.h:60:25: note: by 'QString GraphicalQueryBuilder::getPluginDescription()'
60 | QString getPluginDescription(void);
| ^~~~~~~~~~~~~~~~~~~~
../../libs/libgui/src/pgmodelerplugin.h:136:33: warning: 'virtual QString PgModelerPlugin::getPluginVersion() const' was hidden [-Woverloaded-virtual=]
136 | virtual QString getPluginVersion(void) const = 0;
| ^~~~~~~~~~~~~~~~
src/graphicalquerybuilder.h:58:25: note: by 'QString GraphicalQueryBuilder::getPluginVersion()'
58 | QString getPluginVersion(void);
| ^~~~~~~~~~~~~~~~
../../libs/libgui/src/pgmodelerplugin.h:133:33: warning: 'virtual QString PgModelerPlugin::getPluginAuthor() const' was hidden [-Woverloaded-virtual=]
133 | virtual QString getPluginAuthor(void) const = 0;
| ^~~~~~~~~~~~~~~
src/graphicalquerybuilder.h:59:25: note: by 'QString GraphicalQueryBuilder::getPluginAuthor()'
59 | QString getPluginAuthor(void);
| ^~~~~~~~~~~~~~~
../../libs/libgui/src/pgmodelerplugin.h:130:33: warning: 'virtual QString PgModelerPlugin::getPluginTitle() const' was hidden [-Woverloaded-virtual=]
130 | virtual QString getPluginTitle(void) const = 0;
| ^~~~~~~~~~~~~~
src/graphicalquerybuilder.h:57:25: note: by 'QString GraphicalQueryBuilder::getPluginTitle()'
57 | QString getPluginTitle(void);
| ^~~~~~~~~~~~~~
src/graphicalquerybuilder.cpp: In constructor 'GraphicalQueryBuilder::GraphicalQueryBuilder()':
src/graphicalquerybuilder.cpp:31:43: error: 'getPluginsDir' is not a member of 'GlobalAttributes'
31 | GlobalAttributes::getPluginsDir() +
| ^~~~~~~~~~~~~
src/graphicalquerybuilder.cpp: In member function 'virtual void GraphicalQueryBuilder::initPlugin(MainWindow*)':
src/graphicalquerybuilder.cpp:110:22: error: 'GuiUtilsNs' has not been declared
110 | icon39.addPixmap(GuiUtilsNs::getIconPath("treeview"));
| ^~~~~~~~~~
src/graphicalquerybuilder.cpp:126:22: error: 'GuiUtilsNs' has not been declared
126 | icon39.addPixmap(GuiUtilsNs::getIconPath("treeview"));
| ^~~~~~~~~~
src/graphicalquerybuilder.cpp: In member function 'void GraphicalQueryBuilder::adjustViewportToItems(QList<BaseObjectView*>)':
src/graphicalquerybuilder.cpp:240:75: warning: unused parameter 'items' [-Wunused-parameter]
240 | void GraphicalQueryBuilder::adjustViewportToItems(QList<BaseObjectView *> items)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
make[3]: *** [Makefile.Release:4817: obj/graphicalquerybuilder.o] Error 1
make[3]: Leaving directory 'pgmodeler/plugins/graphicalquerybuilder'
make[2]: *** [Makefile:45: release] Error 2
make[2]: Leaving directory 'pgmodeler/plugins/graphicalquerybuilder'
make[1]: *** [Makefile:94: sub-graphicalquerybuilder-make_first-ordered] Error 2
make[1]: Leaving directory 'pgmodeler/plugins'
make: *** [Makefile:318: sub-plugins-make_first-ordered] Error 2
I tried to run the compile with and without the SQL-join solver (after following the instructions on the page) and go the same result). I'm using the default develop branch for the plugins.
This plugin is deactivated, it needs to be ported to Qt 6.
Ah !
Hi @Maxzor !
I was able to adjust the code and build GQB on pgModeler 1.1.0-beta1. Unfortunately, the path solver is not building... The compiler can't find the boost headers even with them installed. Could you please take a look when you have spare time?
Hi @rkhaotix,
Would this plugin be part of the 1.1.0 release?
While trying to compile i get the following error src/graphicalquerybuilder.h:62:36: error: 'ActionId' has not been declared 62 | QAction *getAction(ActionId act_id) const override; What I'm missing ?