Re: [Paraview] Auto-load plugin failed
Hi Jerome, I assume once you load your xml plugin from the plugin_loader, and check the "Auto Load" checkbox, the next time you start paraview, your xml plugin is loaded automatically, no? Also, you can set up an environment variable "PV_PLUGIN_PATH", which paraview will search by default to load plugins automatically. Now regarding the warning message, I believe it is due to the new addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see below), and the version shown in the plugin_loader_GUI refers to plugin "Version" you set when calling ADD_PARAVIEW_PLUGIN in CMakeLists.txt ADD_PARAVIEW_PLUGIN(Name Version [REQUIRED_ON_SERVER] [REQUIRED_ON_CLIENT] [REQUIRED_PLUGINS pluginname1 pluginname2] ...) New optional arguments for ADD_PARAVIEW_PLUGIN: REQUIRED_ON_SERVER is to specify whether this plugin should be loaded on server REQUIRED_ON_CLIENT is to specify whether this plugin should be loaded on client REQUIRED_PLUGINS is to specify the plugin names that this plugin depends on; Currently this ARG only allow plugin names, and we should later also allow plugin versions to be specified. For a client side only plugin, REQUIRED_ON_CLIENT should be specified; For a server side only plugin, REQUIRED_ON_SERVER should be specified; if a plugin has both server and client components in it, REQUIRED_ON_SERVER and REQUIRED_ON_CLIENT should both be specified, which is also the default. If only one is specified, the other one will be set to false. For example, if REQUIRED_ON_SERVER is specified ADD_PARAVIEW_PLUGIN(Name Version [REQUIRED_ON_SERVER] ...) This plugin will have REQUIRED_ON_SERVER be true, REQUIRED_ON_CLIENT be false. HTH, Yumin On Fri, Oct 23, 2009 at 4:34 AM, Jérôme wrote: > Hi, > > ParaView-CVS brought a good surprise for me a few days ago. The plugin > loader has been rewrote and is now offering an auto-load option that is very > useful. > However, I have an XML description of a lot of VTK native filters that > cannot be opened automatically. I have to "Load new" each time. Then, no > problem, the filters are exposed in the menu. But the plugin loader gives a > warning message (see screenshot attached) and no "Version" (effectively, the > XML doesn't have a "version=" element)... > > Second, I have an AutoStartPlugin that shows exactly the same problem > (PVCustomizer). The reason, I think, is that this plugin depends on VTK > filters (SplineFilter) that is described in the previous XML... > > Can someone tell me how to make the XML plugin 'autoloadeable' ? I wonder if > it will solve the second problem... > > Thanks a lot! > > Jerome > > ___ > 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://www.paraview.org/mailman/listinfo/paraview > > -- Yumin Yuan R&D Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Hi Yumin, Thanks a lot for your interest !! However... > I assume once you load your xml plugin from the plugin_loader, and > check the "Auto Load" checkbox, the next time you start paraview, your > xml plugin is loaded automatically, no? That's my problem: it is not loaded even in this case... Attached is a minimal xml that exposes vtkImageMathematics to paraview filter list. I cannot auto-load it. > Now regarding the warning message, I believe it is due to the new > addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see > below), and the version shown in the plugin_loader_GUI refers to > plugin "Version" you set when calling ADD_PARAVIEW_PLUGIN in > CMakeLists.txt > Yes, my CMakeLists contains the version specification for the cxx plugins. But thank you for the update about REQUIRED_PLUGINS, I was hoping that it will solve my problem. So I set the PVCustomizer (cxx plugin, version "1.0" in the CMakeLists) requiring the XML "ParaviewVTK". But I cannot load "ParaviewVTK", so making the former depending on the latter is quite awkward... Finally, you made me progressing and I have a more precise question : - How to set the version of a plugin that is only an XML description of VTK filters? -ie I don't have a CMakeLists for this...- Thanks again Yumin! Jerome > > On Fri, Oct 23, 2009 at 4:34 AM, Jérôme wrote: > > Hi, > > > > ParaView-CVS brought a good surprise for me a few days ago. The plugin > > loader has been rewrote and is now offering an auto-load option that is > very > > useful. > > However, I have an XML description of a lot of VTK native filters that > > cannot be opened automatically. I have to "Load new" each time. Then, no > > problem, the filters are exposed in the menu. But the plugin loader gives > a > > warning message (see screenshot attached) and no "Version" (effectively, > the > > XML doesn't have a "version=" element)... > > > > Second, I have an AutoStartPlugin that shows exactly the same problem > > (PVCustomizer). The reason, I think, is that this plugin depends on VTK > > filters (SplineFilter) that is described in the previous XML... > > > > Can someone tell me how to make the XML plugin 'autoloadeable' ? I wonder > if > > it will solve the second problem... > > > > Thanks a lot! > > > > Jerome > > > > ___ > > 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://www.paraview.org/mailman/listinfo/paraview > > > > > > > > -- > > Yumin Yuan > R&D Engineer > Kitware Inc. > www.kitware.com > Phone : (518) 881-4936 > email : yumin.y...@kitware.com > > Set the input to the Image Mathematics filter. Set the input to the Image Mathematics filter. ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Hi Jerome, You can try to compile your xml into a plugin, which will also solve your the Version problem Check "Enabling a filter in VTK" section on the wiki: http://paraview.org/Wiki/Plugin_HowTo Yumin On Mon, Oct 26, 2009 at 11:39 AM, Jérôme wrote: > Hi Yumin, > > Thanks a lot for your interest !! However... > >> >> I assume once you load your xml plugin from the plugin_loader, and >> check the "Auto Load" checkbox, the next time you start paraview, your >> xml plugin is loaded automatically, no? > > > That's my problem: it is not loaded even in this case... Attached is a > minimal xml that exposes vtkImageMathematics to paraview filter list. I > cannot auto-load it. > >> >> Now regarding the warning message, I believe it is due to the new >> addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see >> below), and the version shown in the plugin_loader_GUI refers to >> plugin "Version" you set when calling ADD_PARAVIEW_PLUGIN in >> CMakeLists.txt > > Yes, my CMakeLists contains the version specification for the cxx plugins. > But thank you for the update about REQUIRED_PLUGINS, I was hoping that it > will solve my problem. So I set the PVCustomizer (cxx plugin, version "1.0" > in the CMakeLists) requiring the XML "ParaviewVTK". But I cannot load > "ParaviewVTK", so making the former depending on the latter is quite > awkward... Finally, you made me progressing and I have a more precise > question : > - How to set the version of a plugin that is only an XML description of > VTK filters? -ie I don't have a CMakeLists for this...- > > Thanks again Yumin! > > Jerome > >> >> On Fri, Oct 23, 2009 at 4:34 AM, Jérôme wrote: >> > Hi, >> > >> > ParaView-CVS brought a good surprise for me a few days ago. The plugin >> > loader has been rewrote and is now offering an auto-load option that is >> > very >> > useful. >> > However, I have an XML description of a lot of VTK native filters that >> > cannot be opened automatically. I have to "Load new" each time. Then, no >> > problem, the filters are exposed in the menu. But the plugin loader >> > gives a >> > warning message (see screenshot attached) and no "Version" (effectively, >> > the >> > XML doesn't have a "version=" element)... >> > >> > Second, I have an AutoStartPlugin that shows exactly the same problem >> > (PVCustomizer). The reason, I think, is that this plugin depends on VTK >> > filters (SplineFilter) that is described in the previous XML... >> > >> > Can someone tell me how to make the XML plugin 'autoloadeable' ? I >> > wonder if >> > it will solve the second problem... >> > >> > Thanks a lot! >> > >> > Jerome >> > >> > ___ >> > 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://www.paraview.org/mailman/listinfo/paraview >> > >> > >> >> >> >> -- >> >> Yumin Yuan >> R&D Engineer >> Kitware Inc. >> www.kitware.com >> Phone : (518) 881-4936 >> email : yumin.y...@kitware.com >> > > -- Yumin Yuan R&D Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Hi Yumin, 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 "ParaView from source". The wiki says: "Alternatively, we can simply load the XML from the *Plugins Manager* (just select the file type to be *.xml in the file open dialog)". I want this because of deployment issues see thread "About on-line available binaries for next release" ) - What have I to add in the XML to give him the same behaviour than its corresponding compiled library? Furthermore, I thought that my Autostart plugin (called "PVCustomizer") 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 "Loaded, but .\PVCustomizer.dll, is not a server manager plugin!" and no version is displayed although my CMakeLists contains the following lines: ## # AUTOSTART PLUGIN -- QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) # Macro for auto-start plugins. We specify the class name # and the methods to call on startup and shutdown on an instance of that class. # It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro. ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME PVCustomizer # the class name for our class STARTUP onStartup # specify the method to call on startup SHUTDOWN onShutdown # specify the method to call on shutdown ) # Create a plugin for this starter ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0" REQUIRED_ON_CLIENT GUI_INTERFACES ${IFACES} SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} REQUIRED_PLUGINS ParaviewVTK) TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) ## I checked "Autoload", having no effect when I restart ParaView... 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. Thanks a lot for your time, Yumin, and sorry for disturbing... Best regards, Jerome 2009/10/26 Yumin Yuan > Hi Jerome, > > You can try to compile your xml into a plugin, which will also solve > your the Version problem > > Check "Enabling a filter in VTK" section on the wiki: > http://paraview.org/Wiki/Plugin_HowTo > > Yumin > > On Mon, Oct 26, 2009 at 11:39 AM, Jérôme wrote: > > Hi Yumin, > > > > Thanks a lot for your interest !! However... > > > >> > >> I assume once you load your xml plugin from the plugin_loader, and > >> check the "Auto Load" checkbox, the next time you start paraview, your > >> xml plugin is loaded automatically, no? > > > > > > That's my problem: it is not loaded even in this case... Attached is a > > minimal xml that exposes vtkImageMathematics to paraview filter list. I > > cannot auto-load it. > > > >> > >> Now regarding the warning message, I believe it is due to the new > >> addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see > >> below), and the version shown in the plugin_loader_GUI refers to > >> plugin "Version" you set when calling ADD_PARAVIEW_PLUGIN in > >> CMakeLists.txt > > > > Yes, my CMakeLists contains the version specification for the cxx > plugins. > > But thank you for the update about REQUIRED_PLUGINS, I was hoping that it > > will solve my problem. So I set the PVCustomizer (cxx plugin, version > "1.0" > > in the CMakeLists) requiring the XML "ParaviewVTK". But I cannot load > > "ParaviewVTK", so making the former depending on the latter is quite > > awkward... Finally, you made me progressing and I have a more precise > > question : > >- How to set the version of a plugin that is only an XML description > of > > VTK filters? -ie I don't have a CMakeLists for this...- > > > > Thanks again Yumin! > > > > Jerome > > > >> > >> On Fri, Oct 23, 2009 at 4:34 AM, Jérôme wrote: > >> > Hi, > >> > > >> > ParaView-CVS brought a good surprise for me a few days ago. The plugin > >> > loader has been rewrote and is now offering an auto-load option that > is > >> > very > >> > useful. > >> > However, I have an XML description of a lot of VTK native filters that > >> > cannot be opened automatically. I have to "Load new" each time. Then, > no > >> > problem, the filters are exposed in the menu. But the plugin loader > >> > gives a > >> > warning message (see screenshot attached) and no "Version" > (effectively, > >> > the > >> > XML doesn't have a "version=" element)... > >> > > >> > Second, I have an AutoStartPlugin that shows exactly the same problem > >> > (PVCustomizer). The reason, I think, is that this plugin depends on > VTK > >> > filters (SplineFilter) that is described in the previous XML... > >> > > >> > Can someone tell me how
Re: [Paraview] Auto-load plugin failed
Hi Jerome, On Tue, Oct 27, 2009 at 3:45 AM, Jérôme wrote: > Hi Yumin, > > 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 > "ParaView from source". The wiki says: "Alternatively, we can simply load > the XML from the Plugins Manager (just select the file type to be *.xml in > the file open dialog)". I want this because of deployment issues see thread > "About on-line available binaries for next release" ) > > - What have I to add in the XML to give him the same behaviour than its > corresponding compiled library? > I think this is probably a bug if you check "Auto Load" for the xml, but it still doesn't auto-load next time. I suggest to log it in the bug tracker. > Furthermore, I thought that my Autostart plugin (called "PVCustomizer") 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 "Loaded, but .\PVCustomizer.dll, is not a server manager > plugin!" and no version is displayed although my CMakeLists contains the > following lines: > > ## > # AUTOSTART PLUGIN -- > QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) > > # Macro for auto-start plugins. We specify the class name > # and the methods to call on startup and shutdown on an instance of that > class. > # It fills IFACES and IFACE_SRCS with proper values as needed by > ADD_PARAVIEW_PLUGIN macro. > ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS > CLASS_NAME PVCustomizer # the class name for our class > STARTUP onStartup # specify the method to call on startup > SHUTDOWN onShutdown # specify the method to call on shutdown > ) > > # Create a plugin for this starter > ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0" > REQUIRED_ON_CLIENT > GUI_INTERFACES ${IFACES} > SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} > REQUIRED_PLUGINS ParaviewVTK) > > TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) > ## > > I checked "Autoload", having no effect when I restart ParaView... > > 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. > I assume you "Rebuilt" the plugin after the new changes, and it still displayed the warning? Then, it is a bug. > Thanks a lot for your time, Yumin, and sorry for disturbing... No problem. Yumin Yumin Yuan R&D Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Thanks Yumin, - For the XML auto-load failure, I will post it in the bug tracker. Do I have access to mantis with an universal authentification? Or do I have to request for a login/pass? - For the autostart plugin that shows the warning, I will try with a minimal build environment and post it as bug (if it is confirmed). Best regards, Jerome 2009/10/27 Yumin Yuan > Hi Jerome, > > On Tue, Oct 27, 2009 at 3:45 AM, Jérôme wrote: > > Hi Yumin, > > > > 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 > > "ParaView from source". The wiki says: "Alternatively, we can simply load > > the XML from the Plugins Manager (just select the file type to be *.xml > in > > the file open dialog)". I want this because of deployment issues see > thread > > "About on-line available binaries for next release" ) > > > > - What have I to add in the XML to give him the same behaviour than its > > corresponding compiled library? > > > > I think this is probably a bug if you check "Auto Load" for the xml, > but it still doesn't auto-load next time. > I suggest to log it in the bug tracker. > > > Furthermore, I thought that my Autostart plugin (called "PVCustomizer") > 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 "Loaded, but .\PVCustomizer.dll, is not a server manager > > plugin!" and no version is displayed although my CMakeLists contains the > > following lines: > > > > ## > > # AUTOSTART PLUGIN -- > > QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) > > > > # Macro for auto-start plugins. We specify the class name > > # and the methods to call on startup and shutdown on an instance of that > > class. > > # It fills IFACES and IFACE_SRCS with proper values as needed by > > ADD_PARAVIEW_PLUGIN macro. > > ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS > >CLASS_NAME PVCustomizer # the class name for our class > >STARTUP onStartup # specify the method to call on startup > >SHUTDOWN onShutdown # specify the method to call on shutdown > > ) > > > > # Create a plugin for this starter > > ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0" > >REQUIRED_ON_CLIENT > >GUI_INTERFACES ${IFACES} > >SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} > >REQUIRED_PLUGINS ParaviewVTK) > > > > TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) > > ## > > > > I checked "Autoload", having no effect when I restart ParaView... > > > > 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. > > > > I assume you "Rebuilt" the plugin after the new changes, and it still > displayed the warning? Then, it is a bug. > > > Thanks a lot for your time, Yumin, and sorry for disturbing... > > No problem. > > Yumin > > Yumin Yuan > R&D Engineer > Kitware Inc. > www.kitware.com > Phone : (518) 881-4936 > email : yumin.y...@kitware.com > > ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Hi Yumin, I submitted a bug reporting this issue. I hope I did it well. http://public.kitware.com/Bug/view.php?id=9803 Best regards, Jerome 2009/10/27 Yumin Yuan > Hi Jerome, > > On Tue, Oct 27, 2009 at 3:45 AM, Jérôme wrote: > > Hi Yumin, > > > > 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 > > "ParaView from source". The wiki says: "Alternatively, we can simply load > > the XML from the Plugins Manager (just select the file type to be *.xml > in > > the file open dialog)". I want this because of deployment issues see > thread > > "About on-line available binaries for next release" ) > > > > - What have I to add in the XML to give him the same behaviour than its > > corresponding compiled library? > > > > I think this is probably a bug if you check "Auto Load" for the xml, > but it still doesn't auto-load next time. > I suggest to log it in the bug tracker. > > > Furthermore, I thought that my Autostart plugin (called "PVCustomizer") > 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 "Loaded, but .\PVCustomizer.dll, is not a server manager > > plugin!" and no version is displayed although my CMakeLists contains the > > following lines: > > > > ## > > # AUTOSTART PLUGIN -- > > QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) > > > > # Macro for auto-start plugins. We specify the class name > > # and the methods to call on startup and shutdown on an instance of that > > class. > > # It fills IFACES and IFACE_SRCS with proper values as needed by > > ADD_PARAVIEW_PLUGIN macro. > > ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS > >CLASS_NAME PVCustomizer # the class name for our class > >STARTUP onStartup # specify the method to call on startup > >SHUTDOWN onShutdown # specify the method to call on shutdown > > ) > > > > # Create a plugin for this starter > > ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0" > >REQUIRED_ON_CLIENT > >GUI_INTERFACES ${IFACES} > >SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} > >REQUIRED_PLUGINS ParaviewVTK) > > > > TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) > > ## > > > > I checked "Autoload", having no effect when I restart ParaView... > > > > 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. > > > > I assume you "Rebuilt" the plugin after the new changes, and it still > displayed the warning? Then, it is a bug. > > > Thanks a lot for your time, Yumin, and sorry for disturbing... > > No problem. > > Yumin > > Yumin Yuan > R&D Engineer > Kitware Inc. > www.kitware.com > Phone : (518) 881-4936 > email : yumin.y...@kitware.com > > ___ 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://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Auto-load plugin failed
Great, thanks. Yumin On Fri, Oct 30, 2009 at 11:45 AM, Jérôme wrote: > Hi Yumin, > I submitted a bug reporting this issue. I hope I did it well. > > http://public.kitware.com/Bug/view.php?id=9803 > > Best regards, > Jerome > > 2009/10/27 Yumin Yuan >> >> Hi Jerome, >> >> On Tue, Oct 27, 2009 at 3:45 AM, Jérôme wrote: >> > Hi Yumin, >> > >> > 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 >> > "ParaView from source". The wiki says: "Alternatively, we can simply >> > load >> > the XML from the Plugins Manager (just select the file type to be *.xml >> > in >> > the file open dialog)". I want this because of deployment issues see >> > thread >> > "About on-line available binaries for next release" ) >> > >> > - What have I to add in the XML to give him the same behaviour than its >> > corresponding compiled library? >> > >> >> I think this is probably a bug if you check "Auto Load" for the xml, >> but it still doesn't auto-load next time. >> I suggest to log it in the bug tracker. >> >> > Furthermore, I thought that my Autostart plugin (called "PVCustomizer") >> > 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 "Loaded, but .\PVCustomizer.dll, is not a server manager >> > plugin!" and no version is displayed although my CMakeLists contains the >> > following lines: >> > >> > ## >> > # AUTOSTART PLUGIN -- >> > QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) >> > >> > # Macro for auto-start plugins. We specify the class name >> > # and the methods to call on startup and shutdown on an instance of that >> > class. >> > # It fills IFACES and IFACE_SRCS with proper values as needed by >> > ADD_PARAVIEW_PLUGIN macro. >> > ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS >> > CLASS_NAME PVCustomizer # the class name for our class >> > STARTUP onStartup # specify the method to call on startup >> > SHUTDOWN onShutdown # specify the method to call on shutdown >> > ) >> > >> > # Create a plugin for this starter >> > ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0" >> > REQUIRED_ON_CLIENT >> > GUI_INTERFACES ${IFACES} >> > SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} >> > REQUIRED_PLUGINS ParaviewVTK) >> > >> > TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) >> > ## >> > >> > I checked "Autoload", having no effect when I restart ParaView... >> > >> > 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. >> > >> >> I assume you "Rebuilt" the plugin after the new changes, and it still >> displayed the warning? Then, it is a bug. >> >> > Thanks a lot for your time, Yumin, and sorry for disturbing... >> >> No problem. >> >> Yumin >> >> Yumin Yuan >> R&D Engineer >> Kitware Inc. >> www.kitware.com >> Phone : (518) 881-4936 >> email : yumin.y...@kitware.com >> > > -- Yumin Yuan R&D Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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://www.paraview.org/mailman/listinfo/paraview