Hi Yumin,<br><br>Compiling my XML to expose VTK native filters produces a so/dll library that can be autoloaded in ParaView. However, I would take advantage on the fact that this XML may be shared to somebodyelse without the need to own &quot;ParaView from source&quot;. The wiki says: &quot;Alternatively, we can simply load the XML from the <b>Plugins Manager</b> (just select the file type to be *.xml in the file open dialog)&quot;. I want this because of deployment issues see thread &quot;<font size="2"><span id=":1ng" class="hP">About on-line available binaries for next release</span></font>&quot; )<br>

<br>- What have I to add in the XML to give him the same behaviour than its corresponding compiled library?<br><br>Furthermore, I thought that my Autostart plugin (called &quot;PVCustomizer&quot;) was unable to autoload because it depends on my ParaviewVTK XML plugin. But that is not the case: Even if I load the native VTK filters description with the compiled version, my PVCustomizer is loadable through the GUI, but it shows the message &quot;Loaded, but .....\PVCustomizer.dll, is not a server manager plugin!&quot; and no version is displayed although my CMakeLists contains the following lines:<br>

<br>##################################################<br># AUTOSTART PLUGIN --------------------------------------------------<br> QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h)<br> <br># Macro for auto-start plugins. We specify the class name<br>

# and the methods to call on startup and shutdown on an instance of that class.<br># It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro.<br> ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS <br>

   CLASS_NAME PVCustomizer # the class name for our class<br>   STARTUP onStartup   # specify the method to call on startup<br>   SHUTDOWN onShutdown # specify the method to call on shutdown<br> )<br> <br># Create a plugin for this starter <br>

 ADD_PARAVIEW_PLUGIN(PVCustomizer &quot;1.0&quot;<br>   REQUIRED_ON_CLIENT <br>   GUI_INTERFACES ${IFACES} <br>   SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS}<br>   REQUIRED_PLUGINS ParaviewVTK)<br>   <br> TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK )<br>

######################################################################<br><br>I checked &quot;Autoload&quot;, having no effect when I restart ParaView...<br><br>I looked at the sources, but I cannot understand now why this message is displayed. I will give a try with a step-by-step procedure.<br>
<br>Thanks a lot for your time, Yumin, and sorry for disturbing...<br>
<br>Best regards,<br>Jerome<br><br><br><div class="gmail_quote">2009/10/26 Yumin Yuan <span dir="ltr">&lt;<a href="mailto:yumin.yuan@kitware.com" target="_blank">yumin.yuan@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi Jerome,<br>
<br>
You can try to compile your xml into a plugin, which will also solve<br>
your the Version problem<br>
<br>
Check &quot;Enabling a filter in VTK&quot; section on the wiki:<br>
<a href="http://paraview.org/Wiki/Plugin_HowTo" target="_blank">http://paraview.org/Wiki/Plugin_HowTo</a><br>
<font color="#888888"><br>
Yumin<br>
</font><div><div></div><div><br>
On Mon, Oct 26, 2009 at 11:39 AM, Jérôme &lt;<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>&gt; wrote:<br>
&gt; Hi Yumin,<br>
&gt;<br>
&gt; Thanks a lot for your interest !! However...<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; I assume once you load your xml plugin from the plugin_loader, and<br>
&gt;&gt; check the &quot;Auto Load&quot; checkbox, the next time you start paraview, your<br>
&gt;&gt; xml plugin is loaded automatically, no?<br>
&gt;<br>
&gt;<br>
&gt; That&#39;s my problem: it is not loaded even in this case... Attached is a<br>
&gt; minimal xml that exposes vtkImageMathematics to paraview filter list. I<br>
&gt; cannot auto-load it.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Now regarding the warning message, I believe it is due to the new<br>
&gt;&gt; addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see<br>
&gt;&gt; below), and the version shown in the plugin_loader_GUI refers to<br>
&gt;&gt; plugin &quot;Version&quot; you set when calling ADD_PARAVIEW_PLUGIN in<br>
&gt;&gt; CMakeLists.txt<br>
&gt;<br>
&gt; Yes, my CMakeLists contains the version specification for the cxx plugins.<br>
&gt; But thank you for the update about REQUIRED_PLUGINS, I was hoping that it<br>
&gt; will solve my problem. So I set the PVCustomizer (cxx plugin, version &quot;1.0&quot;<br>
&gt; in the CMakeLists) requiring the XML &quot;ParaviewVTK&quot;. But I cannot load<br>
&gt; &quot;ParaviewVTK&quot;, so making the former depending on the latter is quite<br>
&gt; awkward... Finally, you made me progressing and I have a more precise<br>
&gt; question :<br>
&gt;    - How to set the version of a plugin that is only an XML description of<br>
&gt; VTK filters? -ie I don&#39;t have a CMakeLists for this...-<br>
&gt;<br>
&gt; Thanks again Yumin!<br>
&gt;<br>
&gt; Jerome<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Oct 23, 2009 at 4:34 AM, Jérôme &lt;<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ParaView-CVS brought a good surprise for me a few days ago. The plugin<br>
&gt;&gt; &gt; loader has been rewrote and is now offering an auto-load option that is<br>
&gt;&gt; &gt; very<br>
&gt;&gt; &gt; useful.<br>
&gt;&gt; &gt; However, I have an XML description of a lot of VTK native filters that<br>
&gt;&gt; &gt; cannot be opened automatically. I have to &quot;Load new&quot; each time. Then, no<br>
&gt;&gt; &gt; problem, the filters are exposed in the menu. But the plugin loader<br>
&gt;&gt; &gt; gives a<br>
&gt;&gt; &gt; warning message (see screenshot attached) and no &quot;Version&quot; (effectively,<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; XML doesn&#39;t have a &quot;version=&quot; element)...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Second, I have an AutoStartPlugin that shows exactly the same problem<br>
&gt;&gt; &gt; (PVCustomizer). The reason, I think, is that this plugin depends on VTK<br>
&gt;&gt; &gt; filters (SplineFilter) that is described in the previous XML...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Can someone tell me how to make the XML plugin &#39;autoloadeable&#39; ? I<br>
&gt;&gt; &gt; wonder if<br>
&gt;&gt; &gt; it will solve the second problem...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks a lot!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Jerome<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; &gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; ~~~~~~~~~~~~~~~~<br>
&gt;&gt; Yumin Yuan<br>
&gt;&gt; R&amp;D Engineer<br>
&gt;&gt; Kitware Inc.<br>
&gt;&gt; <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; Phone : (518) 881-4936<br>
&gt;&gt; email : <a href="mailto:yumin.yuan@kitware.com" target="_blank">yumin.yuan@kitware.com</a><br>
&gt;&gt; ~~~~~~~~~~~~~~~~<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div>~~~~~~~~~~~~~~~~<br>
Yumin Yuan<br>
R&amp;D Engineer<br>
Kitware Inc.<br>
<a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
Phone : (518) 881-4936<br>
email : <a href="mailto:yumin.yuan@kitware.com" target="_blank">yumin.yuan@kitware.com</a><br>
~~~~~~~~~~~~~~~~<br>
</div></div></blockquote></div><br>