[Insight-users] problem building on linux
Luis Ibanez
luis.ibanez@kitware.com
Mon, 11 Nov 2002 09:52:09 -0500
Hi Ghassan,
Enabling USE_GLUT is usually not enough.
You may have to make sure that CMake actually
find the GLUT components.
Please enable the "advanced" options and
check that the variables
GLUT_INCLUDE_DIR
GLUT_glut_LIBRARY
are correctly defined.
The problem with GLUT is that its installation
is pretty arbitrary, so there is not an easy
way to find its components automatically.
The option seems to be to ask the user about
where the components are.
Once again:
GLUT is not a requirement for ITK
nor are FLTK,VTK or OpenGL. Those are only
used by Applications distributed with ITK.
Luis
========================================
Ghassan Hamarneh wrote:
> Hi,
>
> I am also having this error when I set USE_GLUT = ON (related to the
> ImageViewer), advice?
>
> Thank you!
>
> /Ghassan.
>
>
> /usr/bin/g++ -rdynamic -ftemplate-depth-50 itkImageViewer.o
> -L/lhome/ghassan/Insight/bin -L/lhome/ghassan/VTK/bin -L/usr/X11R6/lib
> -lpthread -ldl -lpthread -ldl -lm -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11
> -lXext -lm -lITKAlgorithms -lVXLNumerics -lITKCommon -lITKBasicFilters
> -lVXLNumerics -lITKCommon -lITKIO -lITKGlut -lglut -lXmu -lXi -lGLU -lGL
> -lITKIO -lITKGlut -lITKNumerics -litkpng -litkzlib -lITKMetaIO -lITKCommon
> -lVXLNumerics -lGL -lpthread -lm -ldl -lXt -lSM -lICE -L/usr/X11R6/lib -lX11
> -lXext
> -Wl,-rpath,/lhome/ghassan/Insight/bin:/lhome/ghassan/VTK/bin:/usr/X11R6/lib -o
> /lhome/ghassan/Insight/bin/ImageViewer
> itkImageViewer.o: In function `itk::ImageViewer<itk::Image<float, 3>
>
>>::StartInteraction(void)':
>>
> itkImageViewer.o(.itk::ImageViewer<itk::Image<float, 3>