[ITK Community] [Insight-users] QtImageViewer building problem, please help

Matt McCormick matt.mccormick at kitware.com
Fri Nov 8 11:40:05 EST 2013


Hi Adem,

To the best of my knowledge, that application needs maintenance work.
Some other ITK/Qt image viewers, such as QGoImageCompare [1], are
listed here [2].

Thanks,
Matt

[1] https://github.com/gofigure2/QGoImageCompare
[2] http://itk.org/ITKExamples/Documentation/Build/index.html

On Fri, Nov 8, 2013 at 6:45 AM, Adem breckon <adem.breckon at gmail.com> wrote:
>
>
> Hi all,
>
> I am trying to bluid QtImageViewer as a separate project from
> insightapplications.
>
> I configured it successfully using Cmake (apart having a: WARNING: you are
> using the obsolete 'GLU' package, please use 'OpenGL' instead).
>
> When it comes to build I got the following errors:
>
>
>
> Warning               1              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           25           QtSlicer
>
> Warning               2              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           27           QtSlicer
>
> Warning               3              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           29           QtSlicer
>
> Warning               4              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           31           QtSlicer
>
> Warning               5              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           61           QtSlicer
>
> Warning               6              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           63           QtSlicer
>
> Warning               7              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           74           QtSlicer
>
> Warning               8              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           82           QtSlicer
>
> Warning               9              warning C4996: 'sprintf': This function
> or variable may be unsafe. Consider using sprintf_s instead. To disable
> deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> c:\MyCodes\QtImageViewer\QtSlicer.cxx           90           QtSlicer
>
> Warning               10           warning C4996: 'std::copy': Function call
> with parameters that may be unsafe - this call relies on the caller to check
> that the passed values are correct. To disable this warning, use
> -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
> 'Checked Iterators'
> c:\tools\itk_4.4.2\itk_4.4.2\modules\core\common\include\itkImportImageContainer.hxx
> 72           QtSlicer
>
> Warning               11           warning C4996: 'std::copy': Function call
> with parameters that may be unsafe - this call relies on the caller to check
> that the passed values are correct. To disable this warning, use
> -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
> 'Checked Iterators'
> c:\tools\itk_4.4.2\itk_4.4.2\modules\core\common\include\itkImportImageContainer.hxx
> 72           QtSlicer
>
> Error      12           error C2039: 'useDiscrete' : is not a member of
> 'itk::ColorTable<TPixel>'
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              83
> QtSlicer
>
> Error      13           error C2039: 'color' : is not a member of
> 'itk::ColorTable<TPixel>'
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              544         QtSlicer
>
> Error      14           error C2227: left of '->GetRed' must point to
> class/struct/union/generic type
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              544         QtSlicer
>
> Error      15           error C2039: 'color' : is not a member of
> 'itk::ColorTable<TPixel>'
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              546         QtSlicer
>
> Error      16           error C2227: left of '->GetGreen' must point to
> class/struct/union/generic type
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              546         QtSlicer
>
> Error      17           error C2039: 'color' : is not a member of
> 'itk::ColorTable<TPixel>'
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              548         QtSlicer
>
> Error      18           error C2227: left of '->GetBlue' must point to
> class/struct/union/generic type
> c:\MyCodes\QtImageViewer\QtGlSliceView.cxx              548         QtSlicer
>
> Error      19           error C2664:
> 'itk::ImageFileReader<TOutputImage>::SetFileName' : cannot convert parameter
> 1 from 'QByteArray' to 'const std::string &'
> c:\MyCodes\QtImageViewer\QtSlicerTest.cxx   39           QtSlicer
>
>
>
> I am using qt4.8.5 and itk 4.4.2 version.
>
> I did not change anything in CmakeLists fie. I copied the entire folder
> QtImageViewer somewhere else in my computer and run Cmake (2.8.11.2) for
> configuration then I run VS. 2008 to build it.
>
> Please can you help? I am really stuck.
>
> Thanks,
>
> Adem.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list