Linking error - which vtk libs must be linked?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Linking error - which vtk libs must be linked?

KarlBlau
Hi,

from where do I know which vtk-libraries I have to add when linking my
project?

Gcc compiles my program without any error.
But there are the following linker errors:

/home/martin/myProg/Obj/hvs_pathline_actor.o(.text+0x5ca): In function
`HvsPathlineActor::apply_plane_normal()':
/home/martin/myProg/hvs_pathline_actor.cc:281: undefined reference to
`vtkPlaneWidget::SetNormal(double, double, double)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1d7d): In function
`HvsPipeline::reinit_plane_widget()':
/home/martin/myProg/hvs_pipeline.cc:335: undefined reference to
`vtkPlaneWidget::New()'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1dee):/home/martin/myProg/hvs_pipeline.cc:425:
undefined reference to `vtkPlaneWidget::SetResolution(int)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1ead): In function
`HvsPipeline::reinit_line_widget()':
/home/martin/myProg/hvs_pipeline.cc:312: undefined reference to
`vtkLineWidget::New()'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x38ec): In function
`plane_widget_callback_function(vtkObject*, unsigned long, void*, void*)':
/home/martin/myProg/hvs_pipeline.cc:87: undefined reference to
`vtkPlaneWidget::GetPolyData(vtkPolyData*)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x3a9c): In function
`line_widget_callback_function(vtkObject*, unsigned long, void*, void*)':
/home/martin/myProg/hvs_pipeline.cc:72: undefined reference to
`vtkLineWidget::GetPolyData(vtkPolyData*)'
/home/martin/myProg/Obj/hvs_pipeline.o(.text+0x1887): In function
`HvsPipeline::set_plane_widget_resolution(int)':
/home/martin/myProg/hvs_pipeline.cc:425: undefined reference to
`vtkPlaneWidget::SetResolution(int)'
/home/martin/myProg/Obj/hvs_streamline_actor.o(.text+0x943): In function
`HvsStreamlineActor::apply_plane_normal()':
/home/martin/myProg/hvs_streamline_actor.cc:210: undefined reference to
`vtkPlaneWidget::SetNormal(double, double, double)'

I guess that vtk-libs are missing. I searched the VTK web site, but I
couldn't find an answer.

Thanks, MB
_______________________________________________
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