[Paraview-developers] Moving around ui files in ParaView
Cory Quammen
cory.quammen at kitware.com
Mon Aug 1 11:42:57 EDT 2016
Mathieu,
On Mon, Aug 1, 2016 at 11:27 AM, Mathieu Westphal
<mathieu.westphal at kitware.com> wrote:
> Hello
>
> I've moved an .ui file and associated class from Components to
> ApplicationComponents and modified it a bit in a branch.
>
> Compiling my branch from an empty directory works perfectly, but compiling
> it from up to date build directory would fail like this :
>
> error: 'class pqSpreadSheetViewDecorator::pqInternal' has no member named
> 'ExportVisibleColumns'
>
> As if the ui file had not been updated. We have already tracked the problem
> to the fact the build/Qt/Components still contains the old ui_*.h file.
Ah yes, I've been bitten by that before. It was maddening.
> Removing it manually fix the problem. but it shows that there may be a
> problem with the include order,
> Is there any reason for the include directory of the current source and
> build directory for not being included before all other include directories
> ?
I don't think there is a reason not to. I'm guess it just hasn't been
a big enough issue to make the necessary changes to the CMakeLists.txt
files to ensure that the current directory is the first directory to
search. It should be possible to insert the current directory in the
front of the list in the 'vtk_module_library' function in
VTK/CMake/vtkModuleMacros.cmake where 'include_directories' is
called.include
> Is there a work around for this issue ?
> Because in it's current state, if my branch get merged, anyone compiling
> master from an existing build directory will encounter the ame bug.
Good point. I don't think the build bots start from a clean directory.
We probably haven't encountered this scenario since we started using
the buildbots, so I'm not sure how it would be handled.
> Mathieu Westphal
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
More information about the Paraview-developers
mailing list