<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to compile VTK5.0 with QT4.1.4 using Visual C++
2005. When compiling QVTK, I got the following errors:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;------ Build started: Project: QVTK,
Configuration: Debug Win32 ------<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;Linking...<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;&nbsp;&nbsp; Creating library
D:\vtk\VTK\bin\Debug\QVTK.lib and object D:\vtk\VTK\bin\Debug\QVTK.exp<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;vtkEventQtSlotConnect.obj : error LNK2001:
unresolved external symbol &quot;public: virtual struct QMetaObject const *
__thiscall vtkQtConnection::metaObject(void)const &quot;
(?metaObject@vtkQtConnection@@UBEPBUQMetaObject@@XZ)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;vtkEventQtSlotConnect.obj : error LNK2001:
unresolved external symbol &quot;public: virtual void * __thiscall
vtkQtConnection::qt_metacast(char const *)&quot;
(?qt_metacast@vtkQtConnection@@UAEPAXPBD@Z)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;vtkEventQtSlotConnect.obj : error LNK2001:
unresolved external symbol &quot;public: virtual int __thiscall
vtkQtConnection::qt_metacall(enum QMetaObject::Call,int,void * *)&quot;
(?qt_metacall@vtkQtConnection@@UAEHW4Call@QMetaObject@@HPAPAX@Z)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;vtkEventQtSlotConnect.obj : error LNK2019:
unresolved external symbol &quot;protected: void __thiscall
vtkQtConnection::EmitExecute(class vtkObject *,unsigned long,void *,void
*,class vtkCommand *)&quot;
(?EmitExecute@vtkQtConnection@@IAEXPAVvtkObject@@KPAX1PAVvtkCommand@@@Z)
referenced in function &quot;public: void __thiscall
vtkQtConnection::Execute(class vtkObject *,unsigned long,void *)&quot;
(?Execute@vtkQtConnection@@QAEXPAVvtkObject@@KPAX@Z)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;D:\vtk\VTK\bin\Debug\QVTK.dll : fatal error
LNK1120: 4 unresolved externals<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;Build log was saved at
&quot;file://d:\vtk\VTK\GUISupport\Qt\QVTK.dir\Debug\BuildLog.htm&quot;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>2&gt;QVTK - 5 error(s), 0 warning(s)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'>========== Build: 1 succeeded, 1 failed, 20
up-to-date, 0 skipped ==========<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span style='font-size:8.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I tried to link all the libraries in VTK and QT, but still
got those errors. Does anyone know what the problem is and how to solve it?
Thanks a lot in advance.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Haobing<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>