[GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1)
Hi GRASS gurus, I've been trying to install the r.fuzzy.system add-on to my GRASS' local copy (Mac OSX 10.6.8, binary installed from: http://www.kyngchaos.com/software/grass - thanks for the installer btw!). Unfortunately I had no luck with compiling and installing the add-on yet. I've tried 2 approaches: * the g.extension add-on manager * and brutal force (svn co + make) See details below. In the GUI, using the add-on extension manager, I get the following errors: g.extension extension=r.fuzzy.system svnurl=https://svn.osgeo.org/grass/grass-addons Fetching from GRASS-Addons SVN (be patient)... Ar.fuzzy.system/flood.map Ar.fuzzy.system/helpers.c Ar.fuzzy.system/local_proto.h Ar.fuzzy.system/flood.rul Ar.fuzzy.system/rule_parser.c Ar.fuzzy.system/main.c Ar.fuzzy.system/system.c Ar.fuzzy.system/description.html Ar.fuzzy.system/f_result.png Ar.fuzzy.system/fuzzylogic.c Ar.fuzzy.system/io.c Ar.fuzzy.system/map_parser.c Ar.fuzzy.system/Makefile U r.fuzzy.system Checked out revision 47679. Compiling ... mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include/grass mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/bin mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/etc mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/driver mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/driver/db mkdir -p /Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/fonts test -d OBJ.i386-apple-darwin10.7.0 || mkdir -p OBJ.i386-apple-darwin10.7.0 gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/fuzzylogic.o -c fuzzylogic.c gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/helpers.o -c helpers.c gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/io.o -c io.c gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/main.o -c main.c gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/map_parser.o -c map_parser.c map_parser.c: In function ‘parse_map_file’: map_parser.c:43: warning: unknown conversion type character ‘>’ in format map_parser.c: In function ‘parse_map_file’: map_parser.c:43: warning: unknown conversion type character ‘>’ in format gcc -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Applications/GRASS-6.4.app/Contents/MacOS/include -I/Users/duc025/grass/newLocation/PERMANENT/.tmp/mac.local/44775.0/dist/include -o OBJ.i386-apple-darwin10.7.0/rule_parser.o -c ru
Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1)
I'm not sure how well g.extension works in GRASS 6.4. Alternatively, I still include the modbuild hack. See the readme in /Library/GRASS/6.4/modbuild, it's a little different than your brute force attempt. On Aug 16, 2011, at 11:08 AM, wrote: > Hi GRASS gurus, > > I've been trying to install the r.fuzzy.system add-on to my GRASS' local copy > (Mac OSX 10.6.8, binary installed from: > http://www.kyngchaos.com/software/grass - thanks for the installer btw!). > > Unfortunately I had no luck with compiling and installing the add-on yet. > I've tried 2 approaches: > * the g.extension add-on manager > * and brutal force (svn co + make) > See details below. > ... > Then, in a terminal, after checking out the source files for the > r.fuzzy.system add-on from svn, got the following errors: > > GRASS 6.4.1 (newLocation):~/grass/fuzzySystem/r.fuzzy.system > make > MODULE_TOPDIR=/Applications/GRASS-6.4.app/Contents/MacOS/ > test -d OBJ.i386-apple-darwin10.7.0 || mkdir -p OBJ.i386-apple-darwin10.7.0 > gcc > -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include > -Os -fexceptions -arch i386 -arch x86_64 -DPACKAGE=\""grassmods"\" > -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include > -o OBJ.i386-apple-darwin10.7.0/fuzzylogic.o -c fuzzylogic.c > In file included from fuzzylogic.c:1: > local_proto.h:5:23: error: grass/gis.h: No such file or directory > local_proto.h:6:27: error: grass/glocale.h: No such file or directory > In file included from fuzzylogic.c:1: > local_proto.h:106: error: expected specifier-qualifier-list before > ‘RASTER_MAP_TYPE’ > local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’ > local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’ > local_proto.h:185: error: expected ‘)’ before ‘cell’ > fuzzylogic.c:3: error: expected ‘)’ before ‘cell’ > In file included from fuzzylogic.c:1: > local_proto.h:5:23: error: grass/gis.h: No such file or directory > local_proto.h:6:27: error: grass/glocale.h: No such file or directory > In file included from fuzzylogic.c:1: > local_proto.h:106: error: expected specifier-qualifier-list before > ‘RASTER_MAP_TYPE’ > local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’ > local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’ > local_proto.h:185: error: expected ‘)’ before ‘cell’ > fuzzylogic.c:3: error: expected ‘)’ before ‘cell’ > lipo: can't figure out the architecture type of: > /var/folders/F1/F1w0tzFYEbiJcYgLf9+MhTI/-Tmp-//cchVfFcE.out > make: *** [OBJ.i386-apple-darwin10.7.0/fuzzylogic.o] Error 1 > > > I found a few posts that seem to highlight similar issues on various > architectures: http://trac.osgeo.org/grass/ticket/620, > http://comments.gmane.org/gmane.comp.gis.grass.user/39745 > But I didn't find the solution. > > Hopefully someone will be able to help me here... I'm kind of stuck! > > Cheers > > Guillaume - William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error
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 f
Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error
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, 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 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
Re: [GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1) + NVIZ compilation error
Guillaume, You might try my binaries for GRASS 7 (and other versions). You can get them at http://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, wrote: > Date: Thu, 18 Aug 2011 10:22:54 +0800 > From: > Subject: Re: [GRASS-user] troubles installing r.fuzzy.system add-on on >Mac OSX (GRASS 6.4.1) + NVIZ compilation error > To: > 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: