[GRASSLIST:5846] Re: Problem compiling Grass Mac OS X

Glynn Clements glynn.clements at virgin.net
Mon Mar 24 09:31:33 EST 2003


Niwa Concept - Oriental Gardens wrote:

> ./configure --enable-w11 --with-jpeg --with-tiff --with-png --with-gd 

Do not use --enable-w11 on anything other than Windows.

> I have tried to run the Configure without tcltk, all works fine fine, 
> except I can't have Nviz that needs tcltk to be able to compile.

More precisely, NVIZ needs the Unix/X11 version of Tcl/Tk, as well as
the Unix/X11 version of OpenGL. The "native" MacOS X versions of these
packages won't work with NVIZ.

A compatible OpenGL library should be included with X. I don't know
about binary packages, but you can obtain the Tcl/Tk source code from:

	http://tcl.sourceforge.net/

BTW, most of the switches which you used are unnecessary, e.g.:

1. All of these:

	--with-jpeg --with-tiff --with-png --with-gd --with-tcltk
	--with-postgres --with-opengl --with-odbc --with-fftw
	--with-x

are enabled by default.

2. If you use:

	--with-includes=/usr/local/include --with-libs=/usr/local/lib 

then those directories will be searched for *all* headers/libraries,
so you don't need to use:

	--with-gd-includes=/usr/local/include --with-gd-libs=/usr/local/lib
	--with-tcltk-includes=/usr/local/include
	--with-tcltk-libs=/usr/local/lib --with-postgres-libs=/usr/local/lib
	--with-odbc-includes=/usr/local/include
	--with-odbc-libs=/usr/local/lib
	--with-fftw-includes=/usr/local/include
	--with-fftw-libs=/usr/local/lib

Also, this is wrong:

	--with-gdal=/usr/local/bin/pg_config

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




More information about the grass-user mailing list