[ITK] Updating ITK setup

Timothee Evain tevain at telecom-paristech.fr
Fri Sep 2 07:03:44 EDT 2016


Hi everyone,

Just to keep a log:
Full rebuild of a fresh VTK/ITK setup solved the problem.
After building the new VTK, I had to make also a full rebuild of ITK, otherwise the rebuild of just itkVTKglue would lead to same error.
I'm still wondering what was the real bug.

Thanks Dženan for the help.

Tim

----- Mail original -----
De: "Dženan Zukić" <dzenanz at gmail.com>
À: "Timothee Evain" <tevain at telecom-paristech.fr>
Cc: community at itk.org
Envoyé: Jeudi 1 Septembre 2016 21:19:50
Objet: Re: [ITK] Updating ITK setup

Hi Tim,

this looks more like a problem in your VTK build:
http://public.kitware.com/pipermail/community/2015-April/008856.html
http://www.vtk.org/pipermail/vtkusers/2013-July/080801.html

Doing a clean build of VTK sounds like the best thing to try. Then you have
to rebuild itk (should be fast, just itkVTKglue).

Regards,
Dženan

On Thu, Sep 1, 2016 at 11:00 AM, Timothee Evain <tevain at telecom-paristech.fr
> wrote:

> Hi Dženan,
>
> I've already downloaded the full 4.10 zip and built it in a fresh place
> apart from previous one to avoid this kind of issues, but still.
> The funny thing is that the parser error is coming from whatever file you
> are looking at on the file line, but I guess it's because of the editor
> parsing process, and not directly related to the file.
>
> To be complete, at compilation, this error is impacting the
> vtkRenderingCoreModule.h here :
>
> [...]
> 35 /* AutoInit implementations.  */
> 36 #if defined(vtkRenderingCore_INCLUDE)
> 37 # include vtkRenderingCore_INCLUDE
> 38 #endif
> 39 #if defined(vtkRenderingCore_AUTOINIT)
> 40 # include "vtkAutoInit.h"
> 41 VTK_AUTOINIT(vtkRenderingCore)
> [...]
>
> on line 37 :
> error C2006: '#include' : expected a filename, found 'newline'
> C:\Libraries\Build\VTK_6.1.0\Rendering\Core\vtkRenderingCoreModule.h
> error C1083: Cannot open include file: '': No such file or directory
> C:\Libraries\Build\VTK_6.1.0\Rendering\Core\vtkRenderingCoreModule.h
>
>
> Tim
>
>
> ----- Mail original -----
> De: "Dženan Zukić" <dzenanz at gmail.com>
> À: "Timothee Evain" <tevain at telecom-paristech.fr>
> Cc: community at itk.org
> Envoyé: Jeudi 1 Septembre 2016 16:36:36
> Objet: Re: [ITK] Updating ITK setup
>
> Hi Tim,
>
> if you just git pulled and then did an incremental build, that might be
> what is causing trouble. Doing a clean build could help.
>
> From which file is the error coming from? IntelliSense errors frequently
> exist in projects which do compile (editor does not use the same mechanism
> as compiler to parse the code).
>
> Regards,
> Dženan
>
> On Thu, Sep 1, 2016 at 10:01 AM, Timothee Evain <
> tevain at telecom-paristech.fr
> > wrote:
>
> > Hi again community,
> >
> > I'm trying to update my ITK from 4.5 to 4.10, built against a VTK 6.1.0
> > with the vtkGlue.
> > Cmake phase went well, but now I receive an error compiling my own code:
> >
> > IntelliSense: command-line error: invalid macro definition:
> > C:/Libraries/Build/ITK_4.10.0/CMakeFiles/vtkRenderingCore_
> > AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_
> > vtkRenderingFreeTypeOpenGL_vtkRenderingOpenGL.h""
> >
> > which give after that a bunch of include vtk-related errors, but since I
> > only updated ITK, I think this is not the core problem.
> >
> > Short screening of the mailing-list tell me that this issue have already
> > been encountered and should be solved apparently.
> >
> > Anyone aware of that ?
> >
> > Tim
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/mailman/listinfo/community
> >
>


More information about the Community mailing list