[vtkusers] errors in vtkXYPlotActor?

Amy Squillacote ahs at cfdrc.com
Wed Apr 30 17:31:39 EDT 2008


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.

- Amy

Adrian Albert wrote:
> Hi Amy,
>
> Thanks for the quick reply!
>
> I actually did include vtkGraphics, along with other libraries in my 
> CMakeLists.txt:
>
> TARGET_LINK_LIBRARIES (myProj
>               vtkRendering
>               vtkGraphics
>               vtkHybrid
>               vtkCommon
>               vtkFiltering
>               vtkIO
>               vtkVolumeRendering
> )
>
> Do I need to change the order of inclusion? Or do I need to rebuild 
> VTK with some special options?
>
> Adrian
>
>
> On Wed, Apr 30, 2008 at 10:46 PM, Amy Squillacote <ahs at cfdrc.com 
> <mailto:ahs at cfdrc.com>> wrote:
>
>     Hi Adrian,
>
>     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.
>
>     - Amy
>
>     Adrian Albert wrote:
>
>         Dear All
>
>         I am trying to use the simple example from the VTK
>         documentation on vtkXYPlotActor, but I get the following error
>         when linking:
>         *
>         /home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):
>         In function
>         `vtkXYPlotActor::vtkXYPlotActor()':vtkXYPlotActor.cxx:(.text+0xebc):
>         undefined reference to `vtkGlyphSource2D::New()'
>         /home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):
>         In function
>         `vtkXYPlotActor::vtkXYPlotActor()':vtkXYPlotActor.cxx:(.text+0x1884):
>         undefined reference to `vtkGlyphSource2D::New()'
>         /home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):
>         In function `vtkXYPlotActor::CreatePlotData(int*, int*,
>         double*, double*, double*, int,
>         int)':vtkXYPlotActor.cxx:(.text+0x973f): undefined reference
>         to `vtkGlyph2D::New()'
>         :vtkXYPlotActor.cxx:(.text+0x97ae): undefined reference to
>         `vtkAppendPolyData::New()'
>         :vtkXYPlotActor.cxx:(.text+0x97e6): undefined reference to
>         `vtkAppendPolyData::AddInput(vtkPolyData*)'
>         :vtkXYPlotActor.cxx:(.text+0x9927): undefined reference to
>         `vtkAppendPolyData::AddInput(vtkPolyData*)'
>         /home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkXYPlotActor.o):
>         In function
>         `vtkGlyph3D::SetSource(vtkPolyData*)':vtkXYPlotActor.cxx:(.gnu.linkonce.t._ZN10vtkGlyph3D9SetSourceEP11vtkPolyData[vtkGlyph3D::SetSource(vtkPolyData*)]+0x1c):
>         undefined reference to `vtkGlyph3D::SetSource(int, vtkPolyData*)'
>         /home/aalbert/VTK/VTK-build/bin/libvtkHybrid.a(vtkLegendBoxActor.o):
>         In function
>         `vtkLegendBoxActor::SetNumberOfEntries(int)':vtkLegendBoxActor.cxx:(.text+0x18d9):
>         undefined reference to `vtkTransformPolyDataFilter::New()'
>         collect2: ld returned 1 exit status
>         make[2]: *** [ieee_proj] Error 1
>         *
>
>         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?
>
>         Thanks for your help!
>         Adrian
>         -- 
>         ---------------------------------------------------
>         Adrian Albert
>         School of Engineering and Science
>         Jacobs University Bremen
>         Germany
>         Tel.: 00494212003258
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         This is the private VTK discussion list.
>         Please keep messages on-topic. Check the FAQ at:
>         http://www.vtk.org/Wiki/VTK_FAQ
>         Follow this link to subscribe/unsubscribe:
>         http://www.vtk.org/mailman/listinfo/vtkusers
>          
>
>
>     -- 
>     Amy Squillacote                    Phone: (256) 726-4839
>     Computer Scientist                 Fax: (256) 726-4806
>     CFD Research Corporation           Web: http://www.cfdrc.com
>     215 Wynn Drive, Suite 501
>     Huntsville, AL  35805
>
>
>
>
>
> -- 
> ---------------------------------------------------
> Adrian Albert
> School of Engineering and Science
> Jacobs University Bremen
> Germany
> Tel.: 00494212003258 

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list