-------- 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.