[Paraview] Linking error when trying to use vtkGLSL/vtkXMLShader
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Wed Oct 26 11:43:16 EDT 2011
Classes in graphics cannot depend on classes in rendering. You can move your filter to hybrid.
Utkarsh
On Oct 26, 2011, at 12:11 AM, Sohail Shafii <sohailshafii at yahoo.com> wrote:
> Hi,
>
> I am currently trying to do some shader operations in a standard C++ filter. This filter (inherits from vtkMultiBlockDataSetAlgorithm, resides in VTK/Graphics) will be used to voxelize a polygonal object (basically the result of the contour filter) and write the results to a 3D texture.
>
> I tried to do the following:
> vtkXMLShader *xmlShader = vtkXMLShader::New();
> vtkGLSLShader *glslShader = vtkGLSLShader::New();
>
> Which results in:
> Undefined symbols for architecture x86_64:
> "vtkXMLShader::New()", referenced from:
> vtkRepulsiveForceFieldGenerator::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)in vtkRepulsiveForceFieldGenerator.cxx.o
> "vtkGLSLShader::New()", referenced from:
> vtkRepulsiveForceFieldGenerator::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)in vtkRepulsiveForceFieldGenerator.cxx.o
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
>
> I'm going to guess that standard filters can't use code like this, and that my filter should reside inside of the VTK/Rendering folder and follow the examples in that folder.
>
> Thanks,
> Sohail
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20111026/ca401054/attachment.htm>
More information about the ParaView
mailing list