[vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static
Dave Partyka
dave.partyka at kitware.com
Wed Sep 29 11:37:56 EDT 2010
One thing you should be able to do is in VTK's cmake options, set
VTK_USE_SYSTEM_TIFF to ON and then set TIFF_INCLUDE_DIR and TIFF_LIBRARY to
those built by Qt. I believe the library is called qtiff and the headers are
under Qt\src\3rdparty\libtiff\libtiff. I don't have a static build of Qt so
I can't test this for you presently.
On Wed, Sep 29, 2010 at 11:28 AM, Dave Partyka <dave.partyka at kitware.com>wrote:
> Argh, there are unmangled symbols in vtk's tiff then. Let me take a look.
>
> On Wed, Sep 29, 2010 at 11:06 AM, Fireman Fireman <
> vtkusersneedhelp at yahoo.fr> wrote:
>
>> Hi Vtkusers,
>>
>> I had errors while building static vtk VTK 5.6.1 against static Qt with
>> Visual Studio 2005 and Qt 4.7.
>> Error 764 error LNK2005: __TIFFerrorHandlerExt already defined in
>> QtGuid.lib(tif_error.obj) vtktiff.lib
>> Error 934 error LNK2005: __TIFFerrorHandlerExt already defined in
>> QtGuid.lib(tif_error.obj) vtktiff.lib
>> Error 937 error LNK2005: __TIFFerrorHandlerExt already defined in
>> vtktiff.lib(tif_error.obj) QtGuid.lib
>> Error 763 error LNK2005: __TIFFwarningHandlerExt already defined in
>> QtGuid.lib(tif_warning.obj) vtktiff.lib
>> Error 933 error LNK2005: __TIFFwarningHandlerExt already defined in
>> QtGuid.lib(tif_warning.obj) vtktiff.lib
>> Error 938 error LNK2005: __TIFFwarningHandlerExt already defined in
>> vtktiff.lib(tif_warning.obj) QtGuid.lib
>> Error 762 error LNK2005: _TIFFOpenW already defined in
>> QtGuid.lib(tif_win32.obj) vtktiff.lib
>> Error 932 error LNK2005: _TIFFOpenW already defined in
>> QtGuid.lib(tif_win32.obj) vtktiff.lib
>> Error 936 error LNK2005: _TIFFOpenW already defined in
>> vtktiff.lib(tif_win32.obj) QtGuid.lib
>> Error 929 error LNK2005: _winCurrentTime already defined in
>> QtSqld.lib(sqlite3.obj) vtksqlite.lib
>>
>> How can i resolve this ?
>> Tank you in advance.
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100929/600424b0/attachment.htm>
More information about the vtkusers
mailing list