[Insight-users] GlutMaster build err - a fix

Luis Ibanez luis.ibanez@kitware.com
Mon, 21 Oct 2002 15:44:08 -0400


Hi Dean,

Thanks a lot for the fix to get around
the bug in glut.h

It was added to the ITKFindGLUT.cmake
file in Insight/Utilities and seems to
be working ok in Linux and Windows.

Also, a file ITKFindOpenGL.cmake was added
to Insight/Utilities in order to account
for the configuration of OpenGL and Glu.

This will be unecessary with the next
release of CMake.

Please let us know if this works ok with
Borland.

Thanks again,

   Luis

===========================================

Dean Inglis wrote:
> Hi,
> 
> I found a fix modelled after VTK's build of
> ftgl library: (VTK/Utilities/ftgl/CMakeLists.txt)
> 
>     IF (WIN32)
>       # - Avoid the glutCreateMenu_ATEXIT_HACK pb.
>       # - Sort-of a hack to avoid the bug in glut.h to avoid
>       #   ambiguity between 'std::exit(int)' and 'std::exit(int)' in
> function
>       ADD_DEFINITIONS (-DGLUT_DISABLE_ATEXIT_HACK)
>       ADD_DEFINITIONS (-DGLUT_BUILDING_LIB)
>     ENDIF (WIN32)
> 
> if added to the Insight/Utilities/GlutMaster/CMakeLists.txt file,
> this fixes the ambiguity with exit()...
> 
> Dean
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
> 
>