[ITK] Building ITK examples with VTK 6.2

Bill Lorensen bill.lorensen at gmail.com
Sun Apr 26 14:21:08 EDT 2015


Talk about unintended consequences...


On Sun, Apr 26, 2015 at 2:12 PM, Matt McCormick
<matt.mccormick at kitware.com> wrote:
> Another issue to add to the mix that I noticed when going through the dashboard:
>
>   bubbles.hooperlab has been failing in a different way since we merged:
>
> http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=d76af420c77ec78898c25cacbfac3e18a9e1fffa
>
>   The OS on that system was also recently upgraded, so that may also
> be an issue.
>
> Now the text in QuickViewTest does not render.  When the test runs,
> there are also errors:
>
>
> ERROR: In /home/kevin/kitware/VTK/Rendering/Core/vtkTextMapper.cxx, line 551
> vtkTextMapper (0xdf55f0): Could not locate vtkTextRenderer object.
>
> ERROR: In /home/kevin/kitware/VTK/Rendering/Core/vtkTextMapper.cxx, line 551
> vtkTextMapper (0xdf55f0): Could not locate vtkTextRenderer object.
>
> ERROR: In /home/kevin/kitware/VTK/Rendering/Core/vtkTextMapper.cxx, line 513
> vtkTextMapper (0xdf55f0): Could not locate vtkTextRenderer object.
>
> ERROR: In /home/kevin/kitware/VTK/Rendering/OpenGL/vtkOpenGLTexture.cxx,
> line 200
> vtkOpenGLTexture (0xdf7030): No scalar values found for texture input!
>
> ERROR: In /home/kevin/kitware/VTK/Rendering/Core/vtkTextMapper.cxx, line 551
> vtkTextMapper (0xe0dd40): Could not locate vtkTextRenderer object.
>
> On Sun, Apr 26, 2015 at 1:58 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>> The changes that fix the warnings will be in the next major VTK release.
>>
>> I have an ITK patch that may address the problem, but I'm concerned it
>> might cause other issues.
>>
>>
>> On Sun, Apr 26, 2015 at 1:42 PM,  <michkapopoff at gmail.com> wrote:
>>> Okay nice to know I am not the only one.
>>>
>>> I’ll rebuild against VTK master then. I was just working on new
>>> ITK examples and all those which use VTK are failing. It is not very critical,
>>> so for me it is ok. Maybe other people will have more trouble if they update.
>>>
>>> Are the changes planned for the next big VTK release only or for the next
>>> minor release ?
>>>
>>> Michka
>>>
>>>> On 26 Apr 2015, at 19:25, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>
>>>> When I build against VTK6.2 I DO see the warnings.
>>>>
>>>> How critical is this for you. I know things will be OK for the next VTK release.
>>>>
>>>>
>>>>
>>>> On Sun, Apr 26, 2015 at 8:31 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>> Can you verify that the file
>>>>> ITK/Modules/Bridge/VtkGlue/CMakeLists.txt does NOT refer to
>>>>> vtkRenderingFreeType listed.
>>>>>
>>>>>
>>>>> On Sun, Apr 26, 2015 at 8:21 AM,  <michkapopoff at gmail.com> wrote:
>>>>>> Yes. I am not using superbuild, I always have a vanilla VTK and ITK installed
>>>>>> on my system, which I then use to build the examples. I’ll double check
>>>>>> everything to make sure my setup has no problem but I already rebuilt
>>>>>> everything.
>>>>>>
>>>>>> Michka
>>>>>>
>>>>>>> On 26 Apr 2015, at 14:16, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>
>>>>>>> It is also strange that vtkRenderingFreeType is mentioned since the
>>>>>>> latest ITK master does not refer to that library anymore.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Apr 26, 2015 at 8:13 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>> I'll have to try the examples with VTK6.2. I'm sure the warnings are
>>>>>>>> gone for VTK master because vtkRenderingFreeTypeOpenGL has been
>>>>>>>> removed from VTK.
>>>>>>>>
>>>>>>>> I assume you are building the examples outside of the VTK tree?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Apr 26, 2015 at 5:37 AM,  <michkapopoff at gmail.com> wrote:
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> I just rebuilt VTK 6.2, ITK master and the ITK examples and it still doesn’t work.
>>>>>>>>> The errors are slightly different. The linker failure is now gone but I still have a
>>>>>>>>> lot of warnings:
>>>>>>>>>
>>>>>>>>> In file included from <built-in>:326:
>>>>>>>>> <command line>:4:9: warning: 'vtkRenderingCore_AUTOINIT' macro redefined [-Wmacro-redefined]
>>>>>>>>> #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL)
>>>>>>>>>       ^
>>>>>>>>> <command line>:3:9: note: previous definition is here
>>>>>>>>> #define vtkRenderingCore_AUTOINIT 2(vtkInteractionStyle,vtkRenderingOpenGL)
>>>>>>>>>       ^
>>>>>>>>> <command line>:5:9: warning: 'vtkRenderingCore_AUTOINIT' macro redefined [-Wmacro-redefined]
>>>>>>>>> #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)
>>>>>>>>>       ^
>>>>>>>>> <command line>:4:9: note: previous definition is here
>>>>>>>>> #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL)
>>>>>>>>>       ^
>>>>>>>>> 2 warnings generated.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Could somebody give it a try ? Maybe there is something to change in the ITK examples repo,
>>>>>>>>> were we just use:
>>>>>>>>>
>>>>>>>>> find_package( VTK REQUIRED )
>>>>>>>>> include( ${VTK_USE_FILE} )
>>>>>>>>>
>>>>>>>>> Michka
>>>>>>>>>
>>>>>>>>>> On 20 Apr 2015, at 21:18, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I have a patch here:
>>>>>>>>>> http://review.source.kitware.com/#/c/19651/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, Apr 20, 2015 at 3:14 PM, Matt McCormick
>>>>>>>>>> <matt.mccormick at kitware.com> wrote:
>>>>>>>>>>> Hi Michka and Bill,
>>>>>>>>>>>
>>>>>>>>>>> Thanks for the note.  I will try to reproduce on the given system.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Matt
>>>>>>>>>>>
>>>>>>>>>>> On Sun, Apr 19, 2015 at 7:50 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>>>>>> Actually, I see the warnings for even a small vtk/itk project.any vtk
>>>>>>>>>>>> / itk project.
>>>>>>>>>>>>
>>>>>>>>>>>> On Sun, Apr 19, 2015 at 7:45 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>>>>>>>>>> I have also seen these warnings. They started a while back.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Apr 19, 2015 4:59 AM, <michkapopoff at gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I built the ITK examples
>>>>>>>>>>>>>> (https://github.com/InsightSoftwareConsortium/ITKExamples)
>>>>>>>>>>>>>> on OS X 10.10 with ITK 4.8 and VTK 6.2. I got a bunch of warnings and
>>>>>>>>>>>>>> errors.
>>>>>>>>>>>>>> Matt; can one of our ITK examples build bots be updated to VTK 6.2 ?
>>>>>>>>>>>>>> And has anybody an idea on what is going on ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Michka
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> In file included from <built-in>:326:
>>>>>>>>>>>>>> <command line>:4:9: warning: 'vtkRenderingCore_AUTOINIT' macro redefined
>>>>>>>>>>>>>> [-Wmacro-redefined]
>>>>>>>>>>>>>> #define vtkRenderingCore_AUTOINIT
>>>>>>>>>>>>>> 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)
>>>>>>>>>>>>>>      ^
>>>>>>>>>>>>>> <command line>:3:9: note: previous definition is here
>>>>>>>>>>>>>> #define vtkRenderingCore_AUTOINIT
>>>>>>>>>>>>>> 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL)
>>>>>>>>>>>>>>      ^
>>>>>>>>>>>>>> 1 warning generated.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> And:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Linking CXX executable
>>>>>>>>>>>>>> ../../../../bin/VisualizeStaticWhitaker2DLevelSetLayers
>>>>>>>>>>>>>> Linking CXX executable
>>>>>>>>>>>>>> ../../../../bin/VisualizeStaticDense2DLevelSetAsElevationMap
>>>>>>>>>>>>>> Linking CXX executable
>>>>>>>>>>>>>> ../../../../bin/VisualizeStaticDense2DLevelSetZeroSet
>>>>>>>>>>>>>> Linking CXX executable ../../../../bin/VisualizeStaticShi2DLevelSetLayers
>>>>>>>>>>>>>> Undefined symbols for architecture x86_64:
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> Undefined symbols for architecture x86_64:
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> Undefined symbols for architecture x86_64:
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit() in Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit() in Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit() in Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> ld: symbol(s) not found for architecture x86_64
>>>>>>>>>>>>>> ld: symbol(s) not found for architecture x86_64
>>>>>>>>>>>>>> ld: symbol(s) not found for architecture x86_64
>>>>>>>>>>>>>> clang: error: linker command failed with exit code 1 (use -v to see
>>>>>>>>>>>>>> invocation)
>>>>>>>>>>>>>> make[2]: *** [bin/VisualizeStaticWhitaker2DLevelSetLayers] Error 1
>>>>>>>>>>>>>> clang: error: linker command failed with exit code 1 (use -v to see
>>>>>>>>>>>>>> invocation)
>>>>>>>>>>>>>> make[1]: ***
>>>>>>>>>>>>>> [src/Segmentation/LevelSetsv4Visualization/VisualizeStaticWhitaker2DLevelSetLayers/CMakeFiles/VisualizeStaticWhitaker2DLevelSetLayers.dir/all]
>>>>>>>>>>>>>> Error 2
>>>>>>>>>>>>>> make[1]: *** Waiting for unfinished jobs....
>>>>>>>>>>>>>> clang: error: linker command failed with exit code 1 (use -v to see
>>>>>>>>>>>>>> invocation)
>>>>>>>>>>>>>> make[2]: make[2]: *** [bin/VisualizeStaticDense2DLevelSetAsElevationMap]
>>>>>>>>>>>>>> Error 1*** [bin/VisualizeStaticDense2DLevelSetZeroSet] Error 1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> make[1]: ***
>>>>>>>>>>>>>> [src/Segmentation/LevelSetsv4Visualization/VisualizeStaticDense2DLevelSetZeroSet/CMakeFiles/VisualizeStaticDense2DLevelSetZeroSet.dir/all]
>>>>>>>>>>>>>> Error 2
>>>>>>>>>>>>>> make[1]: ***
>>>>>>>>>>>>>> [src/Segmentation/LevelSetsv4Visualization/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeFiles/VisualizeStaticDense2DLevelSetAsElevationMap.dir/all]
>>>>>>>>>>>>>> Error 2
>>>>>>>>>>>>>> Undefined symbols for architecture x86_64:
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeOpenGL_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit() in Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Destruct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> "vtkRenderingFreeTypeFontConfig_AutoInit_Construct()", referenced from:
>>>>>>>>>>>>>>    vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit() in
>>>>>>>>>>>>>> Code.cxx.o
>>>>>>>>>>>>>> ld: symbol(s) not found for architecture x86_64
>>>>>>>>>>>>>> clang: error: linker command failed with exit code 1 (use -v to see
>>>>>>>>>>>>>> invocation)
>>>>>>>>>>>>>> make[2]: *** [bin/VisualizeStaticShi2DLevelSetLayers] Error 1
>>>>>>>>>>>>>> make[1]: ***
>>>>>>>>>>>>>> [src/Segmentation/LevelSetsv4Visualization/VisualizeStaticShi2DLevelSetLayers/CMakeFiles/VisualizeStaticShi2DLevelSetLayers.dir/all]
>>>>>>>>>>>>>> Error 2
>>>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Community mailing list
>>>>>>>>>>>>>> Community at itk.org
>>>>>>>>>>>>>> http://public.kitware.com/mailman/listinfo/community
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Community mailing list
>>>>>>>>>>>> Community at itk.org
>>>>>>>>>>>> http://public.kitware.com/mailman/listinfo/community
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Community mailing list