[ITK] Building ITK examples with VTK 6.2
Bill Lorensen
bill.lorensen at gmail.com
Sun Apr 26 08:13:16 EDT 2015
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
More information about the Community
mailing list