Cool! :-)<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 8:35 PM, Gelas, Arnaud Joel Florent <span dir="ltr"><<a href="mailto:Arnaud_Gelas@hms.harvard.edu">Arnaud_Gelas@hms.harvard.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Marcus,<br>
<br>
It solved my errors (at least on my laptop, I'll check on my desktop tomorrow morning).<br>
<br>
Thanks a lot!<br>
Arnaud<br>
<br>
________________________________________<br>
From: Marcus D. Hanwell [<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>]<br>
Sent: Tuesday, December 14, 2010 7:12 PM<br>
To: Gelas, Arnaud Joel Florent<br>
Cc: Dave Partyka; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>; <a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a><br>
Subject: Re: [vtk-developers] compilation and link errors in 3rd part application due to recent changes in VTK<br>
<div><div></div><div class="h5"><br>
I just merged in a small fix that got things linking again here at<br>
least. Arnaud - if you pull and do a 'cmake .' in the VTK build tree<br>
it will rebuild VTKConfig.cmake, and that should be enough for you to<br>
confirm whether this gets things working again for you too.<br>
<br>
Marcus<br>
<br>
On Tue, Dec 14, 2010 at 6:52 PM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> Dave,<br>
><br>
> I am hitting this in the much smaller vtkCharts project too, it looks<br>
> like the exports file is not getting included as it should be. I am<br>
> debugging it right now, it looks like it shouldn't take too long to<br>
> fix.<br>
><br>
> Marcus<br>
>><br>
>> On 12/14/2010 03:06 PM, Dave Partyka wrote:<br>
>><br>
>> Hi Arnaud,<br>
>> This must be due to my switch over to use CMake exports. Can you share your<br>
>> code that is breaking so I can reproduce the error?<br>
>><br>
>> On Tue, Dec 14, 2010 at 2:43 PM, Arnaud GELAS <<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>><br>
>> wrote:<br>
>>><br>
>>> Except tons of linking errors somehow related to (now?) missing libraries<br>
>>> in the target_link_libraries,<br>
>>>  for couples of my target, I get the following new link error:<br>
>>><br>
>>> /usr/bin/ld:<br>
>>> /home/ajg23/BUILD/Static/Debug/VTK/bin/libQVTK.a(QVTKWidget.cxx.o):<br>
>>> undefined reference to symbol 'XGetWindowAttributes'<br>
>>> /usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO<br>
>>> /usr/lib64/libX11.so.6 so try adding it to the linker command line<br>
>>> /usr/lib64/libX11.so.6: could not read symbols: Invalid operation<br>
>>><br>
>>> On 12/14/2010 02:23 PM, Arnaud GELAS wrote:<br>
>>>><br>
>>>> Here are the first link errors, by doing make -j12<br>
>>>><br>
>>>> make[1]: ***<br>
>>>> [Examples/ExternalCode/MegaVTK/CMakeFiles/vtkviewimage3dtest.dir/all]<br>
>>>> Error 2<br>
>>>> /usr/bin/ld: cannot find -lvtkHybrid<br>
>>>> /usr/bin/ld: cannot find -lvtkCommon<br>
>>>> /usr/bin/ld: cannot find -lvtkRendering<br>
>>>> /usr/bin/ld: cannot find -lvtkWidgets<br>
>>>> /usr/bin/ld: cannot find -lvtkVolumeRendering<br>
>>>> /usr/bin/ld: cannot find -lvtkHybrid<br>
>>>> /usr/bin/ld: cannot find -lvtkImaging<br>
>>>> collect2: ld returned 1 exit status<br>
>>>><br>
>>>> It seems that I now need to add VTK_LIBRARY_DIRS to the list of<br>
>>>> LINK_DIRECTORIES...<br>
>>>><br>
>>>> After adding VTK_LIBRARY_DIRS to the list of LINK_DIRECTORIES, I get the<br>
>>>> following link errors that I don't have with the version just before<br>
>>>> that commit:<br>
>>>><br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function `main':<br>
>>>><br>
>>>> /home/ajg23/GITROOT/GoFigure2/Examples/Filters/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx:79:<br>
>>>> undefined reference to `vtkPolyDataAlgorithm::GetOutput()'<br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function `vtkImageData::SetScalarTypeToUnsignedChar()':<br>
>>>> /home/ajg23/GITROOT/VTK/Filtering/vtkImageData.h:290: undefined<br>
>>>> reference to `vtkImageData::SetScalarType(int)'<br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function `~vtkSmartPointer':<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::~vtkSmartPointerBase()'<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::~vtkSmartPointerBase()'<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::~vtkSmartPointerBase()'<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::~vtkSmartPointerBase()'<br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function<br>
>>>> `vtkSmartPointer<vtkImageData>::operator=(vtkSmartPointer<vtkImageData><br>
>>>> const&)':<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::operator=(vtkSmartPointerBase const&)'<br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function<br>
>>>><br>
>>>> `vtkSmartPointer<vtkPolyDataToImageStencil>::operator=(vtkSmartPointer<vtkPolyDataToImageStencil><br>
>>>> const&)':<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::operator=(vtkSmartPointerBase const&)'<br>
>>>><br>
>>>> CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
>>>> In function<br>
>>>><br>
>>>> `vtkSmartPointer<vtkImageStencil>::operator=(vtkSmartPointer<vtkImageStencil><br>
>>>> const&)':<br>
>>>> /home/ajg23/GITROOT/VTK/Common/vtkSmartPointer.h:27: undefined reference<br>
>>>> to `vtkSmartPointerBase::operator=(vtkSmartPointerBase const&)'<br>
>>>><br>
>>>> ---<br>
>>>><br>
>>>> I am on Fedora 14 (64 bits), I use CMake version 2.8.3.20101209-gd2563...<br>
>>>><br>
>>>> Arnaud<br>
>>>><br>
>>>><br>
>>>> On 12/14/2010 02:05 PM, David Cole wrote:<br>
>>>>><br>
>>>>> How did this break your application?<br>
>>>>><br>
>>>>> Can you send along the compile errors?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Dec 14, 2010 at 2:00 PM, Arnaud GELAS<br>
>>>>> <<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>>   wrote:<br>
>>>>>><br>
>>>>>> Hi all,<br>
>>>>>><br>
>>>>>> With a recent commit introduced in VTK, I can't compile anymore my<br>
>>>>>> application.<br>
>>>>>><br>
>>>>>> Here is the commit responsible of this change:<br>
>>>>>><br>
>>>>>> d738ac139ca27a8113531841656b9e9a43ae55b5<br>
>>>>>><br>
>>>>>> Is there a way to revert this commit?<br>
>>>>>> or to provide help/indications on how to make my application support<br>
>>>>>> this<br>
>>>>>> "new" version and previous one as well?<br>
>>>>>><br>
>>>>>> Thanks in advance,<br>
>>>>>> Arnaud<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>><br>
>>>>>> Visit other Kitware open-source projects at<br>
>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>>><br>
>>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>>>>><br>
>>>>>><br>
>>>> _______________________________________________<br>
>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>><br>
>>>> Visit other Kitware open-source projects at<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>><br>
>>>> Follow this link to subscribe/unsubscribe:<br>
>>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br>