pgmodeler / plugins

pgModeler plug-ins repository
20 stars 6 forks source link

can't compile with pgmodeler 0.9.4-beta #17

Open masavini opened 3 years ago

masavini commented 3 years ago
make[1]: Leaving directory '/usr/local/src/pgmodeler-0.9.4-beta/libs/libgui'
cd plugins/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /usr/local/src/pgmodeler-0.9.4-beta/plugins/plugins.pro CONFIG+=release ) && make -f Makefile 
make[1]: Entering directory '/usr/local/src/pgmodeler-0.9.4-beta/plugins'
cd dummy/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /usr/local/src/pgmodeler-0.9.4-beta/plugins/dummy/dummy.pro CONFIG+=release ) && make -f Makefile 
make[2]: Entering directory '/usr/local/src/pgmodeler-0.9.4-beta/plugins/dummy'
g++ -c -pipe -O2 -std=gnu++1y -D_REENTRANT -Wall -W -fPIC -DBUILDNUM=\"\" -DBUILDDATE=\"20211018\" -DBINDIR=\"/usr/local/bin\" -DPLUGINSDIR=\"/usr/local/lib/pgmodeler/plugins\" -DPRIVATEBINDIR=\"/usr/local/bin\" -DCONFDIR=\"/usr/local/share/pgmodeler/conf\" -DDOCDIR=\"/usr/local/share/pgmodeler\" -DLANGDIR=\"/usr/local/share/pgmodeler/lang\" -DSAMPLESDIR=\"/usr/local/share/pgmodeler/samples\" -DSCHEMASDIR=\"/usr/local/share/pgmodeler/schemas\" -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/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libpgmodeler_ui -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libpgmodeler_ui/src -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libobjrenderer/src -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libpgconnector/src -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libpgmodeler/src -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libparsers/src -I/usr/local/src/pgmodeler-0.9.4-beta/plugins/../libutils/src -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 -isystem /usr/include/libdrm -isystem /usr/include/postgresql -isystem /usr/include/libxml2 -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o obj/dummy.o src/dummy.cpp
In file included from src/dummy.cpp:19:
src/dummy.h:28:10: fatal error: pgmodelerplugin.h: No such file or directory
 #include "pgmodelerplugin.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:420: obj/dummy.o] Error 1
make[2]: Leaving directory '/usr/local/src/pgmodeler-0.9.4-beta/plugins/dummy'
make[1]: Leaving directory '/usr/local/src/pgmodeler-0.9.4-beta/plugins'
make[1]: *** [Makefile:47: sub-dummy-make_first-ordered] Error 2
make: *** [Makefile:313: sub-plugins-make_first-ordered] Error 2
rkhaotix commented 3 years ago

Here I can compile without problems. pgModeler 0.9.4-beta1 (to be released)

Do you have any other detail to provide that may help to find the problem?

masavini commented 3 years ago

thanks for your reply, i was using the latest release. later i will try checking out the beta1 tree and let you know...

rkhaotix commented 3 years ago

Okay, no problem.

Try to use the branch develop of the plugins repo too.

masavini commented 3 years ago

checked out both 0.9.4-beta1 branch for pgmodeler and develop branch for plugins, but i got another error:

In file included from src/xml2object.h:29,
                 from src/xml2object.cpp:19:
src/xml2objectwidget.h:5:10: fatal error: syntaxhighlighter.h: No such file or directory
 #include "syntaxhighlighter.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
shujaatak commented 3 years ago

@rkhaotix having same issue, I am on Ubuntu, using branch develop of the plugins and branch 0.9.4-beta1 of the pgmodeler repository:

In file included from src/xml2objectwidget.cpp:1:
src/xml2objectwidget.h:5:10: fatal error: syntaxhighlighter.h: No such file or directory
    5 | #include "syntaxhighlighter.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2429: obj/xml2objectwidget.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from src/xml2object.h:29,
                 from src/xml2object.cpp:19:
src/xml2objectwidget.h:5:10: fatal error: syntaxhighlighter.h: No such file or directory
    5 | #include "syntaxhighlighter.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2228: obj/xml2object.o] Error 1
make[2]: Leaving directory '/home/shujaat/Desktop/pgModeler/pgmodeler/plugins/xml2object'
make[1]: *** [Makefile:91: sub-xml2object-make_first-ordered] Error 2
make[1]: Leaving directory '/home/shujaat/Desktop/pgModeler/pgmodeler/plugins'
make: *** [Makefile:315: sub-plugins-make_first-ordered] Error 2
rkhaotix commented 3 years ago

@shujaatak @masavini You can try to compile now. I've fixed the broken code in xml2objectwdiget.h