[Paraview-developers] Error loading my own plugin in custom application based on ParaView

PULVERAIL, Sebastien sebastien.pulverail at sogeti.com
Wed May 27 05:18:31 EDT 2015


Hello,

I have made my own custom application based on ParaView. As with ParaView, I am using a plugin manager to let the user adding their own readers.
All compile fine but when I load (or autoload) one of the plugin I create, I get the following error when launching the binary:

./bin/Extrafor: symbol lookup error: /data/samba/spulvera/EXTRAFOR/STELIA-EXTRAFOR/build/bin/../lib//libExtraforReaders.so: undefined symbol: _Z22extraforException_InitP26vtkClientServerInterpreter

Here is the CMakeLists.txt I use for my plugin:

#------------------------------------------------------------------------------
# Find and Use ParaView
#------------------------------------------------------------------------------
IF(PARAVIEW_BUILD_QT_GUI)
  IF(PARAVIEW_QT_VERSION VERSION_GREATER "4")
    SET (Qt5_FIND_COMPONENTS Widgets)
    INCLUDE (ParaViewQt5)
  ELSE()
    INCLUDE(${QT_USE_FILE})
  ENDIF()
ENDIF()

#------------------------------------------------------------------------------
# Define source and header files to be compile
#------------------------------------------------------------------------------
set (SOURCES
  Common/extraforException.h
  Common/extraforTypes.h
  Common/jsonReader.cxx
  Common/jsonReader.h
  Common/streamReader.cxx
  Common/streamReader.h
  NastranReader/coordinateSystems.cxx
  NastranReader/coordinateSystems.h
  NastranReader/nastranReader.cxx
  NastranReader/nastranReader.h
  NastranReader/pvExtraforNastranReader.cxx
  NastranReader/pvExtraforNastranReader.h
  JExtpointReader/jextpointReader.cxx
  JExtpointReader/jextpointReader.h
  JExtpointReader/pvExtraforJExtPointReader.cxx
  JExtpointReader/pvExtraforJExtPointReader.h
  JLoadsReader/jloadsReader.cxx
  JLoadsReader/jloadsReader.h
  JLoadsReader/pvExtraforJLoadsReader.cxx
  JLoadsReader/pvExtraforJLoadsReader.h
)

#------------------------------------------------------------------------------
# Add directories where to find headers to be included
#------------------------------------------------------------------------------
include_directories ( Common )
include_directories ( NastranReader )
include_directories ( JExtpointReader )
include_directories ( JLoadsReader )
include_directories ( ${Boost_INCLUDE_DIR} )
include_directories ( ${Jansson_INCLUDE_DIR} )

#------------------------------------------------------------------------------
# Add directories where to find libraries to be linked
#------------------------------------------------------------------------------
link_directories ( ${Boost_LIBRARY_DIR} )
link_directories ( ${Jansson_LIBRARY_DIR} )

# ---------------------------------------------------------------------------
# Combined plugin
# -----------------------------------------------------------------------------
if (PARAVIEW_BUILD_QT_GUI)
  add_paraview_plugin(ExtraforReaders "1.0"
    REQUIRED_ON_SERVER
    SERVER_MANAGER_SOURCES ${SOURCES}
    )
else()
  add_paraview_plugin(ExtraforReaders "1.0"
    REQUIRED_ON_SERVER
    SERVER_MANAGER_SOURCES ${SOURCES}
    )
endif()

#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
target_link_libraries( ExtraforReaders LINK_PRIVATE -ljansson -lboost_system )

Did I miss something?
Tell me if you need extra information to help me fix this problem.

Thanks in advance.

Sébastien
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150527/25b95234/attachment-0001.html>


More information about the Paraview-developers mailing list