[Paraview] Plugin link error

Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP] thomas.maxwell at nasa.gov
Fri Aug 21 15:12:43 EDT 2009


I've rebuilt a NetCDF3 reader plugin to read NetCDF4/HDF5 files.   I'm having problems getting it to link to the NetCDF libraries.   When I run the plugin I get a server-side symbol lookup error on one of the NetCDF4 symbols.   I've pasted (below) the CMakeLists.txt file I use to build the server plugin.   Can someone please give me a hint as to what I'm doing wrong?   Is there any documentation on the ParaView cmake extensions?

################################################################################

cmake_minimum_required(VERSION 2.6)

SET(HDF_DIR
  /usr/local/other/hdf/5-1.8.0_serial
)
SET(NETCDF_DIR
  /usr/local/other/netcdf/4.0.1_gnu
)

INCLUDE_DIRECTORIES(
  ${VTK_INCLUDE_DIR}
  ${PARAVIEW_INCLUDE_DIRS}
  ${HDF_DIR}/include
  ${NETCDF_DIR}/include
  ${HDF_DIR}/lib
  ${NETCDF_DIR}/lib
)

FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})

ADD_PARAVIEW_PLUGIN(HDFServerPlugin "1.0"
  SERVER_MANAGER_XML HDFServerManagerXML.xml
  SERVER_MANAGER_SOURCES vtkNetCDFReader2.cxx
  SOURCES FileSeriesFinder.cxx
)

TARGET_LINK_LIBRARIES(
   HDFServerPlugin
   netcdf_c++
   netcdf
   hdf5_hl
   hdf5
)




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090821/d3b4c0fd/attachment.htm>


More information about the ParaView mailing list