<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I am trying to create a GUI plugin and for that purpose I am looking
at the SourceToolbar example in the Examples subdirectory. This
compiles fine when using the CMake system with the Examples Build
option enabled. <br>
<br>
I then copied the SourceToolbar folder to the Plugins folder of
ParaView and added the following plugin.cmake file:<br>
<br>
pv_plugin(SourceToolbar<br>
DESCRIPTION "Testing plugin"<br>
DEFAULT_ENABLED)<br>
<br>
I did the CMake configuration step, which reported that it was also
going to build the "SourceToolbar" plugin:<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->Plugin:
SourceToolbar - Testing plugin : Enabled<br>
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
<!--EndFragment--></p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>I then generated the Makefiles and started the build. I get the
following error message:<br>
<br>
/home/panos/Development/ParaView/ParaView-v4.1.0-bin/Plugins/SourceToolbar/SourceToolbarActionsImplementation.h:46:
Error: Undefined interface<br>
make[2]: ***
[Plugins/SourceToolbar/moc_SourceToolbarActionsImplementation.cxx]
Error 1<br>
<br>
Why would the same code compiles correctly when in the Examples
directory and fails when in the Plugins directory?<br>
<br>
</body>
</html>