You got it, Utkarsh! Thanks a lot!<br><br>Jerome<br><br><div class="gmail_quote">2009/12/3 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Paul and Jerome,<br>
<br>
All those files helped. The issue was exposed where there were<br>
multiple call to ADD_PARAVIEW_PLUGIN in a CMakeLists.txt file. The<br>
problem was since ADD_PARAVIEW_PLUGIN was a macro, the state of some<br>
variables was cleared cleanly and hence leaked from one call to<br>
another. Fixed that by converting the ADD_PARAVIEW_PLUGIN to a<br>
function (instead of a macro) so variable scopes work as expected.<br>
<br>
I've committed a fix. Let me know if that doesn't help.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Thu, Dec 3, 2009 at 11:32 AM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
> Hi,<br>
> Thanks for all! Unfortunately, I am currently re-compiling ParaView from<br>
> scratch... I will give you a feed-back as soon as my tiny comp' has<br>
> finished.<br>
><br>
> What I can say is that your fix about 'static' link is ok. I did not have to<br>
> wait the compilation to end, maybe because this is CMake-script related?<br>
><br>
> The build error is now reported on a DICOM reader and I am having the<br>
> following message :<br>
><br>
> /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:43:93:<br>
> erreur:<br>
> /home/dje/Softwares/VesselExtraction/Plugins/ParaView/vtkSMXML_DICOMImageReader.h<br>
> : Aucun fichier ou dossier de ce type<br>
> /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:<br>
> In member function ‘virtual void<br>
> CoronaryExtractionToolbar_Plugin::GetXMLs(std::vector<std::basic_string<char,<br>
> std::char_traits<char>, std::allocator<char> >,<br>
> std::allocator<std::basic_string<char, std::char_traits<char>,<br>
> std::allocator<char> > > >&)’:<br>
> /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:71:<br>
> erreur: ‘DICOMImageReaderDICOMReaderGetInterfaces’ was not declared in this<br>
> scope<br>
> make[2]: ***<br>
> [Plugins/ParaView/CMakeFiles/CoronaryExtractionToolbar.dir/CoronaryExtractionToolbar_Plugin.cxx.o]<br>
> Erreur 1<br>
> make[2]: *** Attente des tâches non terminées....<br>
><br>
> (Sorry for the frenchy message!!)<br>
> The vtkSMXML_DICOMImageReader.h cannot be found. But he exists ! Attached<br>
> are vtkSMXML_DICOM.....h and the DICOM_plugin cxx and h.<br>
><br>
> Thanks again,<br>
><br>
> Jerome<br>
><br>
><br>
><br>
> 2009/12/3 Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>><br>
>> Jerome,<br>
>><br>
>> I tried to mimic your plugin by a small example but could not<br>
>> reproduce your issue. If you don't mind helping me track this down,<br>
>> can you try the following:<br>
>><br>
>> * First, try clean building -- delete the build directory for the<br>
>> plugin (not paraview) and try again.<br>
>> * Does the vtkSMXML_*.h the compiler is complaining about exist?<br>
>> * What does ICSImageReader_Plugin.cxx look like?<br>
>><br>
>> Thanks,<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Thu, Dec 3, 2009 at 5:20 AM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
>> > Utkarsh,<br>
>> ><br>
>> > I have similar problem: the generated vtkSMXML_ header files cannot be<br>
>> > found. Attached is my CMakeLists defining the plugins. Some variables<br>
>> > are<br>
>> > declared in other places. If you need them, tell me.<br>
>> ><br>
>> > Jerome<br>
>> ><br>
>> ><br>
>> > 2009/12/2 Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>> >><br>
>> >> Paul,<br>
>> >><br>
>> >> I've been changing the way plugins are configured. Can you try<br>
>> >> clean-building your plugin? If that doesn't work, can you post your<br>
>> >> CMakeLists.txt file?<br>
>> >><br>
>> >> Thanks<br>
>> >> Utkarsh<br>
>> >><br>
>> >> On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > I'm getting build errors on my plugins:<br>
>> >> ><br>
>> >> > .....<br>
>> >> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86:<br>
>> >> > error:<br>
>> >> > /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file<br>
>> >> > or directory<br>
>> >> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member<br>
>> >> > function ‘virtual void<br>
>> >> > MyReaderGUIPlugin_Plugin::GetXMLs(std::vector<std::basic_string<char,<br>
>> >> > std::char_traits<char>, std::allocator<char> >,<br>
>> >> > std::allocator<std::basic_string<char, std::char_traits<char>,<br>
>> >> > std::allocator<char> > > >&)’:<br>
>> >> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error:<br>
>> >> > ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this<br>
>> >> > scope<br>
>> >> > make[2]: ***<br>
>> >> ><br>
>> >> > [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o]<br>
>> >> > Error 1<br>
>> >> ><br>
>> >> > Is it just me?!<br>
>> >> ><br>
>> >> > Thanks,<br>
>> >> > Paul<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<br>
>> >> > <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:<br>
>> >> > <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>
>> >> ><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<br>
>> >> <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:<br>
>> >> <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>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>