<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>&lt;ParaViewReaders&gt;<BR>&nbsp; &lt;Reader name="vtkMyReader"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; extensions="dat"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file_description="vtkMyReader Based File"&gt;<BR>&nbsp; &lt;/Reader&gt;<BR>&lt;/ParaViewReaders&gt;</EM></DIV>
<DIV><STRONG>MyReaderPlugin_pvsm.xml:</STRONG></DIV>
<DIV><EM>ProxyGroup name="sources"&gt;<BR>&nbsp; &lt;SourceProxy name="vtkMyReader" class="vtkMyReader"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;StringVectorProperty<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="FileName"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command="SetFileName"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; number_of_elements="1"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FileListDomain name="files"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/StringVectorProperty&gt;<BR>&nbsp; &lt;/SourceProxy&gt;<BR>&lt;/ProxyGroup&gt;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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(&nbsp;&nbsp;&nbsp; "${CMAKE_CURRENT_BINARY_DIR}" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "${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>&nbsp; #-- Make sure Qt4 is found first<BR>&nbsp; FIND_PACKAGE( Qt4 REQUIRED )<BR>&nbsp; INCLUDE( ${QT_USE_FILE} )<BR>&nbsp; INCLUDE_DIRECTORIES(${PARAVIEW_GUI_INCLUDE_DIRS})<BR>&nbsp; ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"<BR>&nbsp;&nbsp;&nbsp; SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}<BR>&nbsp;&nbsp;&nbsp; SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml<BR>&nbsp;&nbsp;&nbsp; GUI_RESOURCE_FILES ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml<BR>&nbsp; )<BR>ELSE (PARAVIEW_BUILD_QT_GUI)<BR>&nbsp; ADD_PARAVIEW_PLUGIN(MyReaderPlugin "1.0"<BR>&nbsp;&nbsp;&nbsp; SERVER_MANAGER_SOURCES ${MyReaderPlugin_filter_source} ${MyReaderPlugin_reader_source} ${MyReaderPlugin_writer_source}<BR>&nbsp;&nbsp;&nbsp; SERVER_MANAGER_XML ${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml<BR>&nbsp; )<BR>ENDIF (PARAVIEW_BUILD_QT_GUI)</EM></DIV>
<DIV><EM>&nbsp; </EM><STRONG>Thanks everyone.</STRONG></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><STRONG>Jackie...</STRONG></DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><EM></EM>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&nbsp;</DIV><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net">网易邮箱,中国第一大电子邮件服务商</a>
</span>