[vtkusers] Link error during static build of Qt and vtk_5-6-1

Martin Olson martinolson1024 at gmail.com
Sun Jan 16 21:46:03 EST 2011


Hi,

I am trying to build static versions of the Qt and vtk libs. But get into
this linking error:

....
[ 98%] Building CXX object
Examples/Charts/Cxx/CMakeFiles/GraphItem.dir/vtkGraphItem.cxx.o
Linking CXX executable ../../../bin/GraphItem
<...>qt/qt4.7.1/lib/libQtGui.a(tif_error.o)(.bss+0x0): multiple definition
of `_TIFFerrorHandlerExt'
../../../bin/libvtktiff.a(tif_error.c.o)(.bss+0x0): first defined here
<...>/qt/qt4.7.1/lib/libQtGui.a(tif_warning.o)(.bss+0x0): multiple
definition of `_TIFFwarningHandlerExt'
../../../bin/libvtktiff.a(tif_warning.c.o)(.bss+0x0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [bin/GraphItem] Error 1
make[1]: *** [Examples/Charts/Cxx/CMakeFiles/GraphItem.dir/all] Error 2


I will be grateful for any hints on how to solve this. I guess I could opt
for not building the examples, if it's only this one example that is the
problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110117/349ab7fe/attachment.htm>


More information about the vtkusers mailing list