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 <<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>> 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't need to rebuild VTK to make this work. I don'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>
vtkRendering<br>
vtkGraphics<br>
vtkHybrid<br>
vtkCommon<br>
vtkFiltering<br>
vtkIO<br>
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 <<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a> <mailto:<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a>>> wrote:<br>
<br>
Hi Adrian,<br>
<br>
Those other filters (vtkGlyphSource2D, vtkAppendPolyData,<br>
vtkGlyph3D, vtkTransformPolyDataFilter) are in vtkGraphics, which<br>
vtkHybrid depends on. Try linking against the vtkGraphics library<br>
in addition to the vtkHybrid one.<br>
<br>
- Amy<br>
<br>
Adrian Albert wrote:<br>
<br>
Dear All<br>
<br>
I am trying to use the simple example from the VTK<br>
documentation on vtkXYPlotActor, but I get the following error<br>
when linking:<br>
*<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
In function<br>
`vtkXYPlotActor::vtkXYPlotActor()':vtkXYPlotActor.cxx:(.text+0xebc):<br>
undefined reference to `vtkGlyphSource2D::New()'<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
In function<br>
`vtkXYPlotActor::vtkXYPlotActor()':vtkXYPlotActor.cxx:(.text+0x1884):<br>
undefined reference to `vtkGlyphSource2D::New()'<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
In function `vtkXYPlotActor::CreatePlotData(int*, int*,<br>
double*, double*, double*, int,<br>
int)':vtkXYPlotActor.cxx:(.text+0x973f): undefined reference<br>
to `vtkGlyph2D::New()'<br>
:vtkXYPlotActor.cxx:(.text+0x97ae): undefined reference to<br>
`vtkAppendPolyData::New()'<br>
:vtkXYPlotActor.cxx:(.text+0x97e6): undefined reference to<br>
`vtkAppendPolyData::AddInput(vtkPolyData*)'<br>
:vtkXYPlotActor.cxx:(.text+0x9927): undefined reference to<br>
`vtkAppendPolyData::AddInput(vtkPolyData*)'<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):<br>
In function<br>
`vtkGlyph3D::SetSource(vtkPolyData*)':vtkXYPlotActor.cxx:(.gnu.linkonce.t._ZN10vtkGlyph3D9SetSourceEP11vtkPolyData[vtkGlyph3D::SetSource(vtkPolyData*)]+0x1c):<br>
undefined reference to `vtkGlyph3D::SetSource(int, vtkPolyData*)'<br>
/home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkLegendBoxActor.o):<br>
In function<br>
`vtkLegendBoxActor::SetNumberOfEntries(int)':vtkLegendBoxActor.cxx:(.text+0x18d9):<br>
undefined reference to `vtkTransformPolyDataFilter::New()'<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<br>
the includes are ok in my project. What am I doing wrong? Am I<br>
not including all the needed libraries?<br>
<br>
Thanks for your help!<br>
Adrian<br>
-- ---------------------------------------------------<br>
Adrian Albert<br>
School of Engineering and Science<br>
Jacobs University Bremen<br>
Germany<br>
Tel.: 00494212003258<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at:<br>
<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>
<br>
<br>
-- Amy Squillacote Phone: (256) 726-4839<br>
Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 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 Phone: (256) 726-4839<br>
Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 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