I only changed &quot;SERVER_MANAGER_SOURCES vtk<span style="background-color: rgb(255, 255, 102);">CVS</span>ImageReader.cpp&quot; to &quot;SERVER_MANAGER_SOURCES vtk<span style="background-color: rgb(255, 255, 102);">CSV</span> ImageReader.cpp&quot; and the corresponding file name. I didn&#39;t touch the class name (which was already vtk<span style="background-color: rgb(255, 255, 102);">CSV</span>ImageReader) neither in the xml, nor in the .h.<br>
and I can&#39;t figure out why there is a <span style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 255);"><b>symbol lookup error </b>since I also tried to build the <b>ExampleDockPanel </b>in the paraview&gt;example&gt;plugin&gt;Dockwidget and it works. <br>
<br>here I append my source code maybe the problem is that I didn&#39;t implement the <b>New()</b> function?:<br></span></span><b>vtk<span style="background-color: rgb(255, 255, 102);">CSV</span> ImageReader.cpp</b>:<br><br>
<span style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 255);">vtkStandardNewMacro(vtkCSVImageReader);
<br>int vtkCSVImageReader::RequestInformation (
<br>   vtkInformation*,
<br>   vtkInformationVector**,
<br>   vtkInformationVector* outputVector)
<br>{
<br>   vtkInformation* outInfo = outputVector-&gt;GetInformationObject(0);
<br> <br>   return 1;
<br>} 
<br> <br>int vtkCSVImageReader::RequestData(
<br>   vtkInformation*,
<br>   vtkInformationVector**,
<br>   vtkInformationVector* outputVector)
<br>{
<br>   vtkInformation* outInfo = outputVector-&gt;GetInformationObject(0);
<br>   vtkStructuredGrid* output = vtkStructuredGrid::SafeDownCast(outInfo-&gt;Get(vtkDataObject::DATA_OBJECT() ) );
<br>   vtkPoints* pts= output-&gt;GetPoints();
<br> <br></span></span><br><span style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 255);">vtkDataArray* dummy=vtkDataArray::CreateDataArray(VTK_FLOAT);
<br>dummy-&gt;SetNumberOfTuples(8);
<br>dummy-&gt;SetNumberOfComponents(3);
<br>const float P1[3]={0.,0.,0.};
<br>const float P2[3]={1.,0.,0.};
<br>const float P3[3]={0.,1.,0.};
<br>const float P4[3]={1.,1.,0.};
<br>const float P5[3]={0.,0.,1.};
<br>const float P6[3]={1.,0.,1.};
<br>const float P7[3]={0.,1.,1.};
<br>const float P8[3]={1.,1.,1.};
<br>dummy-&gt;SetTuple(0, P1);
<br>dummy-&gt;SetTuple(0, P2);
<br>dummy-&gt;SetTuple(0, P3);
<br>dummy-&gt;SetTuple(0, P4);
<br>dummy-&gt;SetTuple(0, P5);
<br>dummy-&gt;SetTuple(0, P6);
<br>dummy-&gt;SetTuple(0, P7);
<br>dummy-&gt;SetTuple(0, P8);
<br>pts-&gt;SetData(dummy);
<br> <br>   return 1;
<br>} <br><br><br></span></span><span style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 255);"> </span></span><b>vtk<span style="background-color: rgb(255, 255, 102);">CSV</span> ImageReader.h</b>:<br>
class vtkCSVImageReader : public vtkStructuredGridAlgorithm
<br>{
<br>public:
<br>    static vtkCSVImageReader* New();
<br>    vtkTypeMacro(vtkCSVImageReader,vtkStructuredGridAlgorithm);
<br>    void PrintSelf(ostream&amp; os, vtkIndent indent);
<br> <br>    virtual void SetFileName(const char* fname);
<br>    virtual const char* GetFileName();
<br>    virtual void SetFieldDelimiterCharacters(
<br>       const char* delim);
<br>    virtual const char* GetFieldDelimiterCharacters();
<br> <br>protected:
<br>   vtkCSVImageReader();
<br>   ~vtkCSVImageReader();
<br> <br>   int RequestInformation(
<br>      vtkInformation*,
<br>      vtkInformationVector**,
<br>      vtkInformationVector*);
<br> <br>   int RequestData(
<br>      vtkInformation*,
<br>      vtkInformationVector**,
<br>      vtkInformationVector*);
<br> <br>   vtkDelimitedTextReader * Reader;
<br> <br>private:
<br>   vtkCSVImageReader(const vtkCSVImageReader&amp;);
<br>   void operator=(const vtkCSVImageReader&amp;);
<br>}; <br><br><br>PS: I do include the vtkObjectFactory <br><br>Great thanks<br><br><br><div class="gmail_quote">2011/4/27 Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@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;">Did you forget to change the class name in the XML?<br>
<br>
Utkarsh<br>
<br>
2011/4/27 papa ndéné NDIAYE &lt;<a href="mailto:pnwireframe@gmail.com">pnwireframe@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi everyone,<br>
&gt;<br>
&gt; I am trying to make a reader and I get the error message above when trying<br>
&gt; to open a file.<br>
&gt; I am running Centos5 (64 bit)  and compiled paraview with Qt 4.6.3, VTK<br>
&gt; 5.2.1 and CMAKE 2.8.4.<br>
&gt; the same goes for my reader plugin.<br>
&gt; Here is my CmakeList.txt:<br>
&gt; cmake_minimum_required(VERSION 2.6)<br>
&gt;      if(COMMAND cmake_policy)<br>
&gt;       cmake_policy(SET CMP0003 NEW)<br>
&gt;     endif(COMMAND cmake_policy)<br>
&gt; FIND_PACKAGE(ParaView REQUIRED)<br>
&gt; INCLUDE(${PARAVIEW_USE_FILE})<br>
&gt; INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../)<br>
&gt;<br>
&gt; ADD_PARAVIEW_PLUGIN(CSVImage &quot;1.0&quot;<br>
&gt;   SERVER_MANAGER_XML CSVImage.xml<br>
&gt; SERVER_MANAGER_SOURCES vtkCVSImageReader.cpp<br>
&gt; GUI_RESOURCE_FILES CSVImageGUI.xml<br>
&gt; )<br>
&gt;<br>
&gt; and I get error:<br>
&gt;<br>
&gt; vtkProcessModule (0xb621b30): Cannot create object of type<br>
&gt; &quot;vtkCSVImageReader&quot;.<br>
&gt; while processing<br>
&gt; Message 0 = New<br>
&gt;   Argument 0 = string_value {vtkCSVImageReader}<br>
&gt;   Argument 1 = id_value {149}<br>
&gt;<br>
&gt;<br>
&gt; when I change the CVS  to CSV (renaming the .cpp file too) I get another<br>
&gt; error:<br>
&gt;<br>
&gt; paraview: symbol lookup error:<br>
&gt; ~/dev/CVSreader/libCSVImage.so: undefined symbol: _ZN17vtkCSVImageReaderC1Ev<br>
&gt;<br>
&gt; which I do not understand since I built both paraview and the plugin on the<br>
&gt; same computer<br>
&gt;<br>
&gt; hope someone could help me.<br>
&gt;<br>
&gt; Regards<br>
&gt; papa<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
</blockquote></div><br>