[Paraview] Plugin Crashing on PV 3.12 RC2

David E DeMarle dave.demarle at kitware.com
Tue Jul 15 16:08:59 EDT 2014


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.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Tue, Jul 15, 2014 at 3:31 PM, Matthew Woehlke <
matthew.woehlke at kitware.com> wrote:

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


More information about the ParaView mailing list