Hi again,<br><br>It actually worked when I changed the order of inclusion of vtkGraphics and vtkHybrid in the CMakeLists.txt file!<br>It seems that if a library depends upon others, it should be placed after calling the dependencies.<br>
<br>Adrian<br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 11:31 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;">
You shouldn&#39;t need to rebuild VTK to make this work. I don&#39;t know whether changing the order of the libraries in TARGET_LINK_LIBRARIES will make a difference or not.<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 class="Ih2E3d">
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;vtkRendering<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vtkGraphics<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vtkHybrid<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vtkCommon<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vtkFiltering<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vtkIO<br>
 &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><div><div></div><div class="Wj3C7c">
On Wed, Apr 30, 2008 at 10:46 PM, Amy Squillacote &lt;<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a> &lt;mailto:<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a>&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp;Hi Adrian,<br>
<br>
 &nbsp; &nbsp;Those other filters (vtkGlyphSource2D, vtkAppendPolyData,<br>
 &nbsp; &nbsp;vtkGlyph3D, vtkTransformPolyDataFilter) are in vtkGraphics, which<br>
 &nbsp; &nbsp;vtkHybrid depends on. Try linking against the vtkGraphics library<br>
 &nbsp; &nbsp;in addition to the vtkHybrid one.<br>
<br>
 &nbsp; &nbsp;- Amy<br>
<br>
 &nbsp; &nbsp;Adrian Albert wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Dear All<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I am trying to use the simple example from the VTK<br>
 &nbsp; &nbsp; &nbsp; &nbsp;documentation on vtkXYPlotActor, but I get the following error<br>
 &nbsp; &nbsp; &nbsp; &nbsp;when linking:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;*<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In function<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkXYPlotActor::vtkXYPlotActor()&#39;:vtkXYPlotActor.cxx:(.text+0xebc):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;undefined reference to `vtkGlyphSource2D::New()&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In function<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkXYPlotActor::vtkXYPlotActor()&#39;:vtkXYPlotActor.cxx:(.text+0x1884):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;undefined reference to `vtkGlyphSource2D::New()&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In function `vtkXYPlotActor::CreatePlotData(int*, int*,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;double*, double*, double*, int,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;int)&#39;:vtkXYPlotActor.cxx:(.text+0x973f): undefined reference<br>
 &nbsp; &nbsp; &nbsp; &nbsp;to `vtkGlyph2D::New()&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;:vtkXYPlotActor.cxx:(.text+0x97ae): undefined reference to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkAppendPolyData::New()&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;:vtkXYPlotActor.cxx:(.text+0x97e6): undefined reference to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkAppendPolyData::AddInput(vtkPolyData*)&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;:vtkXYPlotActor.cxx:(.text+0x9927): undefined reference to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkAppendPolyData::AddInput(vtkPolyData*)&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In function<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkGlyph3D::SetSource(vtkPolyData*)&#39;:vtkXYPlotActor.cxx:(.gnu.linkonce.t._ZN10vtkGlyph3D9SetSourceEP11vtkPolyData[vtkGlyph3D::SetSource(vtkPolyData*)]+0x1c):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;undefined reference to `vtkGlyph3D::SetSource(int, vtkPolyData*)&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkLegendBoxActor.o):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;In function<br>
 &nbsp; &nbsp; &nbsp; &nbsp;`vtkLegendBoxActor::SetNumberOfEntries(int)&#39;:vtkLegendBoxActor.cxx:(.text+0x18d9):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;undefined reference to `vtkTransformPolyDataFilter::New()&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;collect2: ld returned 1 exit status<br>
 &nbsp; &nbsp; &nbsp; &nbsp;make[2]: *** [ieee_proj] Error 1<br>
 &nbsp; &nbsp; &nbsp; &nbsp;*<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I am including vtkHybrid in the CMakeList.txt file, and all<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the includes are ok in my project. What am I doing wrong? Am I<br>
 &nbsp; &nbsp; &nbsp; &nbsp;not including all the needed libraries?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Thanks for your help!<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Adrian<br>
 &nbsp; &nbsp; &nbsp; &nbsp;--  &nbsp; &nbsp; &nbsp; &nbsp;---------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Adrian Albert<br>
 &nbsp; &nbsp; &nbsp; &nbsp;School of Engineering and Science<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Jacobs University Bremen<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Germany<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Tel.: 00494212003258<br>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;This is the private VTK discussion list.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Please keep messages on-topic. Check the FAQ at:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Follow this link to subscribe/unsubscribe:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; <br>
<br>
 &nbsp; &nbsp;--  &nbsp; &nbsp;Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
 &nbsp; &nbsp;Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
 &nbsp; &nbsp;CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
 &nbsp; &nbsp;215 Wynn Drive, Suite 501<br>
 &nbsp; &nbsp;Huntsville, AL &nbsp;35805<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
---------------------------------------------------<br>
Adrian Albert<br>
School of Engineering and Science<br>
Jacobs University Bremen<br>
Germany<br>
Tel.: 00494212003258 <br>
</div></div></blockquote><div><div></div><div class="Wj3C7c">
<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>
</div></div></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