[Insight-users] Build error with SNAP in InsightApplications-2.8.1

Luis Ibanez luis.ibanez at kitware.com
Thu Sep 14 10:58:05 EDT 2006


Hi Martin,


Please try the following:


     Change the declaration of TessCallback in
     line 25 of the file PolygonScanConvert.cxx
     to be:

            typedef GLvoid (*TessCallback)();

     instead of the current:

            typedef void (*TessCallback)();



Please let us know if that works,


    Thanks


       Luis



=======================
Martin M Connell wrote:
> I have found SNAP to be an interesting application and have modified a 
> previous
> version (2.0.0) to store the 3d surface as an STL file using STLWriter 
> in VTK.
> The following error is generated when trying to compile the SNAP 
> application
> in InsightApplications-2.8.1.
> The compiler is gcc version 3.3.2 with fltk-1.1.6 and VTK4.4 on Solaris 8.
> I have tried casting (gluTessCallback(tess,(GLenum) GLU_TESS_VERTEX, 
> (GLvoid(*)(void)) glVertex3dv) ) without success.
> Can anyone suggest a solution to this problem?
> 
> Martin Connell
> ******************************************************************************* 
> 
> Building CXX object
> SNAP/CMakeFiles/itksnapui.dir/UserInterface/SliceWindow/PolygonScanConvert.o 
> 
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx: 
> 
> In
>      static member function `static void
>      PolygonScanConvertBase::RasterizeFilled(double*, unsigned int,
> unsigned int,
>      unsigned int, unsigned int, void*)':
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx:49: 
> 
> error:
> invalid
>      conversion from `void (*)()' to `GLvoid (*)(...)'
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx:50: 
> 
> error:
> invalid
>      conversion from `void (*)()' to `GLvoid (*)(...)'
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx:51: 
> 
> error:
> invalid
>      conversion from `void (*)()' to `GLvoid (*)(...)'
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx:53: 
> 
> error:
> invalid
>      conversion from `void (*)()' to `GLvoid (*)(...)'
> /image6/itk/InsightApplications-2.8.1/SNAP/UserInterface/SliceWindow/PolygonScanConvert.cxx:55: 
> 
> error:
> invalid
>      conversion from `void (*)()' to `GLvoid (*)(...)'
> gmake[2]: ***
> [SNAP/CMakeFiles/itksnapui.dir/UserInterface/SliceWindow/PolygonScanConvert.o] 
> 
> Error 1
> gmake[1]: *** [SNAP/CMakeFiles/itksnapui.dir/all] Error 2
> g
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 




More information about the Insight-users mailing list