[Plugin] UI_FILES must be in the main directory so autouic can find them
In the current implementation, UI_FILES must be in the directory where the paraview_add_plugin takes place.
Hence the following does not work :
set(ui_files
Ressource/myFile.ui)
paraview_add_plugin(Plugin
...
UI_FILES ${ui_files})
while this works perfectly
set(ui_files
myFile.ui)
paraview_add_plugin(Plugin
...
UI_FILES ${ui_files})
Here is a slightly modified version of the SierraPlotToolsPlugin that shows this behavior. SierraPlotToolsStandAlone.tgz
-- Build files have been written to: /home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/build
[ 5%] Automatic MOC and UIC for target SierraPlotTools
AutoUic error
-------------
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqPlotVariablesDialog.cxx"
The file includes the uic file "ui_pqVariablePlot.h",
but the user interface file "pqVariablePlot.ui"
could not be found in the following locations
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqVariablePlot.ui"
AutoUic error
-------------
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqPlotter.cxx"
The file includes the uic file "ui_pqSierraToolsRichTextDocs.h",
but the user interface file "pqSierraToolsRichTextDocs.ui"
could not be found in the following locations
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraToolsRichTextDocs.ui"
AutoUic error
-------------
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraPlotToolsDataLoadManager.cxx"
The file includes the uic file "ui_pqSierraPlotToolsDataLoadManager.h",
but the user interface file "pqSierraPlotToolsDataLoadManager.ui"
could not be found in the following locations
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraPlotToolsDataLoadManager.ui"
AutoUic error
-------------
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraPlotToolsManager.cxx"
The file includes the uic file "ui_pqSierraPlotToolsActionHolder.h",
but the user interface file "pqSierraPlotToolsActionHolder.ui"
could not be found in the following locations
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraPlotToolsActionHolder.ui"
AutoUic error
-------------
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqSierraPlotToolsManager.cxx"
The file includes the uic file "ui_pqVariablePlot.h",
but the user interface file "pqVariablePlot.ui"
could not be found in the following locations
"/home/glow/work/paraview/paraviewFirst/paraview/Plugins/SierraPlotToolsStandAlone/Plugin/pqVariablePlot.ui"
make[2]: *** [Plugin/CMakeFiles/SierraPlotTools_autogen.dir/build.make:58: Plugin/CMakeFiles/SierraPlotTools_autogen] Error 1
make[1]: *** [CMakeFiles/Makefile2:122: Plugin/CMakeFiles/SierraPlotTools_autogen.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Edited by Mathieu Westphal (Kitware)