[GRASSLIST:5842] Problem compiling Grass Mac OS X

Niwa Concept - Oriental Gardens contact at niwaconcept.com
Mon Mar 24 05:40:03 EST 2003


Hi

I have downloaded the Grass 5.0.1 sources to install on Mac OS X.

I have installed GD 2, Gdal 1.1.8, PostgreSQL 7.3.2 + PostGIS 0.74, 
UnixODBC 2.2.4, Tiff, Jpeg, Zlib, FFTW and TclTkAquaBI-8.4.1.0 for 
Jaguar.

I have linked tcl tk like this :
ln -s /Library/Frameworks/Tcl.framework/Versions/8.4/Headers/tcl.h 
/usr/local/include
ln -s /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h 
/usr/local/include
ln -s /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h 
/usr/local/include
ln -s /Library/Tcl/tclx8.4/libtclx8.4.dylib /usr/local/lib
ln -s /Library/Tcl/tclx8.4/libtclx8.4.dylib /usr/local/lib/libtcl.dylib

My problem is that when I run the Configure, it doesn't find the TK 
library. Where it is situated ?
It stoped with this message :

./configure --enable-w11 --with-jpeg --with-tiff --with-png --with-gd 
--with-tcltk --with-postgres --with-opengl --with-odbc --with-fftw 
--with-freetype --with-gdal=/usr/local/bin/pg_config 
--with-includes=/usr/local/include --with-libs=/usr/local/lib 
--without-readline --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-includes=/usr/local/include/postgresql/internal 
--with-postgres-libs=/usr/local/lib --with-opengl-libs=/usr/X11R6/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 
--with-freetype-includes=/usr/X11R6/include/freetype2 
--with-freetype-libs=/usr/X11R6/lib 
--with-glw-includes=/usr/X11R6/include/GL 
--with-glw-libs=/usr/X11R6/lib --with-x

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... /usr/local/include
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.4
checking Tk version... 8.4
checking for location of Tcl/Tk library... /usr/local/lib
checking for Tcl_Init in -ltcl... yes
checking for Tk_MainWindow in -ltk... no
checking for Tk_MainWindow in -ltk... no
checking for Tk_MainWindow in -ltk8.4... no
checking for Tk_MainWindow in -ltk8.4... no
checking for Tk_MainWindow in -ltk84... no
checking for Tk_MainWindow in -ltk84... no
configure: error: *** Unable to locate Tk library.

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.
So I just need in fact to likn the TK library to get it working.
If someone could help me.
Thank you.

Without tcltk :

GRASS is now configured for powerpc-apple-darwin6.4

   Source directory:          
/Volumes/Utilisateurs/Users/aymeric/Desktop/grass5.0.1
   Build directory:           /Users/aymeric/Desktop/grass5.0.1
   Installation directory:    /usr/local//grass5
   C compiler:                gcc -g -O2  -D__W98__
   FORTRAN compiler:

   NVIZ:                       no

   X11 support:                yes
   DBM support:                no
   JPEG support:               yes
   TIFF support:               yes
   PNG support:                yes
   GD support:                 yes
   Tcl/Tk support:             no
   PostgreSQL support:         yes
   OpenGL(R) support:          yes
   ODBC support:               yes
   FFTW support:               yes
   BLAS support:               no
   LAPACK support:             no
   Motif support:              no
   FreeType support:           yes
   GLw support:                no
   NLS support:                no
   Readline support:           no




More information about the grass-user mailing list