<DIV><STRONG>HI everyone:</STRONG></DIV>
<DIV><STRONG>When I compile the solution for building the plugin,there is a errer:</STRONG></DIV>
<DIV><EM>Canot open file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml<BR>Problem generating header file from XML file: D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml<BR>Project : error PRJ0019: 工具从"Generating vtkSMXML_MyReaderPlugin.h"</EM></DIV>
<DIV><STRONG>MyReaderPlugin_gui.xml</STRONG> :</DIV>
<DIV><EM><ParaViewReaders><BR> <Reader name="vtkMyReader"<BR> extensions="dat"<BR> file_description="vtkMyReader Based File"><BR> </Reader><BR></ParaViewReaders></EM></DIV>
<DIV><STRONG>MyReaderPlugin_pvsm.xml:</STRONG></DIV>
<DIV><EM>ProxyGroup name="sources"><BR> <SourceProxy name="vtkMyReader" class="vtkMyReader"><BR> <StringVectorProperty<BR> name="FileName"<BR> command="SetFileName"<BR> number_of_elements="1"><BR> <FileListDomain name="files"/><BR> </StringVectorProperty><BR> </SourceProxy><BR></ProxyGroup></EM></DIV>
<DIV><STRONG>Cmakelist.txt:</STRONG></DIV>
<DIV><EM>project(MyReaderPlugin)<BR>cmake_minimum_required(VERSION 2.4)<BR>if(COMMAND cmake_policy)<BR> cmake_policy(SET CMP0003 NEW)<BR>endif(COMMAND cmake_policy)</EM></DIV>
<DIV><EM># Configure output directories.<BR>SET (LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/Bin" CACHE INTERNAL "For libraries.")<BR>SET (EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/Bin" CACHE INTERNAL "For executables.")</EM></DIV>
<DIV><BR><EM># -- Set the Module Name<BR>SET(MODULE_NAME MyReaderPlugin)<BR># -- Find ParaView -----<BR>FIND_PACKAGE(ParaView REQUIRED)<BR>INCLUDE(${PARAVIEW_USE_FILE})<BR>INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_BINARY_DIR}" <BR> "${MyReaderPlugin_SOURCE_DIR}/src/"<BR>)<BR>#-- List our source files -- </EM></DIV>
<DIV><EM>set(MyReaderPlugin_filter_source)<BR>set(MyReaderPlugin_reader_source)<BR>set(MyReaderPlugin_writer_source)</EM></DIV>
<DIV><EM>#SET (MyReaderPlugin_filter_source ${MyReaderPlugin_SOURCE_DIR}/src/.cpp)<BR>SET (MyReaderPlugin_reader_source ${MyReaderPlugin_SOURCE_DIR}/src/vtkMyReader.cpp)<BR>#SET (MyReaderPlugin_writer_source ${MyReaderPlugin_SOURCE_DIR}/src/.cpp)</EM></DIV>
<DIV><BR><EM># -- Add the Plugin to ParaView -----<BR>IF (PARAVIEW_BUILD_QT_GUI)<BR> #-- Make sure Qt4 is found first<BR> FIND_PACKAGE( Qt4 REQUIRED )<BR> INCLUDE( ${QT_USE_FILE} )<BR> INCLUDE_DIRECTORIES(${PARAVIEW_GUI_INCLUDE_DIRS})<BR> ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"<BR> SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}<BR> SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml<BR> GUI_RESOURCE_FILES ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml<BR> )<BR>ELSE (PARAVIEW_BUILD_QT_GUI)<BR> ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"<BR> SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}<BR> SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml<BR> )<BR>ENDIF (PARAVIEW_BUILD_QT_GUI)</EM></DIV>
<DIV><EM> </EM><STRONG>Thanks everyone.</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>Jackie...</STRONG></DIV>
<DIV><EM></EM> </DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><EM></EM> </DIV>
<DIV> </DIV>
<DIV><BR><BR> </DIV><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net">网易邮箱,中国第一大电子邮件服务商</a>
</span>