[Insight-users] About ITK+QT in Windows

Luis Ibanez luis.ibanez at kitware.com
Sun Sep 4 10:42:48 EDT 2011


Erol,

Please look at this CMakeLists.txt file

http://itk.org/gitweb?p=ITKApps.git;a=blob;f=Auxiliary/QtImageViewer/CMakeLists.txt;h=542ce39eafc0d03cd301ddae19feb8229e975f74;hb=master

from ITKApps/Auxiliary/QtImageViewer/

and to this one

http://itk.org/gitweb?p=ITKApps.git;a=blob;f=QtITK/CMakeLists.txt;h=2f926dbeaa0acdf1f0c97aaf2cf87480b57b1044;hb=02b3f81b3dc8dad4681ce47830111e7d280806b2

You may also find interesting to look at the CTK project:
http://www.commontk.org/index.php/Main_Page


      Luis

----------------------------------------------------------
On Fri, Sep 2, 2011 at 11:41 AM, erol yeniaras <eyeniaras at gmail.com> wrote:
> Hello Dr. Ibanez,
> We are planning to use QT and ITK+VTK in our projects. We have followed your
> tutorials and installed VTK and ITK without any problem.
> However QT creates some issues when building in visual studio (even after 2
> days non-stop google search for the solution). Based on the tutorial on your
> website we have downloaded and installed QT STK, 1.1.3 version (the latest).
> We have used the exact same code in the tutorial. Our CmakeLists file is:
> PROJECT(myProject)
> FIND_PACKAGE ( ITK)
> IF ( ITK_FOUND)
> INCLUDE( ${USE_ITK_FILE} )
> ENDIF( ITK_FOUND)
> FIND_PACKAGE ( QT)
> IF ( QT_FOUND)
> INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
> ENDIF( QT_FOUND)
> LINK_LIBRARIES ( ITKIO ${QT_LIBRARIES} )
> SET( QtITK_SRCS itkQtProgressBar.cxx qtITK.cxx)
> SET( QtITK_MOC_SRCS itkQtAdaptor.h itkQtLightIndicator.h)
> IF( QT_WRAP_CPP )
> QT_WRAP_CPP( QtITK ${QtITK_MOC_SRCS})
> ENDIF( QT_WRAP_CPP )
> ADD_EXECUTABLE( QtITK QtITK_SRCS)
> I am also attaching the c++ code file and a snapshot of CMake.
> I have followed the
> tutorial: http://www.itk.org/CourseWare/Training/GettingStarted-IV.pdf
> Now the error is: When I build the project in Visual studio after
> configuring and generating in Cmake I get the error error message:
> Error 1 fatal error C1083: Cannot open include file:
> 'QtCore/qcoreapplication.h': No such file or directory
> c:\qtsdk\desktop\qt\4.7.4\msvc2008\include\QtGui\qapplication.h 45 QtITK
> Please help!
> Thanks in advance,
> --
> Erol YENIARAS, Ph.D.
> The University of Texas MD Anderson Cancer Center
> Department of Imaging Physics
> 1515 Holcombe Boulevard, Unit 56
> Houston, Texas 77030-4009
> Phone: 713-792-2746
> E-mail: eyeniaras at mdanderson.org


More information about the Insight-users mailing list