Operation::ObjCreated error unable to make #24

Open
opened 2022-11-11 02:10:24 +00:00 by d4munche3z · 2 comments
d4munche3z commented 2022-11-11 02:10:24 +00:00 (Migrated from github.com)

I came across this error after running make.

make[3]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy'
make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy'
cd xml2object/ && ( test -e Makefile || C:/msys64/mingw64/bin/qmake.exe -o Makefile C:/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object/xml2object.pro CONFIG+=release PREFIX=C:/Program ) && make -f Makefile
make[2]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object'
make -f Makefile.Release
make[3]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object'
g++ -c -fno-keep-inline-dllexport -march=nocona -msahf -mtune=generic -Wa,-mbig-obj -DHAVE_STRUCT_TIMESPEC -O2 -std=gnu++1y -Wall -Wextra -Wextra -fexceptions -mthreads -frtti -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DBUILDNUM="20221110" -DBUILDDATE="20221110" -DBINDIR="C:/Program" -DPLUGINSDIR="C:/Program/plugins" -DPRIVATEBINDIR="C:/Program" -DCONFDIR="C:/Program/conf" -DDOCDIR="C:/Program" -DLANGDIR="C:/Program/lang" -DSAMPLESDIR="C:/Program/samples" -DSCHEMASDIR="C:/Program/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. -IC:/msys64/mingw64/include -IC:/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:/msys64/mingw64/include/QtPrintSupport -IC:/msys64/mingw64/include/QtSvg -IC:/msys64/mingw64/include/QtUiTools -IC:/msys64/mingw64/include/QtWidgets -IC:/msys64/mingw64/include/QtGui -IC:/msys64/mingw64/include/QtNetwork -IC:/msys64/mingw64/include/QtCore -Imoc -Isrc -I/include -IC:/msys64/mingw64/share/qt5/mkspecs/win32-g++ -o obj/xml2objectwidget.o src/xml2objectwidget.cpp
src/xml2objectwidget.cpp: In member function 'void Xml2ObjectWidget::generateObject()':
src/xml2objectwidget.cpp:87:92: error: 'ObjCreated' is not a member of 'Operation'
87 | op_list->registerObject(object, Operation::ObjCreated, -1, model);
| ^~~~~~~~~~
make[3]: *** [Makefile.Release:587: obj/xml2objectwidget.o] Error 1
make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object'
make[2]: *** [Makefile:45: release] Error 2
make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object'
make[1]: *** [Makefile:95: sub-xml2object-make_first-ordered] Error 2
make[1]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins'
make: *** [Makefile:318: sub-plugins-make_first-ordered] Error 2

If you can help out with this. Thank you!

I came across this error after running make. make[3]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy' make[3]: Nothing to be done for 'first'. make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy' make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/dummy' cd xml2object/ && ( test -e Makefile || C:/msys64/mingw64/bin/qmake.exe -o Makefile C:/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object/xml2object.pro CONFIG+=release PREFIX=C:/Program ) && make -f Makefile make[2]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object' make -f Makefile.Release make[3]: Entering directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object' g++ -c -fno-keep-inline-dllexport -march=nocona -msahf -mtune=generic -Wa,-mbig-obj -DHAVE_STRUCT_TIMESPEC -O2 -std=gnu++1y -Wall -Wextra -Wextra -fexceptions -mthreads -frtti -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DBUILDNUM=\"20221110\" -DBUILDDATE=\"20221110\" -DBINDIR=\"C:/Program\" -DPLUGINSDIR=\"C:/Program/plugins\" -DPRIVATEBINDIR=\"C:/Program\" -DCONFDIR=\"C:/Program/conf\" -DDOCDIR=\"C:/Program\" -DLANGDIR=\"C:/Program/lang\" -DSAMPLESDIR=\"C:/Program/samples\" -DSCHEMASDIR=\"C:/Program/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. -IC:/msys64/mingw64/include -IC:/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:/msys64/mingw64/include/QtPrintSupport -IC:/msys64/mingw64/include/QtSvg -IC:/msys64/mingw64/include/QtUiTools -IC:/msys64/mingw64/include/QtWidgets -IC:/msys64/mingw64/include/QtGui -IC:/msys64/mingw64/include/QtNetwork -IC:/msys64/mingw64/include/QtCore -Imoc -Isrc -I/include -IC:/msys64/mingw64/share/qt5/mkspecs/win32-g++ -o obj/xml2objectwidget.o src/xml2objectwidget.cpp src/xml2objectwidget.cpp: In member function 'void Xml2ObjectWidget::generateObject()': src/xml2objectwidget.cpp:87:92: error: 'ObjCreated' is not a member of 'Operation' 87 | op_list->registerObject(object, Operation::ObjCreated, -1, model); | ^~~~~~~~~~ make[3]: *** [Makefile.Release:587: obj/xml2objectwidget.o] Error 1 make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object' make[2]: *** [Makefile:45: release] Error 2 make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins/xml2object' make[1]: *** [Makefile:95: sub-xml2object-make_first-ordered] Error 2 make[1]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/pgmodeler-main/plugins' make: *** [Makefile:318: sub-plugins-make_first-ordered] Error 2 If you can help out with this. Thank you!
rkhaotix commented 2022-11-14 10:57:06 +00:00 (Migrated from github.com)

Try to build pgModeler 1.0.0-beta1 branch with the latest code in develop branch of plugins. I'm still working on on 1.0.0-beta1 and I shall merge the code to pgModeler's develop branch in a few days.

Try to build pgModeler 1.0.0-beta1 branch with the latest code in develop branch of plugins. I'm still working on on 1.0.0-beta1 and I shall merge the code to pgModeler's develop branch in a few days.
d4munche3z commented 2022-11-16 00:28:20 +00:00 (Migrated from github.com)

Thank you for the recommendation, however i have come across another error.

C:/msys64/mingw64/include/qt6/QtCore/qversionnumber.h:301:33: warning: 'size_t qHash(const QVersionNumber&, size_t)' redeclared without dllim
port attribute: previous dllimport ignored [-Wattributes]
301 | friend Q_CORE_EXPORT size_t qHash(const QVersionNumber &key, size_t seed);
| ^~~~~
In file included from C:/msys64/mingw64/include/qt6/QtCore/qmimedatabase.h:8,
from C:/msys64/mingw64/include/qt6/QtCore/QtCore:148:
C:/msys64/mingw64/include/qt6/QtCore/qmimetype.h:86:33: warning: 'size_t qHash(const QMimeType&, size_t)' redeclared without dllimport attrib
ute: previous dllimport ignored [-Wattributes]
86 | friend Q_CORE_EXPORT size_t qHash(const QMimeType &key, size_t seed) noexcept;
| ^~~~~
In file included from C:/msys64/mingw64/include/qt6/QtCore/QtCore:266:
C:/msys64/mingw64/include/qt6/QtCore/qurlquery.h:71:33: warning: 'size_t qHash(const QUrlQuery&, size_t)' redeclared without dllimport attrib
ute: previous dllimport ignored [-Wattributes]
71 | friend Q_CORE_EXPORT size_t qHash(const QUrlQuery &key, size_t seed) noexcept;
| ^~~~~
In file included from C:/msys64/mingw64/include/qt6/QtGui/qtextformat.h:10,
from C:/msys64/mingw64/include/qt6/QtGui/qtextcursor.h:11,
from C:/msys64/mingw64/include/qt6/QtGui/qtextlayout.h:9,
from C:/msys64/mingw64/include/qt6/QtGui/qabstracttextdocumentlayout.h:9,
from C:/msys64/mingw64/include/qt6/QtGui/QtGui:6,
from C:/msys64/mingw64/include/qt6/QtWidgets/QtWidgetsDepends:4:
C:/msys64/mingw64/include/qt6/QtGui/qpen.h:83:38: warning: 'QDataStream& operator>>(QDataStream&, QPen&)' redeclared without dllimport attrib
ute: previous dllimport ignored [-Wattributes]
83 | friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPen &);
| ^~~~~~~~
C:/msys64/mingw64/include/qt6/QtGui/qpen.h:84:38: warning: 'QDataStream& operator<<(QDataStream&, const QPen&)' redeclared without dllimport
attribute: previous dllimport ignored [-Wattributes]
84 | friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QPen &);
| ^~~~~~~~
g++ -Wl,-s -shared -Wl,-subsystem,windows -mthreads -Wl,--out-implib,C:/Users/David/IdeaProjects/pgmodeler/plugins/libgraphicalquerybuilder.dll.a -o "../../plugins/ C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll" obj/graphicalquerybuilder.o obj/graphicalquerybuildercorewidget.o obj/graphicalquerybuilderpathwidget.o obj/graphicalquerybuildersqlwidget.o obj/moc_graphicalquerybuilder.o obj/moc_graphicalquerybuildercorewidget.o obj/moc_graphicalquerybuilderpathwidget.o obj/moc_graphicalquerybuildersqlwidget.o -LC:/Users/David/IdeaProjects/pgmodeler/libs/libgui -lgui -LC:/Users/David/IdeaProjects/pgmodeler/libs/libcanvas -lcanvas -LC:/Users/David/IdeaProjects/pgmodeler/libs/libconnector -lconnector -LC:/Users/David/IdeaProjects/pgmodeler/libs/libcore -lcore -LC:/Users/David/IdeaProjects/pgmodeler/libs/libparsers -lparsers -LC:/Users/David/IdeaProjects/pgmodeler/libs/libutils -lutils -LC:/Users/David/IdeaProjects/pgmodeler/libgui -LC:/Users/David/IdeaProjects/pgmodeler/libcanvas -LC:/Users/David/IdeaProjects/pgmodeler/libconnector -LC:/Users/David/IdeaProjects/pgmodeler/libcore -LC:/Users/David/IdeaProjects/pgmodeler/libparsers -LC:/Users/David/IdeaProjects/pgmodeler/libutils C:/msys64/mingw64/lib/libQt6PrintSupport.dll.a C:/msys64/mingw64/lib/libQt6UiTools.dll.a C:/msys64/mingw64/lib/libQt6OpenGLWidgets.dll.a C:/msys64/mingw64/lib/libQt6Widgets.dll.a C:/msys64/mingw64/lib/libQt6Svg.dll.a C:/msys64/mingw64/lib/libQt6OpenGL.dll.a C:/msys64/mingw64/lib/libQt6Gui.dll.a C:/msys64/mingw64/lib/libQt6Network.dll.a C:/msys64/mingw64/lib/libQt6Core.dll.a
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file ../../plugins/
C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll: Invalid argument
collect2.exe: error: ld returned 1 exit status
make[3]: *** [Makefile.Release:87: ../../plugins/ C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll] Error 1
make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuilder'
make[2]: *** [Makefile:45: release] Error 2
make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuilder'
make[1]: *** [Makefile:138: sub-graphicalquerybuilder-make_first-ordered] Error 2
make[1]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins'
make: *** [Makefile:318: sub-plugins-make_first-ordered] Error 2

Thank you for the recommendation, however i have come across another error. C:/msys64/mingw64/include/qt6/QtCore/qversionnumber.h:301:33: warning: 'size_t qHash(const QVersionNumber&, size_t)' redeclared without dllim port attribute: previous dllimport ignored [-Wattributes] 301 | friend Q_CORE_EXPORT size_t qHash(const QVersionNumber &key, size_t seed); | ^~~~~ In file included from C:/msys64/mingw64/include/qt6/QtCore/qmimedatabase.h:8, from C:/msys64/mingw64/include/qt6/QtCore/QtCore:148: C:/msys64/mingw64/include/qt6/QtCore/qmimetype.h:86:33: warning: 'size_t qHash(const QMimeType&, size_t)' redeclared without dllimport attrib ute: previous dllimport ignored [-Wattributes] 86 | friend Q_CORE_EXPORT size_t qHash(const QMimeType &key, size_t seed) noexcept; | ^~~~~ In file included from C:/msys64/mingw64/include/qt6/QtCore/QtCore:266: C:/msys64/mingw64/include/qt6/QtCore/qurlquery.h:71:33: warning: 'size_t qHash(const QUrlQuery&, size_t)' redeclared without dllimport attrib ute: previous dllimport ignored [-Wattributes] 71 | friend Q_CORE_EXPORT size_t qHash(const QUrlQuery &key, size_t seed) noexcept; | ^~~~~ In file included from C:/msys64/mingw64/include/qt6/QtGui/qtextformat.h:10, from C:/msys64/mingw64/include/qt6/QtGui/qtextcursor.h:11, from C:/msys64/mingw64/include/qt6/QtGui/qtextlayout.h:9, from C:/msys64/mingw64/include/qt6/QtGui/qabstracttextdocumentlayout.h:9, from C:/msys64/mingw64/include/qt6/QtGui/QtGui:6, from C:/msys64/mingw64/include/qt6/QtWidgets/QtWidgetsDepends:4: C:/msys64/mingw64/include/qt6/QtGui/qpen.h:83:38: warning: 'QDataStream& operator>>(QDataStream&, QPen&)' redeclared without dllimport attrib ute: previous dllimport ignored [-Wattributes] 83 | friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPen &); | ^~~~~~~~ C:/msys64/mingw64/include/qt6/QtGui/qpen.h:84:38: warning: 'QDataStream& operator<<(QDataStream&, const QPen&)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] 84 | friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QPen &); | ^~~~~~~~ g++ -Wl,-s -shared -Wl,-subsystem,windows -mthreads -Wl,--out-implib,C:/Users/David/IdeaProjects/pgmodeler/plugins/libgraphicalquerybuilder.dll.a -o "../../plugins/ C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll" obj/graphicalquerybuilder.o obj/graphicalquerybuildercorewidget.o obj/graphicalquerybuilderpathwidget.o obj/graphicalquerybuildersqlwidget.o obj/moc_graphicalquerybuilder.o obj/moc_graphicalquerybuildercorewidget.o obj/moc_graphicalquerybuilderpathwidget.o obj/moc_graphicalquerybuildersqlwidget.o -LC:/Users/David/IdeaProjects/pgmodeler/libs/libgui -lgui -LC:/Users/David/IdeaProjects/pgmodeler/libs/libcanvas -lcanvas -LC:/Users/David/IdeaProjects/pgmodeler/libs/libconnector -lconnector -LC:/Users/David/IdeaProjects/pgmodeler/libs/libcore -lcore -LC:/Users/David/IdeaProjects/pgmodeler/libs/libparsers -lparsers -LC:/Users/David/IdeaProjects/pgmodeler/libs/libutils -lutils -LC:/Users/David/IdeaProjects/pgmodeler/libgui -LC:/Users/David/IdeaProjects/pgmodeler/libcanvas -LC:/Users/David/IdeaProjects/pgmodeler/libconnector -LC:/Users/David/IdeaProjects/pgmodeler/libcore -LC:/Users/David/IdeaProjects/pgmodeler/libparsers -LC:/Users/David/IdeaProjects/pgmodeler/libutils C:/msys64/mingw64/lib/libQt6PrintSupport.dll.a C:/msys64/mingw64/lib/libQt6UiTools.dll.a C:/msys64/mingw64/lib/libQt6OpenGLWidgets.dll.a C:/msys64/mingw64/lib/libQt6Widgets.dll.a C:/msys64/mingw64/lib/libQt6Svg.dll.a C:/msys64/mingw64/lib/libQt6OpenGL.dll.a C:/msys64/mingw64/lib/libQt6Gui.dll.a C:/msys64/mingw64/lib/libQt6Network.dll.a C:/msys64/mingw64/lib/libQt6Core.dll.a C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file ../../plugins/ C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll: Invalid argument collect2.exe: error: ld returned 1 exit status make[3]: *** [Makefile.Release:87: ../../plugins/ C:/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuildergraphicalquerybuilder.dll] Error 1 make[3]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuilder' make[2]: *** [Makefile:45: release] Error 2 make[2]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins/graphicalquerybuilder' make[1]: *** [Makefile:138: sub-graphicalquerybuilder-make_first-ordered] Error 2 make[1]: Leaving directory '/c/Users/David/IdeaProjects/pgmodeler/plugins' make: *** [Makefile:318: sub-plugins-make_first-ordered] Error 2
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#24
No description provided.