[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    [Paraview] Re :  Problem with plugin Creation
From:       R M <mlokida () yahoo ! fr>
Date:       2010-09-28 6:39:02
Message-ID: 470893.78320.qm () web29715 ! mail ! ird ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.ayachit@kitware.com>
À : R M <mlokida@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 <mlokida@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 *)" (?CanReadFile@vtkTestReader@@QAEHPBD@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
> 
> 



      


[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>Hi,<br><br>In fact the hand made creation had a \
mistake.<br>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&nbsp; has created.<br>I \
have seen  that after and I have modified it.&nbsp; But because it is an automatic 
generation for plugin I tought plugin wizard is ok.<br><br>But now I 
have a dll I have an other problem. I can see the plugin in the&nbsp; plugin 
manager from paraview (3.9.0) and it is indicated that it is loaded.<br>But, when I \
do file-&gt;open, my test file extension doesn't appear in the list. <br>What is the \
problem ?<br><br>Thank you.</div><div style="font-family: times new roman,new \
york,times,serif; font-size: 12pt;"><br><div style="font-family: \
arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr \
size="1"><b><span style="font-weight: bold;">De :</span></b> Utkarsh Ayachit \
&lt;utkarsh.ayachit@kitware.com&gt;<br><b><span style="font-weight: bold;">À \
:</span></b> R M &lt;mlokida@yahoo.fr&gt;<br><b><span style="font-weight: bold;">Cc \
:</span></b> paraview@paraview.org<br><b><span style="font-weight: bold;">Envoyé le \
:</span></b> Lun 27 septembre 2010, 18h 55min 39s<br><b><span style="font-weight: \
bold;">Objet&nbsp;:</span></b> Re: [Paraview] Problem with plugin \
Creation<br></font><br>You've declared a int CanReadFile(const char*) in your header \
but  no<br>implementation has been provided in the cxx file. There's \
a<br>Canreadfile() implemented, but that's another method since C++ is \
case<br>sensitive.<br><br>Utkarsh<br><br>On Mon, Sep 27, 2010 at 10:48 AM, R M &lt;<a \
ymailto="mailto:mlokida@yahoo.fr" \
href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>&gt; wrote:<br>&gt; \
Hi,<br>&gt;<br>&gt; I try to create a reader plugin but everything I try does not \
work.<br>&gt; First I have follow the wiki:<br>&gt; <a \
href="http://www.paraview.org/Wiki/Plugin_HowTo#Writing_Plugins" \
target="_blank">http://www.paraview.org/Wiki/Plugin_HowTo#Writing_Plugins</a><br>&gt; \
The cmale generation is ok. But When I try to compile the projet in visual<br>&gt; \
studio 2005, I obtain the error LNK2019: &nbsp;&nbsp; error lnk2019 \
unresolved<br>&gt; external symbol "public: int __thiscall \
vtkTestReader::CanReadFile(char<br>&gt; const *)" \
(?CanReadFile@vtkTestReader@@QAEHPBD@Z) eferenced in function "int<br>&gt; __cdecl  \
vtkTestReaderCommand(class vtkClientServerInterpreter *,class<br>&gt; vtkObjectBase \
*,char const *,class vtkClientServerStream const &amp;,class<br>&gt; \
vtkClientServerStream &amp;)"<br>&gt; \
(?vtkTestReaderCommand@@YAHPAVvtkClientServerInterpreter@@PAVvtkObjectBase@@PBDABVvtkClientServerStream@@AAV3@@Z)<br>&gt; \
vtkTestReaderClientServer.obj<br>&gt;<br>&gt; &nbsp;I have modified some stuffs but \
always the same problem.<br>&gt; So, I have installed plugin wizard. <a \
href="http://pluginwizard.mirarco.org/" \
target="_blank">http://pluginwizard.mirarco.org/</a><br>&gt;<br>&gt; I generate a \
reader with the wizard and when I generate the project using<br>&gt; cmake everything \
is OK.<br>&gt; But, When I am in visual studio I have the same error \
!!<br>&gt;<br>&gt; Someone has an idea for this kind of problem ?<br>&gt;<br>&gt; In \
attachment the source generated from the wizard.<br>&gt;<br>&gt; Thank \
you.<br>&gt;<br>&gt;<br>&gt;  \
_______________________________________________<br><span>&gt; Powered by <a \
target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;<br>&gt; \
Visit other Kitware open-source projects at<br>&gt; <a \
href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; \
Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; <a \
href="http://paraview.org/Wiki/ParaView" \
target="_blank">http://paraview.org/Wiki/ParaView</a><br>&gt;<br>&gt; Follow this \
link to subscribe/unsubscribe:<br>&gt; <a \
href="http://www.paraview.org/mailman/listinfo/paraview" \
target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>&gt;<br>&gt;<br></div></div>
 </div><br>




      </body></html>



_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic