I have found. I had forgotten in the CMakeLists.txt the ligne 
GUI_RESOURCE_FILES 
TestReaderGUI.xml in the ADD_PARAVIEW_PLUGIN.
Now it 's ok.




________________________________
De : R M <mlok...@yahoo.fr>
À : paraview@paraview.org
Envoyé le : Mar 28 septembre 2010, 8h 39min 02s
Objet : [Paraview] Re :  Problem with plugin Creation


Hi,

In fact the hand made creation had a mistake.
But the zip  file I have attached has been created from the plugin wizard. I 
haven't  add any method. This is what plugin wizard  has created.
I have seen  that after and I have modified it.  But because it is an automatic 
 
generation for plugin I tought plugin wizard is ok.

But now I  have a dll I have an other problem. I can see the plugin in the  
plugin  manager from paraview (3.9.0) and it is indicated that it is loaded.
But, when I do file->open, my test file extension doesn't appear in the list. 
What is the problem ?

Thank you.



________________________________
De : Utkarsh Ayachit <utkarsh.ayac...@kitware.com>
À : R M <mlok...@yahoo.fr>
Cc : paraview@paraview.org
Envoyé le : Lun 27 septembre 2010, 18h 55min 39s
Objet : Re: [Paraview] Problem with plugin Creation

You've declared a int CanReadFile(const char*) in your header but  no
implementation has been provided in the cxx file. There's a
Canreadfile() implemented, but that's another method since C++ is case
sensitive.

Utkarsh

On Mon, Sep 27, 2010 at 10:48 AM, R M <mlok...@yahoo.fr> wrote:
> Hi,
>
> I try to create a reader plugin but everything I try does not work.
> First I have follow the wiki:
> http://www.paraview.org/Wiki/Plugin_HowTo#Writing_Plugins
> The cmale generation is ok. But When I try to compile the projet in visual
> studio 2005, I obtain the error LNK2019:    error lnk2019 unresolved
> external symbol "public: int __thiscall vtkTestReader::CanReadFile(char
> const *)" (?canreadf...@vtktestreader@@qaeh...@z) eferenced in function "int
> __cdecl  vtkTestReaderCommand(class vtkClientServerInterpreter *,class
> vtkObjectBase *,char const *,class vtkClientServerStream const &,class
> vtkClientServerStream &)"
>(?vtkTestReaderCommand@@YAHPAVvtkClientServerInterpreter@@PAVvtkObjectBase@@PBDABVvtkClientServerStream@@AAV3@@Z)
>)
> vtkTestReaderClientServer.obj
>
>  I have modified some stuffs but always the same problem.
> So, I have installed plugin wizard. http://pluginwizard.mirarco.org/
>
> I generate a reader with the wizard and when I generate the project using
> cmake everything is OK.
> But, When I am in visual studio I have the same error !!
>
> Someone has an idea for this kind of problem ?
>
> In attachment the source generated from the wizard.
>
> Thank you.
>
>
>  _______________________________________________
> 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
>
>


      
_______________________________________________
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

Reply via email to