[Paraview] Build error with moc and Plugin
Michael Jackson
mike.jackson at bluequartz.net
Fri Jun 12 16:58:04 EDT 2009
I am getting the following error when trying to compile my plugin as
part of ParaView (ie, PARAVIEW_EXTRA_EXTERNAL_MODULES)
[ 99%] Generating moc_pqH5RoboMetReaderPanelImplementation.cxx
cd /Users/Shared/Kitware-CVS/ParaView3/Build/PVRoboMet && /Users/
Shared/Toolkits/Qt-4.5.1-UBFramework/bin/moc -DVTK_PYTHON_BUILD -
DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -o /Users/Shared/Kitware-CVS/
ParaView3/Build/PVRoboMet/
moc_pqH5RoboMetReaderPanelImplementation.cxx /Users/Shared/Kitware-CVS/
ParaView3/Build/PVRoboMet/pqH5RoboMetReaderPanelImplementation.h
/Users/Shared/Kitware-CVS/ParaView3/Build/PVRoboMet/
pqH5RoboMetReaderPanelImplementation.h:45: Error: Undefined interface
make[2]: *** [PVRoboMet/moc_pqH5RoboMetReaderPanelImplementation.cxx]
Error 1
make[1]: *** [PVRoboMet/CMakeFiles/H5RoboMetReaderPanel.dir/all] Error 2
make: *** [all] Error 2
Here is the CMake code for the client plugin:
INCLUDE(${QT_USE_FILE})
# Reduce the number of dirs that get included on moc command line
# since it causes issues on Windows 2000.
SET(MOC_INCLUDE_DIRS ${MOC_INCLUDE_DIRS} ${QT_QTDESIGNER_INCLUDE_DIR})
GET_DIRECTORY_PROPERTY(include_dirs_tmp INCLUDE_DIRECTORIES)
SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "$
{MOC_INCLUDE_DIRS}")
QT4_WRAP_CPP(MOC_SRCS ${PVRoboMet_SOURCE_DIR}/Client/
pqH5RoboMetReaderPanel.h)
SET(UI_RESOURCES ${PVRoboMet_SOURCE_DIR}/Client/Resources/
pqH5RoboMetReaderPanel.qrc )
QT4_ADD_RESOURCES(RCS_SOURCES ${UI_RESOURCES} )
SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "$
{include_dirs_tmp}")
SOURCE_GROUP("Resources" FILES
${UI_RESOURCES}
)
SOURCE_GROUP("Generated" FILES
${RCS_SOURCES}
)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}
${OverViewCore_BINARY_DIR}
${OverViewCore_SOURCE_DIR}
${PARAVIEW_INCLUDE_DIRS}
${ParaView_BINARY_DIR}/VTK/GUISupport/Qt
${ParaView_SOURCE_DIR}/VTK/GUISupport/Qt
${QtWidgets_BINARY_DIR}
${QtWidgets_SOURCE_DIR}
${VTK_INCLUDE_DIR}
${pqComponents_BINARY_DIR}
${pqComponents_SOURCE_DIR}
${pqCore_BINARY_DIR}
${pqCore_SOURCE_DIR}
)
ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS CLASS_NAME
pqH5RoboMetReaderPanel
XML_NAME H5RoboMetReader XML_GROUP sources)
# create a plugin for this panel
ADD_PARAVIEW_PLUGIN(H5RoboMetReaderPanel "1.0"
GUI_INTERFACES ${IFACES}
SOURCES ${PVRoboMet_SOURCE_DIR}/Client/
pqH5RoboMetReaderPanel.cpp ${MOC_SRCS} ${RCS_SOURCES} ${IFACE_SRCS})
TARGET_LINK_LIBRARIES( H5RoboMetReaderPanel
pqComponents
pqCore )
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the ParaView
mailing list