Hi Amy,<br><br>Thanks for the quick reply! <br><br>I actually did include vtkGraphics, along with other libraries in my CMakeLists.txt:<br><br>TARGET_LINK_LIBRARIES (myProj <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkRendering<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkGraphics<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkHybrid<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkCommon<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkFiltering<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkIO<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkVolumeRendering<br>)<br><br>Do I need to change the order of inclusion? Or do I need to rebuild VTK with some special options?<br>
<br>Adrian<br><br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 10:46 PM, Amy Squillacote &lt;<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Adrian,<br>
<br>
Those other filters (vtkGlyphSource2D, vtkAppendPolyData, vtkGlyph3D, vtkTransformPolyDataFilter) are in vtkGraphics, which vtkHybrid depends on. Try linking against the vtkGraphics library in addition to the vtkHybrid one.<br>

<br>
- Amy<br>
<br>
Adrian Albert wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Dear All<br>
<br>
I am trying to use the simple example from the VTK documentation on vtkXYPlotActor, but I get the following error when linking:<br>
*<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o): In function `vtkXYPlotActor::vtkXYPlotActor()&#39;:vtkXYPlotActor.cxx:(.text+0xebc): undefined reference to `vtkGlyphSource2D::New()&#39;<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o): In function `vtkXYPlotActor::vtkXYPlotActor()&#39;:vtkXYPlotActor.cxx:(.text+0x1884): undefined reference to `vtkGlyphSource2D::New()&#39;<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o): In function `vtkXYPlotActor::CreatePlotData(int*, int*, double*, double*, double*, int, int)&#39;:vtkXYPlotActor.cxx:(.text+0x973f): undefined reference to `vtkGlyph2D::New()&#39;<br>

:vtkXYPlotActor.cxx:(.text+0x97ae): undefined reference to `vtkAppendPolyData::New()&#39;<br>
:vtkXYPlotActor.cxx:(.text+0x97e6): undefined reference to `vtkAppendPolyData::AddInput(vtkPolyData*)&#39;<br>
:vtkXYPlotActor.cxx:(.text+0x9927): undefined reference to `vtkAppendPolyData::AddInput(vtkPolyData*)&#39;<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o): In function `vtkGlyph3D::SetSource(vtkPolyData*)&#39;:vtkXYPlotActor.cxx:(.gnu.linkonce.t._ZN10vtkGlyph3D9SetSourceEP11vtkPolyData[vtkGlyph3D::SetSource(vtkPolyData*)]+0x1c): undefined reference to `vtkGlyph3D::SetSource(int, vtkPolyData*)&#39;<br>

/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkLegendBoxActor.o): In function `vtkLegendBoxActor::SetNumberOfEntries(int)&#39;:vtkLegendBoxActor.cxx:(.text+0x18d9): undefined reference to `vtkTransformPolyDataFilter::New()&#39;<br>

collect2: ld returned 1 exit status<br>
make[2]: *** [ieee_proj] Error 1<br>
*<br>
<br>
I am including vtkHybrid in the CMakeList.txt file, and all the includes are ok in my project. What am I doing wrong? Am I not including all the needed libraries?<br>
<br>
Thanks for your help!<br>
Adrian<br>
-- <br>
---------------------------------------------------<br>
Adrian Albert<br>
School of Engineering and Science<br>
Jacobs University Bremen<br>
Germany<br>
Tel.: 00494212003258<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 &nbsp;<br>
</blockquote>
<br>
-- <br>
Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL &nbsp;35805<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------------<br>Adrian Albert<br>School of Engineering and Science<br>Jacobs University Bremen<br>Germany<br>Tel.: 00494212003258