<div dir="ltr"><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font color="#000000" size="3" face="Calibri"></font></span> </p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">Hi all,</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">I am trying to bluid QtImageViewer as a separate project from insightapplications.</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">I configured it successfully using Cmake (apart having a: WARNING: you are
using the obsolete 'GLU' package, please use 'OpenGL' instead).</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">When it comes to build I got the following errors:</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font color="#000000" size="3" face="Calibri"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>1<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>25<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>2<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>27<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>3<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>29<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>4<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>31<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>5<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>61<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>6<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>63<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>7<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>74<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>8<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>82<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>9<span> </span>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.<span> </span>c:\MyCodes\QtImageViewer\QtSlicer.cxx<span> </span>90<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>10<span> </span>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'<span> </span>c:\tools\itk_4.4.2\itk_4.4.2\modules\core\common\include\itkImportImageContainer.hxx<span> </span>72<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Warning<span> </span>11<span> </span>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'<span> </span>c:\tools\itk_4.4.2\itk_4.4.2\modules\core\common\include\itkImportImageContainer.hxx<span> </span>72<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>12<span> </span>error C2039: 'useDiscrete' : is not a member of
'itk::ColorTable<TPixel>'<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>83<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>13<span> </span>error C2039: 'color' : is not a member of
'itk::ColorTable<TPixel>'<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>544<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>14<span> </span>error C2227: left of '->GetRed' must point to
class/struct/union/generic type<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>544<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>15<span> </span>error C2039: 'color' : is not a member of
'itk::ColorTable<TPixel>'<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>546<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>16<span> </span>error C2227: left of '->GetGreen' must point to
class/struct/union/generic type<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>546<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>17<span> </span>error C2039: 'color' : is not a member of 'itk::ColorTable<TPixel>'<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>548<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>18<span> </span>error C2227: left of '->GetBlue' must point to
class/struct/union/generic type<span> </span>c:\MyCodes\QtImageViewer\QtGlSliceView.cxx<span> </span>548<span> </span>QtSlicer</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font face="Calibri"><font size="3"><font color="#000000">Error<span> </span>19<span> </span>error C2664: 'itk::ImageFileReader<TOutputImage>::SetFileName'
: cannot convert parameter 1 from 'QByteArray' to 'const std::string &'<span> </span>c:\MyCodes\QtImageViewer\QtSlicerTest.cxx<span> </span>39<span> </span>QtSlicer</font></font></font></span></p>
<font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font color="#000000" size="3" face="Calibri"> </font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">I am using qt4.8.5 and itk 4.4.2 version.</font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font color="#000000"><font face="Calibri"><span lang="EN">I did not change anything in</span><span lang="EN"> </span><span lang="EN">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. </span></font></font></font></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">Please can you help? I am really stuck. </font></font></font></span></p><font color="#000000" size="3" face="Times New Roman">
</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span lang="EN"><font size="3"><font color="#000000"><font face="Calibri">Thanks,</font></font></font></span></p><div><font color="#000000" size="3" face="Times New Roman">
</font></div><div><font color="#000000" size="3" face="Times New Roman">Adem.</font></div></div>