<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY 
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space" 
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, Eric:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; Thanks for your instruction. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;1). I downloaded and installed Qt 4.4.3 
and VTK 5.2 on my computer. As before, I compiled VTK 5.2 using CMake2.4 and 
bulit using VC++ 6 sucessfully with <FONT face="Times New Roman" size=3>with 
BUILD_EXAMPLES: ON and VTK_USE_INFOVIS: ON.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;2). After&nbsp;installing the Qt 
4.4.3,&nbsp;I run the configure command under Qt folder.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;3). When I complied Qt 4.4.3 with VTK 5.2 
using CMake 2.4 with <FONT face="Times New Roman" size=3>VTK_USE_GUISUPPORT: ON 
and VTK_USE_QVTK: ON. Unfortunately, an error appeared and &nbsp;the CMake could 
not find the desired Qt 4.4, which I specified in CMake. Please see the attached 
screen snapshot. </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>4). Some patches of the CMakelists are listed as 
follows.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>**********************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;INCLUDE( 
${CMAKE_ROOT}/Modules/FindQt${DESIRED_QT_VERSION}.cmake )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>IF(NOT QT_FOUND)<BR>&nbsp; MESSAGE("Qt was not 
found")<BR>ELSE(NOT QT_FOUND)</FONT></DIV>
<DIV><FONT face=Arial 
size=2>**********************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Also the entire CMakelist.txt is attached. 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;Since it is my first time to compile QT, 
please forgive me for any ignorance. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>Best 
Wishes,<BR>-----------------------------------------------------------------------------<BR>Dongqing 
Chen, Ph.D.<BR>Computer Vision &amp; Image Processing (CVIP) Lab<BR>Department 
of Electrical &amp; Computer Engineering<BR>Speed School of 
Engineering<BR>University of Louisville<BR>Louisville, KY, 
40292<BR>U.S.A<BR>email: <A 
href="mailto:dqchen@cvip.louisville.edu">dqchen@cvip.louisville.edu</A><BR>phone: 
1-502-852-2789 
(Lab)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
1-502-852-6130 
(Office)<BR>----------------------------------------------------------------------------</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=emonson@cs.duke.edu href="mailto:emonson@cs.duke.edu">Eric E. 
  Monson</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=dqchen@cairo.spd.louisville.edu 
  href="mailto:dqchen@cairo.spd.louisville.edu">Dongqing Chen</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">VTK Users</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 12, 2008 6:19 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] VTKDiCOMImage 
  Reader and QT 4.4.</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial 
  size=2></FONT><BR></DIV>Hello Dongqing, 
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV>I can't answer number 1, but as to number 2: There are two examples I 
  have found especially helpful in compiling Qt along with VTK -- 
  VTK/Examples/GUI/Qt/SimpleView and VTK/Examples/Infovis/Cxx/EasyView. Both of 
  them have CMakeList.txt files which should help you get started using CMake to 
  compile your project which includes both Qt and VTK.&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV>You can try these applications out by compiling VTK with BUILD_EXAMPLES: 
  ON and VTK_USE_INFOVIS: ON. To build the QVTKWidget, which can be used along 
  with Qt Designer, build VTK with VTK_USE_GUISUPPORT: ON and VTK_USE_QVTK: 
  ON.</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV>I know this doesn't give too many details, but I hope it helps get you 
  started,</DIV>
  <DIV>-Eric</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR>
  <DIV apple-content-edited="true"><SPAN class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
  <DIV 
  style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
  <DIV>------------------------------------------------------</DIV>
  <DIV>Eric E Monson</DIV>
  <DIV>Duke Visualization Technology 
Group</SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>