[Paraview] problem with latest CVS

Jérôme jerome.velut at gmail.com
Thu Dec 3 05:20:40 EST 2009


Utkarsh,

I have similar problem: the generated vtkSMXML_ header files cannot be
found. Attached is my CMakeLists defining the plugins. Some variables are
declared in other places. If you need them, tell me.

Jerome


2009/12/2 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>

> Paul,
>
> I've been changing the way plugins are configured. Can you try
> clean-building your plugin? If that doesn't work, can you post your
> CMakeLists.txt file?
>
> Thanks
> Utkarsh
>
> On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards <paul.m.edwards at gmail.com>
> wrote:
> > I'm getting build errors on my plugins:
> >
> > .....
> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86: error:
> > /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file
> > or directory
> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member
> > function ‘virtual void
> > MyReaderGUIPlugin_Plugin::GetXMLs(std::vector<std::basic_string<char,
> > std::char_traits<char>, std::allocator<char> >,
> > std::allocator<std::basic_string<char, std::char_traits<char>,
> > std::allocator<char> > > >&)’:
> > /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error:
> > ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this
> > scope
> > make[2]: ***
> [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o]
> > Error 1
> >
> > Is it just me?!
> >
> > Thanks,
> > Paul
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091203/dab2447e/attachment-0001.htm>
-------------- next part --------------
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})

# FILTERS PLUGIN --------------------------------------------------



SET( PLUGINS_SRCS ${VTK_ALGO_SRCS_PATH}/vtkImageCylinderSource.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkMomentKernelSource.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkHessianKernelSource.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkExtractVOIFromBoundingBox.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkImageGaussianNoiseSource.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkPolylineSource.cxx
                 ${VTK_ALGO_SRCS_PATH}/vtkExtendedImageConvolution.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkImageGeometricalMoments.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkLocalImageConvolution.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkLocalGeometricalMomentProperty.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkLocalHessianProperty.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkExtractCenterline.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkMultipleHypothesisCenterlineExtraction.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkPVPolyDataToImageStencil.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkFrenetSerretFrame.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkStraightenedCurvedPlanarReformation.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkStretchedCurvedPlanarReformation.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkSpatialTracking.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkGeometricalMomentsSpatialTracking.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkMultiresolutionGeometricalMomentsSpatialTracking.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkCenterOfMassAttraction.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkCenterOfMassAttraction2.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkLocalMultiresolutionGeometricalMoments.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkLocalMultiscaleVesselnessMeasure.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkSelectMomentScale.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkExtractLine.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkPathsDistance.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkFastMarching.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkThresholdedFastMarching.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkVesselnessFastMarching.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkOrientedVesselnessFastMarching.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkPolylineLength.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkPolylineIntegrator.cxx    
                  ${VTK_ALGO_SRCS_PATH}/vtkImageMultiscaleVesselnessMeasure.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkImageHessianProperty.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkVesselnessRandomSeed.cxx
                  ${VTK_ALGO_SRCS_PATH}/vtkOrderedTubeFilter.cxx
                  
)

  # Use the ADD_PARAVIEW_PLUGIN macro to build a plugin
 ADD_PARAVIEW_PLUGIN(
   PVVesselExtraction          #<--Name for the plugin
  "1.0"                        #<--Version string
   SERVER_MANAGER_XML PVVesselExtraction.xml  #<-- server manager xml
   SERVER_MANAGER_SOURCES ${PLUGINS_SRCS}
   GUI_RESOURCE_FILES PVVesselExtractionGUI.xml
 )

TARGET_LINK_LIBRARIES( PVVesselExtraction VesselExtractionVTK VesselExtractionGeneric )
#------------------------------------------------------------------


# READERS PLUGIN --------------------------------------------------

  # Expose the DICOM Reader to ParaView
 ADD_PARAVIEW_PLUGIN(
   DICOMImageReader          #<--Name for the plugin
  "1.0"                        #<--Version string
   SERVER_MANAGER_XML DICOMReader.xml  #<-- server manager xml
   GUI_RESOURCE_FILES DICOMReaderGUI.xml
 )

  # ICS/IDS Image File Reader
 ADD_PARAVIEW_PLUGIN(
   ICSImageReader          #<--Name for the plugin
  "1.0"                        #<--Version string
   SERVER_MANAGER_SOURCES ${VTK_ALGO_SRCS_PATH}/vtkICSImageReader.cxx
   SERVER_MANAGER_XML ICSReader.xml  #<-- server manager xml
   GUI_RESOURCE_FILES ICSReaderGUI.xml
 )
TARGET_LINK_LIBRARIES( ICSImageReader VesselExtractionVTK )
#------------------------------------------------------------------

# TOOLBARS PLUGIN --------------------------------------------------

# We need to wrap for Qt stuff such as signals/slots etc. to work correctly.
QT4_WRAP_CPP(TOOLBAR_MOC_SRCS CoronaryExtractionToolbarActions.h)

# This is a macro for adding QActionGroup subclasses automatically as toolbars.
ADD_PARAVIEW_ACTION_GROUP(TOOLBAR_IFACES TOOLBAR_IFACE_SRCS 
                          CLASS_NAME CoronaryExtractionToolbarActions
                          GROUP_NAME "ToolBar/Coronary extraction")

# Now create a plugin for the toolbar. Here we pass TOOLBAR_IFACES and 
# TOOLBAR_IFACE_SRCS which are filled up by the above macro with relevant
# entries.
ADD_PARAVIEW_PLUGIN(CoronaryExtractionToolbar "1.0"
                    GUI_INTERFACES ${TOOLBAR_IFACES}
                    SOURCES ${TOOLBAR_MOC_SRCS} ${TOOLBAR_IFACE_SRCS} CoronaryExtractionToolbarActions.cxx
                    GUI_RESOURCES CoronaryExtractionToolbar.qrc)

#------------------------------------------------------------------

# AUTOSTART PLUGIN --------------------------------------------------
 QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h)
 
# Macro for auto-start plugins. We specify the class name
# and the methods to call on startup and shutdown on an instance of that class.
# It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro.
 ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS 
   CLASS_NAME PVCustomizer # the class name for our class
   STARTUP onStartup   # specify the method to call on startup
   SHUTDOWN onShutdown # specify the method to call on shutdown
 )
 
# Create a plugin for this starter 
 ADD_PARAVIEW_PLUGIN(PVCustomizer "1.0"
   REQUIRED_ON_CLIENT 
   GUI_INTERFACES ${IFACES} 
   SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS}
   REQUIRED_PLUGINS ParaviewVTK)
 TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK )

# VIEWS PLUGIN --------------------------------------------------


# ENABLING VTK FILTERS
ADD_PARAVIEW_PLUGIN(ParaviewVTK "1.0"
  SERVER_MANAGER_XML ParaviewVTK.xml)


More information about the ParaView mailing list