Hi Arnaud,<div><br></div><div>This must be due to my switch over to use CMake exports. Can you share your code that is breaking so I can reproduce the error?</div><div><br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 2:43 PM, Arnaud GELAS <span dir="ltr"><<a href="mailto:arnaud_gelas@hms.harvard.edu" target="_blank">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">Except tons of linking errors somehow related to (now?) missing libraries in the target_link_libraries,<br>
 for couples of my target, I get the following new link error:<br>
<br>
/usr/bin/ld: /home/ajg23/BUILD/Static/Debug/VTK/bin/libQVTK.a(QVTKWidget.cxx.o): undefined reference to symbol 'XGetWindowAttributes'<br>
/usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO /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<div><div></div><div><br>
<br>
On 12/14/2010 02:23 PM, Arnaud GELAS wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
In function `main':<br>
/home/ajg23/GITROOT/GoFigure2/Examples/Filters/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx:79:<br>
undefined reference to `vtkPolyDataAlgorithm::GetOutput()'<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>
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>
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>
CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
In function<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>
CMakeFiles/itkvtkPolyDatatoBinaryMaskImageFilterTest.dir/itkvtkPolyDatatoBinaryMaskImageFilterTest.cxx.o:<br>
In function<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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">arnaud_gelas@hms.harvard.edu</a>>   wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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 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>
</blockquote></blockquote>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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>
</blockquote>
<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 <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>
</div></div></blockquote></div><br></div>