<div dir="ltr">The trick is that you have to make sure that the VTK classes are wrapped into paraview's client server language and instantiable at run time. Check the Manta View plugin for an example.<div><br></div></div>

<div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 3:31 PM, Matthew Woehlke <span dir="ltr"><<a href="mailto:matthew.woehlke@kitware.com" target="_blank">matthew.woehlke@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">Utkarsh Ayachit <utkarsh.ayachit <at> <a href="http://kitware.com" target="_blank">kitware.com</a>> writes:<br>
> The problem is your VTk classes aren't getting compiled in/wrapped<br>
> correctly. Let me check it out.<br>
<br>
</div>Is there a general solution to this?<br>
<br>
I'm having the same problem. I have a paraview plugin that I am trying<br>
to refactor so that the VTK pieces are in their own library (I want to<br>
be able to use them in other tools without dragging in all the paraview<br>
stuff on top). Here's the condensed CMake:<br>
<br>
  vtk_module(MyLib)<br>
  vtk_module_library(MyLib ${MyLib_sources})<br>
<br>
  add_paraview_plugin(MyPlugin "1.0" ...)<br>
  target_link_libraries(MyPlugin MyLib)<br>
<br>
Before I split things (i.e. ${MyLib_sources} were passed to<br>
add_paraview_plugin as SERVER_SOURCES), everything worked fine.<br>
<br>
(Note: just for grins, I verified that I can call methods on the<br>
classes in MyLib from MyPlugin without link errors, so it's not that<br>
the classes just aren't being exported. It's something with then not<br>
being properly registered such that they can be created by name.)<br>
<br>
--<br>
Matthew<br>
<div class=""><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>