[Paraview] Displaying a List of Strings in a popup [ParaView 3]
clinton at elemtech.com
clinton at elemtech.com
Fri Jun 29 12:03:33 EDT 2007
Try adding the helper with the macro
PARAVIEW_INCLUDE_SERVERMANAGER_SOURCES
instead of
PARAVIEW_INCLUDE_WRAPPED_SOURCES
so the helper is built as part of the server manager instead of filters.
Clint
On Friday 29 June 2007 9:30:37 am Mike Jackson wrote:
> Thanks for the hint. So I am trying what you suggested and I am not
> sure what "target" of ParaView these files should go with. I found
> vtkSMStringArrayHelper and vtkPVStringArrayHelper. I copied both into
> my source tree and added them to my sources in my
> ParaViewImport.cmake file. When I compile ParaView I get the following:
>
> /Users/mjackson/Task_7/MXA_Workspace/PVPhaseField/src/vtk/
> vtkSMStringArrayHelper.cxx:20:39: error: vtkSMInformationHelper.h: No
> such file or directory
> /Users/mjackson/Task_7/MXA_Workspace/PVPhaseField/src/vtk/
> vtkSMStringArrayHelper.cxx:20:39: error: vtkSMStringVectorProperty.h:
> No such file or directory
> .
> .
> .
>
> So I am guessing that I simply do not have these sources assigned to
> the proper target> Here is my ParaViewImport.cmake file:
>
> # specify the name of the module
> SET(MODULE_NAME PVPhaseField)
>
> # specify the sources that should be wrapped
> SET(PVPhaseField_WRAPPED_SRCS
> ${PVPhaseField_SOURCE_DIR}/src/Readers/vtkH5PhaseFieldReader.cpp
> ${PVPhaseField_SOURCE_DIR}/src/vtk/vtkPVStringArrayHelper.cxx
>
> )
>
> SET (PVPhaseField_HEADERS
> ${PVPhaseField_SOURCE_DIR}/src/Readers/vtkH5PhaseFieldReader.h
> ${PVPhaseField_SOURCE_DIR}/src/Readers/PFConstants.h
> ${PVPhaseField_SOURCE_DIR}/src/Readers/matrices.h
> ${PVPhaseField_SOURCE_DIR}/src/vtk/vtkPVStringArrayHelper.h
> ${PVPhaseField_SOURCE_DIR}/src/vtk/vtkSMStringArrayHelper.h
> )
>
> SET ( PVPhaseField_SRCS
> ${PVPhaseField_SOURCE_DIR}/src/vtk/vtkSMStringArrayHelper.cxx
> )
>
> INCLUDE_DIRECTORIES( "${PVPhaseField_SOURCE_DIR}"
> "${PVPhaseField_SOURCE_DIR}/../"
> "${PVPhaseField_SOURCE_DIR}/src/"
> "${PVPhaseField_SOURCE_DIR}/src/Readers"
> "${PVPhaseField_SOURCE_DIR}/src/Filters"
> "${PVPhaseField_SOURCE_DIR}/src/vtk"
> )
>
> INCLUDE (${PVPhaseField_SOURCE_DIR}/Resources/FindBoost.cmake)
> IF(NOT Boost_FOUND)
> MESSAGE(FATAL_ERROR "Boost was not found. ${Boost_DIR_MESSAGE}")
> ENDIF(NOT Boost_FOUND)
>
> INCLUDE( ${PVPhaseField_SOURCE_DIR}/Resources/FindMXADataModel.cmake)
> LINK_DIRECTORIES( ${MXADataModel_LIB_DIR} )
> LINK_LIBRARIES ( ${MXADataModel_LIBRARIES} )
>
> MESSAGE (STATUS "Compiling PVPhaseField into Paraview 3.x")
> #-- Invoke this Macro to add the sources to paraview and
> #-- wrap them for the client server
> PARAVIEW_INCLUDE_WRAPPED_SOURCES ("${PVPhaseField_WRAPPED_SRCS}")
>
> #-- Invoke this macro to include non-wrapped sources in the build
> PARAVIEW_INCLUDE_SOURCES("${PVPhaseField_SRCS}")
>
> # Place the package configuration file into the build tree.
> CONFIGURE_FILE(${PVPhaseField_SOURCE_DIR}/xml/${MODULE_NAME}_GUI.xml
> ${LIBRARY_OUTPUT_PATH}/${MODULE_NAME}.xml @ONLY
> IMMEDIATE)
>
> # Place the package configuration file into the build tree.
> CONFIGURE_FILE(${PVPhaseField_SOURCE_DIR}/xml/${MODULE_NAME}_PVSM.xml
> ${LIBRARY_OUTPUT_PATH}/${MODULE_NAME}.pvsm @ONLY
> IMMEDIATE)
>
>
> # -- Add the Server Manager XML
> PARAVIEW_INCLUDE_SERVERMANAGER_RESOURCES(${LIBRARY_OUTPUT_PATH}/$
> {MODULE_NAME}.pvsm)
> # -- Add the Client side xml
> PARAVIEW_INCLUDE_GUI_RESOURCES("${LIBRARY_OUTPUT_PATH}/$
> {MODULE_NAME}.xml")
>
>
> Could someone point to what I might be doing wrong?
More information about the ParaView
mailing list