I&#39;m not certain, but it sounds like a similar thing to what I had to do to split the Manta plugin into VTK and ParaView level components. In the VTK level directory, I wrap the library into client server language in CMakeList.txt. Next, in order for the ParaView level code to actually instantiate the wrapped things in the VTK level library I had to use client server streams to call void vtkMantaCS_Initialize(vtkClientServerInterpreter *arlu);<div>

<br></div><div>See:</div><div> Plugins/Manta/VTK/CMakeList.txt</div><div> Plugins/Manta/ParaView/vtkMantaClientServerViewProxy::BeginCreateVTKObjects()</div><div> Plugins/Manta/ParaView/vtkServerSideFactory::EnableFactory()</div>

<div><div><div><div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Wed, Dec 1, 2010 at 4:05 PM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I am having a problem trying to get some of my various plugins to all compile at the same time. The issue is that each plugin re-uses some of the same code so I thought I would factor all that code out into it&#39;s own support library. Let&#39;s call it &quot;H5Vtk&quot;. Now the H5Vtk library implements various vtkH5*Reader classes and some some HDF5 wrapper functions in it.<br>


  The first time I created a plugin all was fine as I had some server manager sources and some plain server sources. All was fine. Then I added another plugin into the mix that needs to use some of the classes from the H5Vtk either as super classes or as support classes. For various reasons I can NOT combine both of these projects (which would be the really simple solution). This did not work as I got linker errors due to the missing symbols in the second library.<br>


  Back to the H5Vtk library. I had this all setup as a plain old library and then tried to add a simple XML based plugin to expose the various vtkH5*Readers that I wrote. While everything compiled OK and ParaView ran, the new file extensions were never shown in the Open File dialog. Which sort of makes sense to me because those source files were never &quot;wrapped&quot; in Server-Manager code.<br>


<br>
  It is almost like I need to call ADD_PARAVIEW_PLUGIN with a flag that says &quot;wrap these sources and ONLY compile the wrapped sources as the originals are in a library somewhere&quot;.<br>
<br>
  If anyone has any ideas that would be absolutely great. I think I am just spinning my wheels at this point and not really going anywhere.<br>
<br>
Thanks<br>
___________________________________________________________<br>
Mike Jackson                      <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer       <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software               Dayton, Ohio<br>
<br>
<br>
<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>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div></div></div></div>