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

PULVERAIL, Sebastien sebastien.pulverail at sogeti.com
Wed Jun 10 12:14:15 EDT 2015


Thank you for answer.
It is working fine, I am now able to load my own plugin :)

Sebastien




| -----Message d'origine-----
| De : Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
| Envoyé : jeudi 28 mai 2015 13:09
| À : PULVERAIL, Sebastien
| Cc : paraview-developers at paraview.org
| Objet : Re: [Paraview-developers] Error loading my own plugin in custom
| application based on ParaView
| 
| Looks like extraforException.h (and may be more) headers are not VTK
| classes. Try removing them from the the SOURCES list entirely.
| 
| On Wed, May 27, 2015 at 5:18 AM, PULVERAIL, Sebastien
| <sebastien.pulverail at sogeti.com> wrote:
| > 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.
| >
| > _______________________________________________
| > Powered by www.kitware.com
| >
| > Visit other Kitware open-source projects at
| > http://www.kitware.com/opensource/opensource.html
| >
| > Search the list archives at:
| > http://markmail.org/search/?q=Paraview-developers
| >
| > Follow this link to subscribe/unsubscribe:
| > http://public.kitware.com/mailman/listinfo/paraview-developers
| >
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.


More information about the Paraview-developers mailing list