[vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static

Fireman Fireman vtkusersneedhelp at yahoo.fr
Mon Oct 4 10:53:51 EDT 2010


Hello,

Thank you for your help.
This is the first time that I have a lot of problems when compiling VTK and Qt  (Static mode) !!!!
I did what you asked me:
 
" 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 "

The number of errors has decreased but remains :

 ------------------------------------TIFF---------------------------------------------------------------------
Error 79 fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory d:\qt\4.7.0\src\3rdparty\libtiff\libtiff\tiffconf.h 10

Error 80 fatal error C1083: Cannot open include file: 'qglobal.h': No such file or directory d:\qt\4.7.0\src\3rdparty\libtiff\libtiff\tiffconf.h 10

-----------------------------------others---------------------------------------------------------------------
 
 
Error 2 error LNK2019: unresolved external symbol __imp__PlaySoundW at 12 referenced in function "public: static void __cdecl QAccessible::updateAccessibility(class QObject *,int,enum QAccessible::Event)" (?updateAccessibility at QAccessible@@SAXPAVQObject@@HW4Event at 1@@Z) QtGuid.lib

Error 10 error LNK2019: unresolved external symbol _ImmAssociateContext at 8 referenced in function "void __cdecl enableIme(class QWidget *,bool)" (?enableIme@@YAXPAVQWidget@@_N at Z) QtGuid.lib

Error 9 error LNK2019: unresolved external symbol _ImmGetCompositionStringW at 16 referenced in function "long __cdecl getCompositionString(struct HIMC__ *,unsigned long,void *,unsigned long)" (?getCompositionString@@YAJPAUHIMC__@@KPAXK at Z) QtGuid.lib

Error 6 error LNK2019: unresolved external symbol _ImmGetContext at 4 referenced in function "struct HIMC__ * __cdecl getContext(struct HWND__ *)" (?getContext@@YAPAUHIMC__@@PAUHWND__@@@Z) QtGuid.lib

Error 11 error LNK2019: unresolved external symbol _ImmGetDefaultIMEWnd at 4 referenced in function "struct HWND__ * __cdecl getDefaultIMEWnd(struct HWND__ *)" (?getDefaultIMEWnd@@YAPAUHWND__@@PAU1@@Z) QtGuid.lib

Error 8 error LNK2019: unresolved external symbol _ImmNotifyIME at 16 referenced in function "void __cdecl notifyIME(struct HIMC__ *,unsigned long,unsigned long,unsigned long)" (?notifyIME@@YAXPAUHIMC__@@KKK at Z) QtGuid.lib

Error 7 error LNK2019: unresolved external symbol _ImmReleaseContext at 8 referenced in function "void __cdecl releaseContext(struct HWND__ *,struct HIMC__ *)" (?releaseContext@@YAXPAUHWND__@@PAUHIMC__@@@Z) QtGuid.lib

Error 3 error LNK2019: unresolved external symbol _ImmSetCandidateWindow at 8 referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (?update at QWinInputContext@@UAEXXZ) QtGuid.lib

Error 5 error LNK2019: unresolved external symbol _ImmSetCompositionFontW at 8 referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (?update at QWinInputContext@@UAEXXZ) QtGuid.lib

Error 4 error LNK2019: unresolved external symbol _ImmSetCompositionWindow at 8 referenced in function "public: virtual void __thiscall QWinInputContext::update(void)" (?update at QWinInputContext@@UAEXXZ) QtGuid.lib

Error 1 error LNK2019: unresolved external symbol _WSAAsyncSelect at 16 referenced in function "public: void __thiscall QEventDispatcherWin32Private::doWsaAsyncSelect(int)" (?doWsaAsyncSelect at QEventDispatcherWin32Private@@QAEXH at Z) QtCored.lib

Error 12 fatal error LNK1120: 11 unresolved externals D:\LIBS_UTL\IMAGE_Prcssng\VTK_5.6.1\VTKData\bin\Debug\QVTKWidgetPlugin.dll

-----------------------------------------------------------------------------------------------------------------------------------

Waiting for your help and thank you in advance

--- En date de : Jeu 30.9.10, Dave Partyka <dave.partyka at kitware.com> a écrit :


De: Dave Partyka <dave.partyka at kitware.com>
Objet: Re: [vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static
À: "Fireman Fireman" <vtkusersneedhelp at yahoo.fr>
Date: Jeudi 30 septembre 2010, 17h04


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.


On Thu, Sep 30, 2010 at 1:01 PM, Fireman Fireman <vtkusersneedhelp at yahoo.fr> wrote:






Hi Dave,

Have you  fixed these errors by setting  VTK_USE_SYSTEM_TIFF to ON and then setting  TIFF_INCLUDE_DIR and TIFF_LIBRARY to those built by Qt ???

What about symbol in sqlite  ?? ( how to solve this errors)

Thank you in advance
 
 
--- En date de : Mer 29.9.10, Dave Partyka <dave.partyka at kitware.com> a écrit :


De: Dave Partyka <dave.partyka at kitware.com>
Objet: Re: [vtkusers] [Link error] VTK 5.6.1 Static with Qt 4.7.0 Static
À: "Fireman Fireman" <vtkusersneedhelp at yahoo.fr>
Cc: vtkusers at vtk.org
Date: Mercredi 29 septembre 2010, 22h08





Hi Fireman, 


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.


Thanks!


On Wed, Sep 29, 2010 at 11:37 AM, Dave Partyka <dave.partyka at kitware.com> wrote:

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/20101004/31dc4bf3/attachment.htm>


More information about the vtkusers mailing list