Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error

2011-08-18 Thread Michael Barton
Guillaume,

You might try my binaries for GRASS 7 (and other versions). You can get them at 
hhttp://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/. 
There is an accompanying text file (frameworks.txt) that tells which version of 
William's frameworks are needed. 

If these work, you can try a compilation. Here is my configure string:

./configure --with-freetype 
--with-freetype-includes=/Library/Frameworks/FreeType.framework/unix/include/freetype2
 /Library/Frameworks/FreeType.framework/unix/include 
--with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib 
--with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with-proj 
--with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include 
--with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib 
--with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj 
--with-geos=/Library/Frameworks/GEOS.framework/Programs/geos-config 
--with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include 
--with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib 
--with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include 
--with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib 
--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include 
--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib 
--with-cairo 
--with-cairo-includes=/Library/Frameworks/cairo.framework/unix/include/cairo 
/Library/Frameworks/cairo.framework/unix/include 
--with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib 
--with-cairo-ldflags=-lcairo --without-postgres --without-mysql --with-odbc 
--with-sqlite --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib 
--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include 
--with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include 
--with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-x 
--with-cxx --with-opengl=aqua --without-readline --prefix=/Applications/GRASS 
--enable-macosx-app --with-python 
--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config 
--with-tcltk-includes=/Library/Frameworks/Tcl.framework/Headers 
/Library/Frameworks/Tk.framework/Headers 
/Library/Frameworks/Tk.framework/PrivateHeaders 
--with-tcltk-libs=/usr/local/tcltk_active/lib --with-macosx-archs=i386 
x86_64

For TclTk, I use the ActiveStates binary for TclTk 8.5 aqua but have created 
links to it in a special directory in /usr/local, following William's 
suggestion. Otherwise, you need to edit platform_make. You also need to edit 
bundle_make to create a package that includes wxPython if you want to 
distribute this to others. William (or I) can give you directions on how to do 
so if you want to do it.

Here are the instructions for dealing with TclTk after you install the 
ActiveStates 8.5 binary (8.6 won't work I'm told). 

Create a folder...

/usr/local/tcltk_active/lib/...

make links to the ActiveTcl framework binaries

libtcl.dylib - /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
libtcl8.5.dylib - /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
libtclstub8.5.a - 
/Library/Frameworks/Tcl.framework/Versions/8.5/libtclstub8.5.a
libtk.dylib - /Library/Frameworks/Tk.framework/Versions/8.5/Tk
libtk8.5.dylib - /Library/Frameworks/Tk.framework/Versions/8.5/Tk
libtkstub8.5.a - /Library/Frameworks/Tk.framework/Versions/8.5/libtkstub8.5.a


Then configure grass with:

--with-tcltk-includes=/Library/Frameworks/Tcl.framework/Headers / 
Library/Frameworks/Tk.framework/Headers /Library/Frameworks/ 
Tk.framework/PrivateHeaders --with-tcltk-libs=/usr/local/tcltk_active/ 
lib


Michael

C. Michael Barton
Director, Center for Social Dynamics  Complexity 
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:  480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu











On Aug 19, 2011, at 9:00 AM, grass-user-requ...@lists.osgeo.org 
grass-user-requ...@lists.osgeo.org wrote:

 Date: Thu, 18 Aug 2011 10:22:54 +0800
 From: guillaume.ducl...@csiro.au
 Subject: Re: [GRASS-user] troubles installing r.fuzzy.system add-on on
Mac OSX (GRASS 6.4.1) + NVIZ compilation error
 To: kyngch...@kyngchaos.com
 Cc: grass-user@lists.osgeo.org, jar...@amu.edu.pl
 Message-ID: 841c6f38-10ee-48b0-b295-e13725838...@csiro.au
 Content-Type: text/plain; charset=Windows-1252
 
 Thanks for the tip. I'll give a try at modbuild.
 Although, Jarek advised me to upgrade to Grass 7.0, which I tried but 
 encountered a known compilation problem with NVIZ (something related to Tk).
 
 GRASS GIS compilation log
 -
 Started compilation: Wed 17 Aug 2011 22:50:58 WST
 --
 Errors in:
 /usr/local/src/grass_trunk/visualization/nviz
 
 
 This seems similar to this post:
 http://osgeo-org.1803224.n2

Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error

2011-08-17 Thread Guillaume.Duclaux
Thanks for the tip. I'll give a try at modbuild.
Although, Jarek advised me to upgrade to Grass 7.0, which I tried but 
encountered a known compilation problem with NVIZ (something related to Tk).

GRASS GIS compilation log
-
Started compilation: Wed 17 Aug 2011 22:50:58 WST
--
Errors in:
/usr/local/src/grass_trunk/visualization/nviz


This seems similar to this post:
http://osgeo-org.1803224.n2.nabble.com/wxnviz-on-mac-osx-grass7-0-td5439863.html

I can't find out the fix for this one in the post. I looked in the 
macOSX/readme and followed  the TclTk guidance (ie: installed TclTk 8.5 from 
ActiveState, created the links), but the compilation still fails.

Here is the configure arguments I used:

./configure --with-opengl=aqua --enable-macosx-app 
--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config 
--prefix=/Applications --x-includes=/usr/X11R6/include 
--x-libraries=/usr/X11R6/lib --with-fftw-includes=/usr/local/include/ 
--with-fftw-libs=/usr/local/lib/ 
--with-tcltk-includes=/Library/Frameworks/Tcl.framework/Headers 
/Library/Frameworks/Tk.framework/Headers 
/Library/Frameworks/Tk.framework/PrivateHeaders 
--with-tcltk-libs=/usr/local/lib --with-x --with-python --without-motif 
--without-glw

and get the following prompt message:

checking host system type... i386-apple-darwin10.8.0
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /usr/local/src/grass_trunk
checking for build directory... /usr/local/src/grass_trunk
checking for svnversion... /opt/subversion/bin/svnversion
checking for MacOSX App... yes
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /opt/local/bin/perl
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for limits.h... yes
checking for termio.h... no
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... no
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... no
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... no
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... yes
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for library containing cuserid... no
checking for xdrmem_create... yes
checking for asprintf... yes
checking for atan... yes
checking for dlsym... yes
checking for iconv... no
checking for iconv in -liconv... yes
checking for socket... yes
checking for location of zlib includes...
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes...
checking for proj_api.h... yes
checking External PROJ.4 version... 470
checking for location of External PROJ.4 library...
checking for pj_get_def in -lproj... yes
checking for location of External PROJ.4 data files...
configure: warning: *** External PROJ.4 directory not specified; default will 
be used
checking for /usr/local/share/proj/epsg... yes
checking for nad2bin... /usr/local/bin/nad2bin
checking whether to use regex... yes
checking 

Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error

2011-08-17 Thread William Kyngesburye
I haven't tried compiling GRASS 7 in a while, so I don't know what might be 
wrong.

On Aug 17, 2011, at 9:22 PM, guillaume.ducl...@csiro.au 
guillaume.ducl...@csiro.au wrote:

 Thanks for the tip. I'll give a try at modbuild.
 Although, Jarek advised me to upgrade to Grass 7.0, which I tried but 
 encountered a known compilation problem with NVIZ (something related to Tk).
 
 GRASS GIS compilation log
 -
 Started compilation: Wed 17 Aug 2011 22:50:58 WST
 --
 Errors in:
 /usr/local/src/grass_trunk/visualization/nviz
 
 
 This seems similar to this post:
 http://osgeo-org.1803224.n2.nabble.com/wxnviz-on-mac-osx-grass7-0-td5439863.html
 
 I can't find out the fix for this one in the post. I looked in the 
 macOSX/readme and followed  the TclTk guidance (ie: installed TclTk 8.5 from 
 ActiveState, created the links), but the compilation still fails.
 
 Here is the configure arguments I used:
 
 ./configure --with-opengl=aqua --enable-macosx-app 
 --with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config 
 --prefix=/Applications --x-includes=/usr/X11R6/include 
 --x-libraries=/usr/X11R6/lib --with-fftw-includes=/usr/local/include/ 
 --with-fftw-libs=/usr/local/lib/ 
 --with-tcltk-includes=/Library/Frameworks/Tcl.framework/Headers 
 /Library/Frameworks/Tk.framework/Headers 
 /Library/Frameworks/Tk.framework/PrivateHeaders 
 --with-tcltk-libs=/usr/local/lib --with-x --with-python --without-motif 
 --without-glw
 

-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that 
remind me of?  Ah, yes - life.

- Marvin


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user