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
[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 r.fuzzy.system 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 r.fuzzy.system... 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