Problem using VTK in C++ Shadeop

Hi,

I have written a shadeop in C++ using VTK receive a point from the shader, find corresponding data for the point from data files, and return a value between 0 and 1. The shadeop and shader files compile with no errors, but when I run aqsis using the shader, I recieve the error:

ERROR: Error loading plugin: "./vtkSampler.so: undefined symbol: _ZN19vtkSmartPointerBaseD2Ev"

I cannot figure out how to get rid of this problem. The problem goes away when I do not include "vtkSmartPointer.h", but this is a necessary file.

Thanks for any help,
Kevin

**Edit**

I figured it out. I linked to the .so files (they were hidden in a different directory than the rest of the files), and it works great.

For anyone who wants to know, I added this text to the g++ command:
-lvtkCommon -lvtkGraphics -lvtkFiltering -lvtkIO -lvtkImaging -lvtkRendering

Kevin
Last edited on
Topic archived. No new replies allowed.