[vtkusers] VTKPolyData to 3D image

David Doria daviddoria+vtk at gmail.com
Tue Apr 20 11:48:27 EDT 2010


On Tue, Apr 20, 2010 at 11:45 AM, David Welch
<dmwelch at engineering.uiowa.edu> wrote:
> Okay, I'm in the home stretch here... I've changed the code slightly to
> output a XMLImageData file and take an input surface.  CMake runs fine on
> it, but it dies in the make process with this error:
>
> CMakeFiles/SurfaceToImage.dir/SurfaceToImage.cxx.o: In function
> `vtkSmartPointer<vtkPolyDataToImageStencil>::New()':
> /usr/local/include/vtk-5.7/vtkSmartPointer.h:113: undefined reference to
> `vtkPolyDataToImageStencil::New()'
>
> The smart pointer line is fundamentally no different than any other line of
> code.  ???  Here's my code:

Are you linking to vtkHybrid (that is where
vtkPolyDataToImageStencil.cxx lives) ? What does your CMakeLists.txt
file look like?

Thanks,

David



More information about the vtkusers mailing list