[GRASS5] OpenGL GL/gl.h not found and fftw

Hi,
  I'm compiling grass 5.7.0 from the sources and I'm unable to find how to
include OpenGL.
   I tried "--with-opengl-includes=/usr/X11R6/include/" because gl.h
"lives" in /usr/X11R6/include/GL/ but I received a message that gl.h is
not available.
   I'm using Debian SID, and I also have the xlibmesa packages installed
on my system.
   Does anybody knows which are the correct flags ?

   By the way I'm very curious about what is for "fftw".

   Thanks

     D.

-----------------------------------------
Stay ahead of the information curve.
Receive GIS news and jobs on your desktop daily.
Subscribe today to the GIS CafeNews newsletter.
[ http://www10.giscafe.com/nl/newsletter_subscribe.php ]
It's informative and essential.

-----------------------------------------
Stay ahead of the information curve.
Receive GIS news and jobs on your desktop daily.
Subscribe today to the GIS CafeNews newsletter.
[ http://www10.giscafe.com/nl/newsletter_subscribe.php ]
It's informative and essential.

DrakeGis wrote:

  I'm compiling grass 5.7.0 from the sources and I'm unable to find how to
include OpenGL.
   I tried "--with-opengl-includes=/usr/X11R6/include/" because gl.h
"lives" in /usr/X11R6/include/GL/ but I received a message that gl.h is
not available.
   I'm using Debian SID, and I also have the xlibmesa packages installed
on my system.
   Does anybody knows which are the correct flags ?

You shouldn't need additional switches; the X switches are added
automatically for the OpenGL checks.

If the <GL/gl.h> check fails, it's usually because preprocessing that
file generated either error or warning messages. Look in the
config.log file which configure creates; there should be a couple of
lines like:

configure:9725: checking for GL/gl.h
configure:9733: gcc -E -I/usr/X11R6/include conftest.c >/dev/null 2>conftest.out

If any error/warning messages were generated, they will follow.

BTW, if you have installed nVidia's OpenGL package, you need to delete
(or move) the headers, as they are known not to work.

   By the way I'm very curious about what is for "fftw".

FFTW is a Fast Fourier Transform (FFT) library. It is used by the
programs i.fft, i.zc, i.shape and r.surf.fractal. If you don't need
these programs, you can use --without-fftw. Otherwise, you need FFTW
2.x installed (neither 1.x nor 3.x will work); see www.fftw.org for
more information.

--
Glynn Clements <glynn.clements@virgin.net>

  I'm compiling grass 5.7.0 from the sources and I'm unable to find
  how to include OpenGL.
   I tried "--with-opengl-includes=/usr/X11R6/include/" because gl.h
"lives" in /usr/X11R6/include/GL/ but I received a message that gl.h
is not available.
   I'm using Debian SID, and I also have the xlibmesa packages
   installed on my system.
   Does anybody knows which are the correct flags ?

Use 'apt-file search gl.h' to find what package it comes from:

Are the xlibmesa-gl-dev and xlibmesa-glu-dev packages installed?

GRASS 5.7 config for Debian:

get latest CVS version of GRASS 5.3
get latest CVS version of GRASS 5.7

CFLAGS="-march=pentium4 -Wall" ./configure \
    --with-grass50=/usr/src/grass/grass53 \
    --with-tcltk-includes=/usr/include/tcl8.3 \
    --with-postgres-includes=/usr/include/postgresql \
    --with-motif --with-motif-includes=/usr/X11R6/include \
    --with-readline --with-gdal --with-cxx --with-glw \
    --with-freetype --with-freetype-includes=/usr/include/freetype2 \
    2>&1 | tee config_log.txt

make mix
make

To run GRASS 5.7, simply start
./bin.$ARCH/grass57

5.0.3 debian package reqs, Jan 22, 2004

gcc # for compile
libc6-dev # for basics
flex # for lex
bison # for yacc
libncurses5-dev # for curses
zlib1g-dev # zlib
libreadline4-dev # readline
libjpeg62-dev or libjpeg-mmx-dev # for JPEG support
libtiff3g-dev # for TIFF support
libpng12-dev # for PNG support
libgd2-xpm-dev # for GD 2.0 (unneed for GRASS > 5.0.x)
libg2-dev # for GD 2.0 (unneed for GRASS > 5.0.x)
tcl8.3-dev # for TCL
tk8.3-dev # for TK
postgresql # for Postgresql support ???
postgresql-dev # for Postgresql support ???
xlibmesa-gl-dev # for OpenGL
libstdc++5-3.3-dev # for glu-dev
xlibmesa-glu-dev # for OpenGL
unixodbc-dev # for ODBC
fftw-dev # for FFT functions
lesstif2-dev # for Motif

libgdal1 # for GDAL
libgdal1-dev # for GDAL
libfreetype6-dev # for Freetype Fonts

make # won't get far without this..
g++ # for r.terraflow

gdal-bin # for GDAL
proj # for PROJ.4

You can now use the GDAL and PROJ packages from Debian to compile GRASS.

   By the way I'm very curious about what is for "fftw".

"Description: Library for computing Fast Fourier Transforms
This library computes FFTs in one or more dimensions. It
is extremely fast."

used in imagery modules, e.g. i.fft

Hamish