-------- Forwarded Message -------- Subject: SimplePlugin compilation Date: Tue, 3 Nov 2015 18:38:51 +0530 From: Govind Kelkar <govindkelkar@gmail.com> To: openflipper@lists.rwth-aachen.de I am using Qt-5.2.1 and am getting error if I try to compile the SimplePlugin code given in the tutorial. Here is the error log: In file included from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qnamespace.h:45:0, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qobjectdefs.h:45, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qobject.h:48, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qplugin.h:45, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/QtPlugin:1, from /home/govind/softwares/openflipper/OpenFlipper21/OpenFlipper/BasePlugin/BaseInterface.hh:46, from /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.hh:4, from /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.cc:1: /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qglobal.h:679:121: error: invalid application of ‘sizeof’ to incomplete type ‘QStaticAssertFailure<false>’ enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)} ^ /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qglobal.h:684:47: note: in expansion of macro ‘Q_STATIC_ASSERT’ #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition) ^ /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qplugin.h:144:5: note: in expansion of macro ‘Q_STATIC_ASSERT_X’ Q_STATIC_ASSERT_X(false, "Old plugin system used") ^ /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.cc:4:1: note: in expansion of macro ‘Q_EXPORT_PLUGIN2’ Q_EXPORT_PLUGIN2( simplePlugin , SimplePlugin ); ^ Please let me know where is the error and how to handle it as I am totally new to Qt programming.
Hi, please use the OpenFlipper version from git, if you want to build with Qt5: https://www.graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper-Free.g... Your plugin uses Qt4 style plugin loading, which won't work with Qt5. Best, Jan Möbius On 03.11.2015 14:14, Govind Kelkar wrote:
-------- Forwarded Message -------- Subject: SimplePlugin compilation Date: Tue, 3 Nov 2015 18:38:51 +0530 From: Govind Kelkar <govindkelkar@gmail.com> To: openflipper@lists.rwth-aachen.de
I am using Qt-5.2.1 and am getting error if I try to compile the SimplePlugin code given in the tutorial. Here is the error log: In file included from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qnamespace.h:45:0, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qobjectdefs.h:45, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qobject.h:48, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qplugin.h:45, from /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/QtPlugin:1, from /home/govind/softwares/openflipper/OpenFlipper21/OpenFlipper/BasePlugin/BaseInterface.hh:46, from /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.hh:4, from /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.cc:1: /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qglobal.h:679:121: error: invalid application of ‘sizeof’ to incomplete type ‘QStaticAssertFailure<false>’ enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)} ^ /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qglobal.h:684:47: note: in expansion of macro ‘Q_STATIC_ASSERT’ #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition) ^ /opt/Qt5.2.1/5.2.1/gcc_64/include/QtCore/qplugin.h:144:5: note: in expansion of macro ‘Q_STATIC_ASSERT_X’ Q_STATIC_ASSERT_X(false, "Old plugin system used") ^ /home/govind/softwares/openflipper/OpenFlipper21/Plugin-SimplePlugin/simplePlugin.cc:4:1: note: in expansion of macro ‘Q_EXPORT_PLUGIN2’ Q_EXPORT_PLUGIN2( simplePlugin , SimplePlugin ); ^
Please let me know where is the error and how to handle it as I am totally new to Qt programming.
_______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
-- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21802 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de
participants (2)
-
Govind Kelkar
-
Jan Möbius