[Insight-users] Required QT Version For Building QT-Dependent Examples In InsightApplications?
John Drescher
drescherjm at gmail.com
Wed Mar 31 13:43:41 EDT 2010
On Wed, Mar 31, 2010 at 1:12 PM, Constantine Zakkaroff <mnkz at leeds.ac.uk> wrote:
> Hello ALL,
>
> I'm trying to build QtITKExample with QT-4.6.2 and I get these messages:
>
> Error 1 fatal error C1083: Cannot open include file: 'qbutton.h': No
> such file or directory c:\workspace\qtitk\itkQtLightIndicator.h 2
> QtITK
> Error 2 error C2661: 'QProgressBar::QProgressBar' : no overloaded
> function takes 2 arguments c:\Workspace\QtITK\itkQtProgressBar.cxx 31
> QtITK
> Error 3 error C2039: 'setTotalSteps' : is not a member of
> 'itk::QtProgressBar' c:\Workspace\QtITK\itkQtProgressBar.cxx 36 QtITK
> Error 4 error C2039: 'totalSteps' : is not a member of
> 'itk::QtProgressBar' c:\Workspace\QtITK\itkQtProgressBar.cxx 65
> QtITK
> Error 5 error C2039: 'setProgress' : is not a member of
> 'itk::QtProgressBar' c:\Workspace\QtITK\itkQtProgressBar.cxx 67
> QtITK
> Error 6 error C2039: 'totalSteps' : is not a member of
> 'itk::QtProgressBar' c:\Workspace\QtITK\itkQtProgressBar.cxx 84
> QtITK
> Error 7 error C2039: 'setProgress' : is not a member of
> 'itk::QtProgressBar' c:\Workspace\QtITK\itkQtProgressBar.cxx 86
> QtITK
>
> I checked QT source/include files, documentation and it appears that the
> messages indicate that QtITKExample was meant to be compiled with some older
> version of QT.
>
That is the same version I use with visual studio and I do not have
this problem. Did you add
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
to your CMakeLists.txt file?
John
More information about the Insight-users
mailing list