[Paraview] The errer about building plugin

David E DeMarle dave.demarle at kitware.com
Thu Mar 26 16:07:22 EDT 2009


Canot open file:
D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml

This looks like the CMakeLists.txt is wrong such that the
ADD_PARAVIEW_PLUGIN Macro thinks that this is all one long filename:

error is here somewhere-->
   SERVER_MANAGER_XML
${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml
    GUI_RESOURCE_FILES
${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml
<--

My guess is that / is confusing cmake on windows. Try using \ instead
of using quotes.

   SERVER_MANAGER_XML
"${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_pvsm.xml"
    GUI_RESOURCE_FILES
${MyReaderPlugin_SOURCE_DIR}/XMLFiles/MyReaderPlugin_gui.xml

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



2009/3/24 binbin0406 <binbin0406 at 163.com>:
> Canot open file:
> D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_pvsm.xml;GUI_RESOURCE_FILES;D:/MyReaderPlugin/MyReaderPlugin/XMLFiles/MyReaderPlugin_gui.xml


More information about the ParaView mailing list