[Paraview] compilation error

Berk Geveci berk.geveci at kitware.com
Sun Nov 2 06:26:33 EST 2008


I believe the wrapper code that generates the ClientServer bindings
requires that your class name start with vtk. Try changing it to
vtkMyFancyReader.

-berk

On Sat, Nov 1, 2008 at 5:34 PM, Rakesh Hammond
<rakesh.hammond at googlemail.com> wrote:
> Dear all,
>
> I am trying to write my first plugin reader and trying to follow the
> examples on the wiki.
> I am stuck with annoying syntax error, which I can't seem to understand
> where its coming from - can some one tell me where I am going wrong please?
>
> Here is my top bit of the header file, where the error is being generated
>
> class VTK_EXPORT myFancyReader : public vtMultiBlockDataSetAlgorithm {
>     public:
>         static myFancyReader* New();
> };
> #endif
>
> apparently there is a syntax error at the line where it begins with class -
> when its trying to generate myFancyReaderClientServer.cxx
>
> My CMakeLists.txt is
>     ADD_PARAVIEW_PLUGIN(MyReader "1.0"
>                SERVER_MANAGER_XML readers.xml
>                GUI_RESOURCES pqReader.qrc
>                SERVER_MANAGER_SOURCES myFancyReader.cxx
>                )
>
> Thanks very much,
> Rakesh
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list