<html><head></head><body>That is correct. Thank you! <br clear="none"><br clear="none"><div class="gmail_quote">On 21 Aug 2014, Utkarsh Ayachit <utkarsh.ayachit@kitware.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k10mail">I believe you need to add a<br clear="none"><br clear="none">INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})<br clear="none"><br clear="none">in the CMakeLists.txt at the top when moving the plugin to under Plugins.<br clear="none"><br clear="none">On Mon, Aug 18, 2014 at 12:54 PM, Panos Asproulis<br clear="none"><panos.asproulis@gmail.com> wrote:<br clear="none"></pre><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hi all,<br clear="none"><br clear="none">I am trying to create a GUI plugin and for that purpose I am looking at the<br clear="none">SourceToolbar example in the Examples subdirectory. This compiles fine when<br clear="none">using the CMake system with the Examples Build option enabled.<br clear="none"><br clear="none">I then copied the SourceToolbar folder to the Plugins folder of ParaView and<br clear="none">added the following plugin.cmake file:<br clear="none"><br
clear="none">pv_plugin(SourceToolbar<br clear="none">DESCRIPTION "Testing plugin"<br clear="none">DEFAULT_ENABLED)<br clear="none"><br clear="none">I did the CMake configuration step, which reported that it was also going to<br clear="none">build the "SourceToolbar" plugin:<br clear="none"><br clear="none">Plugin: SourceToolbar - Testing plugin : Enabled<br clear="none"><br clear="none"><br clear="none">I then generated the Makefiles and started the build. I get the following<br clear="none">error message:<br clear="none"><br clear="none">/home/panos/Development/ParaView/ParaView-v4.1.0-bin/Plugins/SourceToolbar/SourceToolbarActionsImplementation.h:46:<br clear="none">Error: Undefined interface<br clear="none">make[2]: ***<br clear="none">[Plugins/SourceToolbar/moc_SourceToolbarActionsImplementation.cxx] Error 1<br clear="none"><br clear="none">Why would the same code compiles correctly when in the Examples directory<br clear="none">and fails when in the Plugins directory?<br
clear="none"><br clear="none"><br clear="none"><hr><br clear="none">Paraview-developers mailing list<br clear="none">Paraview-developers@paraview.org<br clear="none"><a shape="rect" href="http://public.kitware.com/mailman/listinfo/paraview-developers">http://public.kitware.com/mailman/listinfo/paraview-developers</a></blockquote><br clear="none"></blockquote></div><br clear="none">--<br clear="none">
Dr. Panos Asproulis, <br clear="none">
panos.asproulis@gmail.com</body></html>