Error compiling 0.9.4 on Linux #20

Open
opened 2022-01-06 12:59:36 +00:00 by illuminated · 3 comments
illuminated commented 2022-01-06 12:59:36 +00:00 (Migrated from github.com)

I'm trying to compile the v0.9.4 with GQB included. I have tried all combinations of main/develop branches for pgModeler and plugins, but get the same result all the time:

...
g++ -c -pipe -O2 -std=gnu++1y -D_REENTRANT -Wall -W -fPIC -DBUILDNUM=\"6715e61d4\" -DBUILDDATE=\"20220106\" -DBINDIR=\"/home/milan/Apps/pgModeler.0.9.4\" -DPLUGINSDIR=\"/home/milan/Apps/pgModeler.0.9.4/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/home/milan/Apps/pgModeler.0.9.4\" -DCONFDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/conf\" -DDOCDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler\" -DLANGDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/lang\" -DSAMPLESDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/samples\" -DSCHEMASDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/schemas\" -DGRAPHICAL_QUERY_BUILDER_JOIN_SOLVER -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../libs/libgui/src -I../../libs/libcanvas/src -I../../libs/libconnector/src -I../../libs/libcore/src -I../../libs/libparsers/src -I../../libs/libutils/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler_ui -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler_ui/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libobjrenderer/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgconnector/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libparsers/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libutils/src -Ipaal/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtUiTools -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Imoc -Isrc -isystem /usr/include/postgresql -isystem /usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o obj/graphicalquerybuilderpathwidget.o src/graphicalquerybuilderpathwidget.cpp
In file included from src/graphicalquerybuildersqlwidget.cpp:19:
src/graphicalquerybuildersqlwidget.h:29:10: fatal error: baseobjectwidget.h: No such file or directory
   29 | #include "baseobjectwidget.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1287: obj/graphicalquerybuildersqlwidget.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from src/graphicalquerybuildercorewidget.h:29,
                 from src/graphicalquerybuildercorewidget.cpp:19:
src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory
   31 | #include "pgmodelerns.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1084: obj/graphicalquerybuildercorewidget.o] Error 1
In file included from src/graphicalquerybuilderpathwidget.cpp:19:
src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory
   31 | #include "pgmodelerns.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1161: obj/graphicalquerybuilderpathwidget.o] Error 1
In file included from src/graphicalquerybuildercorewidget.h:29,
                 from src/graphicalquerybuilder.h:29,
                 from src/graphicalquerybuilder.cpp:19:
src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory
   31 | #include "pgmodelerns.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1007: obj/graphicalquerybuilder.o] Error 1
make[2]: Leaving directory '/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder'
make[1]: *** [Makefile:135: sub-graphicalquerybuilder-make_first-ordered] Error 2
make[1]: Leaving directory '/home/milan/Applications/pgModeler.0.9.4/plugins'
make: *** [Makefile:315: sub-plugins-make_first-ordered] Error 2

Is there any way to go around the errors above?

I'm trying to compile the v0.9.4 with GQB included. I have tried all combinations of main/develop branches for pgModeler and plugins, but get the same result all the time: ``` ... g++ -c -pipe -O2 -std=gnu++1y -D_REENTRANT -Wall -W -fPIC -DBUILDNUM=\"6715e61d4\" -DBUILDDATE=\"20220106\" -DBINDIR=\"/home/milan/Apps/pgModeler.0.9.4\" -DPLUGINSDIR=\"/home/milan/Apps/pgModeler.0.9.4/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/home/milan/Apps/pgModeler.0.9.4\" -DCONFDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/conf\" -DDOCDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler\" -DLANGDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/lang\" -DSAMPLESDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/samples\" -DSCHEMASDIR=\"/home/milan/Apps/pgModeler.0.9.4/share/pgmodeler/schemas\" -DGRAPHICAL_QUERY_BUILDER_JOIN_SOLVER -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../libs/libgui/src -I../../libs/libcanvas/src -I../../libs/libconnector/src -I../../libs/libcore/src -I../../libs/libparsers/src -I../../libs/libutils/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler_ui -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler_ui/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libobjrenderer/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgconnector/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libpgmodeler/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libparsers/src -I/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder/../../libutils/src -Ipaal/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtUiTools -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Imoc -Isrc -isystem /usr/include/postgresql -isystem /usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o obj/graphicalquerybuilderpathwidget.o src/graphicalquerybuilderpathwidget.cpp In file included from src/graphicalquerybuildersqlwidget.cpp:19: src/graphicalquerybuildersqlwidget.h:29:10: fatal error: baseobjectwidget.h: No such file or directory 29 | #include "baseobjectwidget.h" | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1287: obj/graphicalquerybuildersqlwidget.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from src/graphicalquerybuildercorewidget.h:29, from src/graphicalquerybuildercorewidget.cpp:19: src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory 31 | #include "pgmodelerns.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1084: obj/graphicalquerybuildercorewidget.o] Error 1 In file included from src/graphicalquerybuilderpathwidget.cpp:19: src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory 31 | #include "pgmodelerns.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1161: obj/graphicalquerybuilderpathwidget.o] Error 1 In file included from src/graphicalquerybuildercorewidget.h:29, from src/graphicalquerybuilder.h:29, from src/graphicalquerybuilder.cpp:19: src/graphicalquerybuilderpathwidget.h:31:10: fatal error: pgmodelerns.h: No such file or directory 31 | #include "pgmodelerns.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1007: obj/graphicalquerybuilder.o] Error 1 make[2]: Leaving directory '/home/milan/Applications/pgModeler.0.9.4/plugins/graphicalquerybuilder' make[1]: *** [Makefile:135: sub-graphicalquerybuilder-make_first-ordered] Error 2 make[1]: Leaving directory '/home/milan/Applications/pgModeler.0.9.4/plugins' make: *** [Makefile:315: sub-plugins-make_first-ordered] Error 2 ``` Is there any way to go around the errors above?
rkhaotix commented 2022-01-06 14:00:27 +00:00 (Migrated from github.com)

Well, GQB plugin is currently deactivated in the pgModeler compilation process. @Maxzor is taking care of fixing things to get it back to normal regarding compilation.

Anyway, specifically about this error, try to replace the include statement #include "pgmodelerns.h" by #include "coreutilsns.h". This file was renamed during the development of 0.9.4.

Well, GQB plugin is currently deactivated in the pgModeler compilation process. @Maxzor is taking care of fixing things to get it back to normal regarding compilation. Anyway, specifically about this error, try to replace the include statement ```#include "pgmodelerns.h"``` by ```#include "coreutilsns.h"```. This file was renamed during the development of 0.9.4.
illuminated commented 2022-01-06 14:45:59 +00:00 (Migrated from github.com)

Anyway, specifically about this error, try to replace the include statement #include "pgmodelerns.h" by #include "coreutilsns.h". This file was renamed during the development of 0.9.4.

Thanks @rkhaotix . Should I use the same include replacement for #include "baseobjectwidget.h" as well?

> Anyway, specifically about this error, try to replace the include statement `#include "pgmodelerns.h"` by `#include "coreutilsns.h"`. This file was renamed during the development of 0.9.4. Thanks @rkhaotix . Should I use the same `include` replacement for `#include "baseobjectwidget.h"` as well?
Maxzor commented 2022-02-14 23:43:07 +00:00 (Migrated from github.com)

@illuminated this is fixed, Raphael made quite some changes for 0.9.4 explained in the blog post, including moving the widgets in sub directories.
Sorry for the time I took to fix.

@illuminated this is fixed, Raphael made quite some changes for 0.9.4 explained in the blog post, including moving the widgets in sub directories. Sorry for the time I took to fix.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pgmodeler/plugins#20
No description provided.