[Insight-users] Insight Applications GLSliceView.h error

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 10 05:10:47 EST 2010


Hi Sylvain,

Please try this patch, and let us know if that helps.


     Thanks


          Luis

-------------------------------------
diff --git a/Auxiliary/FltkImageViewer/GLSliceView.h
b/Auxiliary/FltkImageViewer/GLSliceView.h
index 1e232f5..c165a86 100644
--- a/Auxiliary/FltkImageViewer/GLSliceView.h
+++ b/Auxiliary/FltkImageViewer/GLSliceView.h
@@ -295,7 +295,7 @@ SetInputImage(ImageType * newImData)
 //
 //
 template <class ImagePixelType, class OverlayPixelType>
-const typename Image<ImagePixelType,3>::Pointer &
+const typename GLSliceView<ImagePixelType, OverlayPixelType>::ImagePointer &
 GLSliceView<ImagePixelType, OverlayPixelType>
 ::GetInputImage(void) const
   {



------------------------------------------
On Mon, Dec 6, 2010 at 4:12 PM, Sylvain Gouttard <gouttard at sci.utah.edu> wrote:
> Hi,
>
> I'm re-installing my computer with a new OS distribution: OpenSuse 11.3 and
> i'm having issues while compiling Insight Applications. I'm using gcc 4.5
>
> Here is the error i get:
> In file included from
> /scratch/gouttard/software/itkapp-bin/Auxiliary/FltkImageViewer/fltkImageViewerGUI.h:9:0,
> from
> /scratch/gouttard/software/itkapp-bin/Auxiliary/FltkImageViewer/fltkImageViewerGUI.cxx:3:
> /scratch/gouttard/software/ITKApps/Auxiliary/FltkImageViewer/GLSliceView.h:299:1:
> error: prototype for ‘const typename itk::Image<imType, 3u>::Pointer&
> itk::GLSliceView<ImagePixelType, OverlayPixelType>::GetInputImage() const’
> does not match any in class ‘itk::GLSliceView<ImagePixelType,
> OverlayPixelType>’
> /scratch/gouttard/software/ITKApps/Auxiliary/FltkImageViewer/GLSliceView.h:78:32:
> error: candidate is: virtual itk::GLSliceView<ImagePixelType,
> OverlayPixelType>::ImagePointer& itk::GLSliceView<ImagePixelType,
> OverlayPixelType>::GetInputImage() const
>
> I checked and there are no other GLSlicerView.h file on my system that could
> cause a conflict.
>
> Would you have an idea how to fix this problem?
> Thanks for your help,
> Sylvain
> _____________________________________
> 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.html
>
> 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 Insight-users mailing list