[Paraview] Writing a reader plugin for ParaView

Rakesh Hammond rakesh.hammond at googlemail.com
Sun Jul 8 18:45:08 EDT 2012


Hi,

I have been playing with writing a reader for ParaView.  I followed the
Kitware instructions from here

http://www.kitware.com/products/html/WritingAParaViewReaderPlug-in.html

I managed to get the source to build and ended up with a .so file as
expected.  When I try and load in ParaView via

Tools-> ManagePlugins ->Load new, I get the following error

mydevelopment/pvplugin/cvsReader/build/libCSVImage.so: undefined symbol:
_ZTV17vtkCSVImageReader

If I do *nm libCSVImage.so | grep " _ZTV17vtkCSVImageReader", *the output is

U _ZTV17vtkCSVImageReader

Can some one please give me any pointers? I am on Ubuntu-12.04, gcc-4.4.7
and ParaView-3.14.1 on a 32bit machine.

I am also attaching the code I used to generate the .so files.


Regards,
Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120708/7c2641d2/attachment.htm>
-------------- next part --------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

IF(NOT ParaView_BINARY_DIR)
  FIND_PACKAGE(ParaView REQUIRED)
  INCLUDE(${PARAVIEW_USE_FILE})
ENDIF(NOT ParaView_BINARY_DIR)

IF(PARAVIEW_BUILD_QT_GUI)

  ADD_PARAVIEW_PLUGIN(CSVImage "1.0"
    SERVER_MANAGER_XML CSVImage.xml
    SERVER_MANAGER_SOURCES vtkCSVImageReader.cxx
    GUI_RESOURCE_FILES CSVImageGUI.xml
    )
ENDIF(PARAVIEW_BUILD_QT_GUI)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CSVImage.xml
Type: text/xml
Size: 992 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120708/7c2641d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CSVImageGUI.xml
Type: text/xml
Size: 153 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120708/7c2641d2/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkCSVImageReader.cxx
Type: application/octet-stream
Size: 1668 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120708/7c2641d2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkCSVImageReader.h
Type: text/x-chdr
Size: 1239 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120708/7c2641d2/attachment.h>


More information about the ParaView mailing list