<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Florian,<br>
      <br>
      The usual advice, which I have found to be good, is to use cmake
      to create the VS project files.&nbsp; It seems to know what files are
      needed.<br>
      <br>
      Gib<br>
      <br>
      On 19/09/2013 3:57 a.m., Florian Schiffers wrote:<br>
    </div>
    <blockquote cite="mid:5239CD76.1090708@physik.uni-erlangen.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hello,<br>
      <br>
      I want to read an .xyz File with normals into vtkPolyData.<br>
      <br>
      I found this tutorial in the examples: <a moz-do-not-send="true"
        class="moz-txt-link-freetext"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile</a><br>
      <br>
      So I tried to implement the DelimitedTextReader. But it doesn't
      work.<br>
      I included all header files, like it was requested:<br>
      <blockquote>
        <pre class="de1"><i><span class="co2">#include &lt;vtkSmartPointer.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkProperty.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkPolyDataMapper.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkActor.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkDelimitedTextReader.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkDoubleArray.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkTable.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkPointData.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkRenderWindow.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkRenderWindowInteractor.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkRenderer.h&gt;</span></i><i>
</i><i><span class="co2">#include &lt;vtkVertexGlyphFilter.h&gt;</span></i></pre>
      </blockquote>
      <br>
      After that I tried to initialize the &lt;vtkDelimtedTextReader&gt;
      with this line:<br>
      <blockquote><i>&nbsp;vtkSmartPointer&lt;vtkDelimitedTextReader&gt;
          reader =</i><br>
        <i>&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkDelimitedTextReader&gt;::New();</i><br>
        <br>
      </blockquote>
      Unfortunately I get an error message, during the compilation
      (Using Visual Studio 2008):<br>
      <i><br>
      </i><i>"&gt;Linking...</i><i><br>
      </i><i>1&gt;ElectrodeDetectorPlugin.obj : error LNK2019:
        unresolved external symbol "__declspec(dllimport) <br>
        public: static class vtkDelimitedTextReader * __cdecl
        vtkDelimitedTextReader::New(void)"
        (__imp_?New@vtkDelimitedTextReader@@SAPAV1@XZ) <br>
        referenced in function "public: static class
        vtkSmartPointer&lt;class vtkDelimitedTextReader&gt; __cdecl
        vtkSmartPointer&lt;class vtkDelimitedTextReader&gt;::New(void)"
        (?New@?$vtkSmartPointer@VvtkDelimitedTextReader@@@@SA?AV1@XZ)</i><i><br>
      </i><i>1&gt;C:\Users\fschiffers\Documents\Visual Studio
        2008\Projects\EEGElectrodeDetector\Win32\Release\EEGElectrodeDetector.exe


        :<br>
        fatal error LNK1120: 1 unresolved externals"</i><br>
      <br>
      So I thought I included everything I need, but I don't know what
      to do anymore. By the way, I'm using vtk-5.10<br>
      <br>
      Do I need to link a special library? I link these:<br>
      <blockquote><i>QVTK.lib</i><br>
        <i>vtksys.lib</i><br>
        <i>vtkzlib.lib</i><br>
        <i>vtkVolumeRendering.lib</i><br>
        <i>vtkalglib.lib</i><br>
        <i>vtkCommon.lib</i><br>
        <i>vtkDICOMParser.lib</i><br>
        <i>vtktiff.lib</i><br>
        <i>vtkexpat.lib</i><br>
        <i>vtkFiltering.lib</i><br>
        <i>vtkftgl.lib</i><br>
        <i>vtkGenericFiltering.lib</i><br>
        <i>vtkGeovis.lib</i><br>
        <i>vtkGraphics.lib</i><br>
        <i>vtkhdf5.lib</i><br>
        <i>vtkhdf5_hl.lib</i><br>
        <i>vtkImaging.lib</i><br>
        <i>vtkIO.lib</i><br>
        <i>vtkjpeg.lib</i><br>
        <i>vtkmetaio.lib</i><br>
        <i>vtkNetCDF.lib</i><br>
        <i>vtkNetCDF_cxx.lib</i><br>
        <i>vtkpng.lib</i><br>
        <i>vtkproj4.lib</i><br>
        <i>vtkRendering.lib</i><br>
        <i>vtksqlite.lib</i><br>
        <i>vtkverdict.lib</i><br>
      </blockquote>
      <br>
      Thank you for your help!<br>
      <br>
      Best regards,<br>
      Florian <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="80">-- 
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand

<a class="moz-txt-link-freetext" href="http://www.bioeng.auckland.ac.nz">http://www.bioeng.auckland.ac.nz</a>

<a class="moz-txt-link-abbreviated" href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>
(64-9) 373-7599 Ext. 87030
</pre>
  </body>
</html>