<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello,</DIV>
<DIV><BR>Thank you for your help.</DIV>
<DIV>This is the first time that&nbsp;I have a lot of problems when compiling&nbsp;VTK and Qt &nbsp;(Static mode) !!!!<BR>I did what you asked me:</DIV>
<DIV>&nbsp;</DIV>
<DIV>" 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 "<BR><BR>The number of errors has decreased but remains :</DIV>
<DIV><BR>&nbsp;------------------------------------TIFF---------------------------------------------------------------------<BR>Error&nbsp;79&nbsp;fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory&nbsp;d:\qt\4.7.0\src\3rdparty\libtiff\libtiff\tiffconf.h&nbsp;10</DIV>
<DIV><BR>Error&nbsp;80&nbsp;fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory&nbsp;d:\qt\4.7.0\src\3rdparty\libtiff\libtiff\tiffconf.h&nbsp;10<BR><BR>-----------------------------------others---------------------------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Error&nbsp;2&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=__imp__PlaySoundW@12" rel=nofollow target=_blank ymailto="mailto:__imp__PlaySoundW@12">__imp__PlaySoundW@12</A> referenced in function "public: static void __cdecl QAccessible::updateAccessibility(class QObject *,int,enum QAccessible::Event)" (<A href="/mc/compose?to=&amp;updateAccessibility@QAccessible@@SAXPAVQObject@@HW4Event@1@@Z" rel=nofollow target=_blank ymailto="mailto:?updateAccessibility@QAccessible@@SAXPAVQObject@@HW4Event@1@@Z">?updateAccessibility@QAccessible@@SAXPAVQObject@@HW4Event@1@@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;10&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmAssociateContext@8" rel=nofollow target=_blank ymailto="mailto:_ImmAssociateContext@8">_ImmAssociateContext@8</A> referenced in function "void __cdecl enableIme(class QWidget *,bool)" (<A href="/mc/compose?to=&amp;enableIme@@YAXPAVQWidget@@_N@Z" rel=nofollow target=_blank ymailto="mailto:?enableIme@@YAXPAVQWidget@@_N@Z">?enableIme@@YAXPAVQWidget@@_N@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;9&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmGetCompositionStringW@16" rel=nofollow target=_blank ymailto="mailto:_ImmGetCompositionStringW@16">_ImmGetCompositionStringW@16</A> referenced in function "long __cdecl getCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long)" (<A href="/mc/compose?to=&amp;getCompositionString@@YAJPAUHIMC__@@KPAXK@Z" rel=nofollow target=_blank ymailto="mailto:?getCompositionString@@YAJPAUHIMC__@@KPAXK@Z">?getCompositionString@@YAJPAUHIMC__@@KPAXK@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;6&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmGetContext@4" rel=nofollow target=_blank ymailto="mailto:_ImmGetContext@4">_ImmGetContext@4</A> referenced in function "struct HIMC__ * __cdecl getContext(struct HWND__ *)" (<A href="/mc/compose?to=&amp;getContext@@YAPAUHIMC__@@PAUHWND__@@@Z" rel=nofollow target=_blank ymailto="mailto:?getContext@@YAPAUHIMC__@@PAUHWND__@@@Z">?getContext@@YAPAUHIMC__@@PAUHWND__@@@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;11&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmGetDefaultIMEWnd@4" rel=nofollow target=_blank ymailto="mailto:_ImmGetDefaultIMEWnd@4">_ImmGetDefaultIMEWnd@4</A> referenced in function "struct HWND__ * __cdecl getDefaultIMEWnd(struct HWND__ *)" (<A href="/mc/compose?to=&amp;getDefaultIMEWnd@@YAPAUHWND__@@PAU1@@Z" rel=nofollow target=_blank ymailto="mailto:?getDefaultIMEWnd@@YAPAUHWND__@@PAU1@@Z">?getDefaultIMEWnd@@YAPAUHWND__@@PAU1@@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;8&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmNotifyIME@16" rel=nofollow target=_blank ymailto="mailto:_ImmNotifyIME@16">_ImmNotifyIME@16</A> referenced in function "void __cdecl notifyIME(struct HIMC__ *,unsigned long,unsigned long,unsigned long)" (<A href="/mc/compose?to=&amp;notifyIME@@YAXPAUHIMC__@@KKK@Z" rel=nofollow target=_blank ymailto="mailto:?notifyIME@@YAXPAUHIMC__@@KKK@Z">?notifyIME@@YAXPAUHIMC__@@KKK@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;7&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmReleaseContext@8" rel=nofollow target=_blank ymailto="mailto:_ImmReleaseContext@8">_ImmReleaseContext@8</A> referenced in function "void __cdecl releaseContext(struct HWND__ *,struct HIMC__ *)" (<A href="/mc/compose?to=&amp;releaseContext@@YAXPAUHWND__@@PAUHIMC__@@@Z" rel=nofollow target=_blank ymailto="mailto:?releaseContext@@YAXPAUHWND__@@PAUHIMC__@@@Z">?releaseContext@@YAXPAUHWND__@@PAUHIMC__@@@Z</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;3&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmSetCandidateWindow@8" rel=nofollow target=_blank ymailto="mailto:_ImmSetCandidateWindow@8">_ImmSetCandidateWindow@8</A> referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (<A href="/mc/compose?to=&amp;update@QWinInputContext@@UAEXXZ" rel=nofollow target=_blank ymailto="mailto:?update@QWinInputContext@@UAEXXZ">?update@QWinInputContext@@UAEXXZ</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;5&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmSetCompositionFontW@8" rel=nofollow target=_blank ymailto="mailto:_ImmSetCompositionFontW@8">_ImmSetCompositionFontW@8</A> referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (<A href="/mc/compose?to=&amp;update@QWinInputContext@@UAEXXZ" rel=nofollow target=_blank ymailto="mailto:?update@QWinInputContext@@UAEXXZ">?update@QWinInputContext@@UAEXXZ</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;4&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_ImmSetCompositionWindow@8" rel=nofollow target=_blank ymailto="mailto:_ImmSetCompositionWindow@8">_ImmSetCompositionWindow@8</A> referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (<A href="/mc/compose?to=&amp;update@QWinInputContext@@UAEXXZ" rel=nofollow target=_blank ymailto="mailto:?update@QWinInputContext@@UAEXXZ">?update@QWinInputContext@@UAEXXZ</A>)&nbsp;QtGuid.lib<BR></DIV>
<DIV>Error&nbsp;1&nbsp;error LNK2019: unresolved external symbol <A href="/mc/compose?to=_WSAAsyncSelect@16" rel=nofollow target=_blank ymailto="mailto:_WSAAsyncSelect@16">_WSAAsyncSelect@16</A> referenced in function "public: void __thiscall QEventDispatcherWin32Private::doWsaAsyncSelect(int)" (<A href="/mc/compose?to=&amp;doWsaAsyncSelect@QEventDispatcherWin32Private@@QAEXH@Z" rel=nofollow target=_blank ymailto="mailto:?doWsaAsyncSelect@QEventDispatcherWin32Private@@QAEXH@Z">?doWsaAsyncSelect@QEventDispatcherWin32Private@@QAEXH@Z</A>)&nbsp;QtCored.lib<BR></DIV>
<DIV>Error&nbsp;12&nbsp;fatal error LNK1120: 11 unresolved externals&nbsp;D:\LIBS_UTL\IMAGE_Prcssng\VTK_5.6.1\VTKData\bin\Debug\QVTKWidgetPlugin.dll<BR><BR>-----------------------------------------------------------------------------------------------------------------------------------<BR><BR>Waiting for your help and thank you in advance<BR><BR>--- En date de&nbsp;: <B>Jeu 30.9.10, Dave Partyka <I>&lt;dave.partyka@kitware.com&gt;</I></B> a écrit&nbsp;:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>De: Dave Partyka &lt;dave.partyka@kitware.com&gt;<BR>Objet: Re: [vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static<BR>À: "Fireman Fireman" &lt;vtkusersneedhelp@yahoo.fr&gt;<BR>Date: Jeudi 30 septembre 2010, 17h04<BR><BR>
<DIV id=yiv618663690>Can you send the errors you are getting when using VTK_USE_SYSTEM_TIFF? I have not tried this yet. I am not been able to come up with a fix for sqlite yet.<BR><BR>
<DIV class=yiv618663690gmail_quote>On Thu, Sep 30, 2010 at 1:01 PM, Fireman Fireman <SPAN dir=ltr>&lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=vtkusersneedhelp@yahoo.fr" rel=nofollow target=_blank ymailto="mailto:vtkusersneedhelp@yahoo.fr">vtkusersneedhelp@yahoo.fr</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=yiv618663690gmail_quote>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi Dave,<BR><BR>Have you&nbsp; fixed these errors by setting &nbsp;VTK_USE_SYSTEM_TIFF to ON and then setting &nbsp;TIFF_INCLUDE_DIR and TIFF_LIBRARY to those built by Qt ???<BR><BR>What about symbol in sqlite&nbsp; ?? ( how to solve this errors)<BR><BR>Thank you in advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>--- En date de&nbsp;: <B>Mer 29.9.10, Dave Partyka <I>&lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=dave.partyka@kitware.com" rel=nofollow target=_blank ymailto="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</A>&gt;</I></B> a écrit&nbsp;:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>De: Dave Partyka &lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=dave.partyka@kitware.com" rel=nofollow target=_blank ymailto="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</A>&gt;<BR>Objet: Re: [vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static<BR>À: "Fireman Fireman" &lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=vtkusersneedhelp@yahoo.fr" rel=nofollow target=_blank ymailto="mailto:vtkusersneedhelp@yahoo.fr">vtkusersneedhelp@yahoo.fr</A>&gt;<BR>Cc: <A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=vtkusers@vtk.org" rel=nofollow target=_blank ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A><BR>Date: Mercredi 29 septembre 2010, 22h08
<DIV>
<DIV></DIV>
<DIV class=yiv618663690h5><BR><BR>
<DIV>Hi Fireman, 
<DIV><BR></DIV>
<DIV>I have fixed the TIFF issues on master and release branches of VTK. There is still one more symbol in sqlite that I need to fix.</DIV>
<DIV><BR></DIV>
<DIV>Thanks!<BR><BR>
<DIV>On Wed, Sep 29, 2010 at 11:37 AM, Dave Partyka <SPAN dir=ltr>&lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=dave.partyka@kitware.com" rel=nofollow target=_blank>dave.partyka@kitware.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">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. 
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV>On Wed, Sep 29, 2010 at 11:28 AM, Dave Partyka <SPAN dir=ltr>&lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=dave.partyka@kitware.com" rel=nofollow target=_blank>dave.partyka@kitware.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">Argh, there are unmangled symbols in vtk's tiff then. Let me take a look.<BR><BR>
<DIV>
<DIV>
<DIV></DIV>
<DIV>On Wed, Sep 29, 2010 at 11:06 AM, Fireman Fireman <SPAN dir=ltr>&lt;<A href="http://fr.mc248.mail.yahoo.com/mc/compose?to=vtkusersneedhelp@yahoo.fr" rel=nofollow target=_blank>vtkusersneedhelp@yahoo.fr</A>&gt;</SPAN> wrote:<BR></DIV></DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV>
<DIV></DIV>
<DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi Vtkusers,<BR></DIV>
<DIV><BR><SPAN title="">I had </SPAN>errors while building static vtk&nbsp; VTK 5.6.1 against static Qt with Visual Studio&nbsp;2005 and Qt 4.7.<BR></DIV>
<DIV>Error&nbsp;764&nbsp;error LNK2005: __TIFFerrorHandlerExt already defined in QtGuid.lib(tif_error.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;934&nbsp;error LNK2005: __TIFFerrorHandlerExt already defined in QtGuid.lib(tif_error.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;937&nbsp;error LNK2005: __TIFFerrorHandlerExt already defined in vtktiff.lib(tif_error.obj)&nbsp;QtGuid.lib<BR>Error&nbsp;763&nbsp;error LNK2005: __TIFFwarningHandlerExt already defined in QtGuid.lib(tif_warning.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;933&nbsp;error LNK2005: __TIFFwarningHandlerExt already defined in QtGuid.lib(tif_warning.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;938&nbsp;error LNK2005: __TIFFwarningHandlerExt already defined in vtktiff.lib(tif_warning.obj)&nbsp;QtGuid.lib<BR>Error&nbsp;762&nbsp;error LNK2005: _TIFFOpenW already defined in QtGuid.lib(tif_win32.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;932&nbsp;error LNK2005: _TIFFOpenW already defined in
 QtGuid.lib(tif_win32.obj)&nbsp;vtktiff.lib<BR>Error&nbsp;936&nbsp;error LNK2005: _TIFFOpenW already defined in vtktiff.lib(tif_win32.obj)&nbsp;QtGuid.lib<BR>Error&nbsp;929&nbsp;error LNK2005: _winCurrentTime already defined in QtSqld.lib(sqlite3.obj)&nbsp;vtksqlite.lib<BR><BR>How can i&nbsp;resolve&nbsp;this ?</DIV>
<DIV>Tank you in advance.</DIV></TD></TR></TBODY></TABLE><BR><BR></DIV></DIV>_______________________________________________<BR>Powered by <A href="http://www.kitware.com/" rel=nofollow target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source projects at <A href="http://www.kitware.com/opensource/opensource.html" rel=nofollow target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please keep messages on-topic and check the VTK FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" rel=nofollow target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" rel=nofollow
 target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></td></tr></table><br>