[vtkusers] What is the problem?

binbin0406 binbin0406 at 163.com
Sun Mar 22 22:58:40 EDT 2009


HI everyone:
When I compile the solution for building the plugin,there is a errer:
Canot open file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml
Problem generating header file from XML file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml
Project : error PRJ0019: 工具从"Generating vtkSMXML_MyReaderPlugin.h"
MyReaderPlugin_gui.xml :
<ParaViewReaders>
  <Reader name="vtkMyReader"
          extensions="dat"
          file_description="vtkMyReader Based File">
  </Reader>
</ParaViewReaders>
MyReaderPlugin_pvsm.xml:
ProxyGroup name="sources">
  <SourceProxy name="vtkMyReader" class="vtkMyReader">
    <StringVectorProperty
       name="FileName"
       command="SetFileName"
       number_of_elements="1">
       <FileListDomain name="files"/>
    </StringVectorProperty>
  </SourceProxy>
</ProxyGroup>
Cmakelist.txt:
project(MyReaderPlugin)
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
# Configure output directories.
SET (LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/Bin" CACHE INTERNAL "For libraries.")
SET (EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/Bin" CACHE INTERNAL "For executables.")

# -- Set the Module Name
SET(MODULE_NAME MyReaderPlugin)
# -- Find ParaView -----
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
INCLUDE_DIRECTORIES(    "${CMAKE_CURRENT_BINARY_DIR}" 
                        "${MyReaderPlugin_SOURCE_DIR}/src/"
)
#-- List our source files -- 
set(MyReaderPlugin_filter_source)
set(MyReaderPlugin_reader_source)
set(MyReaderPlugin_writer_source)
#SET (MyReaderPlugin_filter_source ${MyReaderPlugin_SOURCE_DIR}/src/.cpp)
SET (MyReaderPlugin_reader_source ${MyReaderPlugin_SOURCE_DIR}/src/vtkMyReader.cpp)
#SET (MyReaderPlugin_writer_source ${MyReaderPlugin_SOURCE_DIR}/src/.cpp)

# -- Add the Plugin to ParaView -----
IF (PARAVIEW_BUILD_QT_GUI)
  #-- Make sure Qt4 is found first
  FIND_PACKAGE( Qt4 REQUIRED )
  INCLUDE( ${QT_USE_FILE} )
  INCLUDE_DIRECTORIES(${PARAVIEW_GUI_INCLUDE_DIRS})
  ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"
    SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}
    SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml
    GUI_RESOURCE_FILES ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml
  )
ELSE (PARAVIEW_BUILD_QT_GUI)
  ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"
    SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}
    SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml
  )
ENDIF (PARAVIEW_BUILD_QT_GUI)
  Thanks everyone.
 
Jackie...
 
 
 
 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090323/374301ed/attachment.htm>


More information about the vtkusers mailing list