[GRASSLIST:3282] Re: Trouble with glBegin and Mesa

Hamish hamish_nospam at yahoo.com
Tue Apr 27 03:46:22 EDT 2004


> I have recently changed to Debian and am trying to build GRASS.
[...]
> I am working with Debian "Woody", 2.4 kernal on imac(bondi blue g3 
> PPC) and GRASS source 5.0.3.

the attached instructions might help. It's easy enough.
Sorry for the confusing cut-and-paste job.


> Debian has a grass package but from what I understand it's in the
> unstable release and its probably better to build from scratch anyway.

5.0.3 is in both the testing and unstable branches. It should be
possible to recompile the Debian package for woody[*], but you're right,
it's probably better to build from source at this point. I'm pretty sure
NVIZ is currently broken in the GRASS package too, because it doesn't
like Debian's tcl/tk8.4. (someone please speak up if I'm wrong)

[*] recompile & install with these two commands: (-t may take setup, RTM)
      apt-get -t testing --build source grass
      su -c "dpkg -i grass-x.y.z-1.deb"


good luck,
Hamish




##############################################

CFLAGS="-O3 -march=i686 -Wall" LDFLAGS="-s" ./configure \
        --with-tcltk-includes=/usr/include/tcl8.3 \
        --with-postgres-includes=/usr/include/postgresql \
        --with-motif --with-motif-includes=/usr/X11R6/include \
        --with-freetype --with-freetype-includes=/usr/include/freetype2 \
        --with-glw \
        --with-readline \
        2>&1 | tee config_log.txt

$> make
#> make install


##############################################

The following gets pretty much everthing config'd in for me with a stock
installation of the current (feb 2002) Debian Woody 3.0. Any packages I
already had installed, well add them too- but I don't know what they
are. I have not shifted any files or set up any special links that I can
think of. Some of these packages may not really be needed..

apt-file was used for most of this discovery. It's a great utility.

 
.deb Package       Provides..
---------------------------------
libncurses5-dev    curses.h
zlib1g-dev         zip fn's
libjpegb2-dev                    \
libtiff3g-dev                     |- graphics
# superseded  libpng2-dev        /
libpng-dev                      /
# superseded  libgd-dev          gif/png support
libgd2-dev          gif/png support
# no longer exists  task-tcltk-dev    Tcl/Tk widgets 8.3
tk8.3-dev          Tcl/Tk 8.3 development files. As of 5.0.0, Tk8.4 breaks NVIZ
#tk8.4-dev         Tcl/Tk 8.4 Development Files. Depends on needed Tcl bits.
fftw-dev           FFT Libraries
postgresql-dev     PostgreSQL
libsqlxx-dev       ODBC ? conflicts with unixodbc-dev?
libgdbm-dev        DBM  (Use libgdbmg1-dev for Woody) (unneded)
unixodbc-dev       ODBC
libfreetype6-dev   Freetype
libmotif-dev       Motif
blas-dev           BLAS (unneeded)
lapack-dev         LAPACK  (unneeded)
g77-3.0            for BLAS (& lapack as well??)
f2c                for BLAS (libf2c) unneeded?
 
and I use the following config line:
 
./configure --with-tcltk-includes=/usr/include/tcl8.3 \
    --with-postgres-includes=/usr/include/postgresql --with-motif
    --with-motif-includes=/usr/X11R6/include --with-freetype \
    --with-freetype-includes=/usr/include/freetype2 \
    2>&1 | tee config_log.txt


##############################################


Debian/testing package Reqs for GRASS 5.0.3, 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 install
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-dev     # for GDAL
libfreetype6-dev # for Freetype Fonts (broken)

make             # won't get far without this..
g++              # for r.terraflow
 
optional:
gdal-bin         # for GDAL utils
proj             # for PROJ.4




More information about the grass-user mailing list