[GRASS-user] Problems with grass trunk

2011-08-17 Thread Daniel Victoria
Hi all,

Just updated my grass_trunk to revision 47690.

Issued make distclean; configure and make. No errors were reported,
except some warnings about unknown cairo display drivers.

When I run grass70 the welcome screen shows up and I choose my
location / mapset and then I get the error shown below. No gui is
displayed.

I'm running Ubuntu 9.10 (old distro - afraid to upgrade). Anyone knows
what's goin on?
Thanks
Daniel

GRASS 7.0.svn (nc_spm_08):~/grass/grass_trunk  Traceback (most recent
call last):
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/wxgui.py,
line 71, in module
from gui_modules import colorrules
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/gui_modules/colorrules.py,
line 45, in module
from nviz_mapdisp import wxUpdateProperties
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/gui_modules/nviz_mapdisp.py,
line 45, in module
import wxnviz
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/gui_modules/wxnviz.py,
line 31, in module
from grass.lib.ogsf  import *
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/python/grass/lib/ogsf.py,
line 23, in module
_libs[grass_ogsf.7.0.svn] = load_library(grass_ogsf.7.0.svn)
  File 
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/python/grass/lib/ctypes_loader.py,
line 57, in load_library
raise ImportError,%s not found. % libname
ImportError: grass_ogsf.7.0.svn not found.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Martin Landa
Hi,

2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 I'm running Ubuntu 9.10 (old distro - afraid to upgrade). Anyone knows
 what's goin on?

go to `lib/python/ctypes` and run

make clean ; make  log 21

and post the log file to see where it fails.

[...]

  File 
 /home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/python/grass/lib/ctypes_loader.py,
 line 57, in load_library
    raise ImportError,%s not found. % libname
 ImportError: grass_ogsf.7.0.svn not found.

In r47691 wxGUI starts even if GRASS ctypes libs are not available.

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Daniel Victoria
The log file is attached

Hope it sheds some light into the matter

Daniel


On Wed, Aug 17, 2011 at 9:16 AM, Martin Landa landa.mar...@gmail.com wrote:
 Hi,

 2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 I'm running Ubuntu 9.10 (old distro - afraid to upgrade). Anyone knows
 what's goin on?

 go to `lib/python/ctypes` and run

 make clean ; make  log 21

 and post the log file to see where it fails.

 [...]

  File 
 /home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/etc/python/grass/lib/ctypes_loader.py,
 line 57, in load_library
    raise ImportError,%s not found. % libname
 ImportError: grass_ogsf.7.0.svn not found.

 In r47691 wxGUI starts even if GRASS ctypes libs are not available.

 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa



log.ctypes
Description: Binary data
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Martin Landa
Hi,

2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 The log file is attached

 Hope it sheds some light into the matter

ogsf library is build successfully?

cd lib/ogsf
make clean; make

?

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Daniel Victoria
When I isso make on lib/ogsf I get:
make: Nothing to be done for `first`.

and that's all
Daniel

On Wed, Aug 17, 2011 at 10:05 AM, Martin Landa landa.mar...@gmail.com wrote:
 Hi,

 2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 The log file is attached

 Hope it sheds some light into the matter

 ogsf library is build successfully?

 cd lib/ogsf
 make clean; make

 ?

 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa

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


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Martin Landa
2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 When I isso make on lib/ogsf I get:
 make: Nothing to be done for `first`.

you must run before `make` `make clean`.

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] GRASS and MaxEnt 3.3.3e

2011-08-17 Thread Blumentrath, Stefan
Hi

Today I submitted two new scripts to the GRASS-Addons SVN repository, which 
should provide simple exchange of data between MaxEnt 3.3.3e and GRASS GIS.

r.out.maxent_swd is a shell script to produce a set of SWD files as input to 
MaxEnt 3.3.3e using r.stats.

r.maxent.lambdas is a shell script to compute raw and/or logistic prediction 
maps from a lambdas file produced with MaxEnt 3.3.3e.

I hope this will be useful for others as well and I would be happy about any 
kind of feedback...

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


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Daniel Victoria
I DID run make clean before make

Just did it again and once more, I get:
make: Nothing to be done for 'first'.

And just to be sure, I went to the grass_trunk directory, issued make
distclean and then went to /lib/ogsf and issued make.
A bunch of directories were created into dist.i686 but nothing was compiled...

Thanks
Daniel

On Wed, Aug 17, 2011 at 10:29 AM, Martin Landa landa.mar...@gmail.com wrote:
 2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 When I isso make on lib/ogsf I get:
 make: Nothing to be done for `first`.

 you must run before `make` `make clean`.

 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa

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


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Martin Landa
Hi,

2011/8/17 Daniel Victoria daniel.victo...@gmail.com:
 And just to be sure, I went to the grass_trunk directory, issued make
 distclean and then went to /lib/ogsf and issued make.
 A bunch of directories were created into dist.i686 but nothing was compiled...

no you need to run at least `make libs` from root dir to build other
libraries as gislib or rasterlib - before entering lib/ogsf.

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Problems with grass trunk

2011-08-17 Thread Martin Landa
Hi,

2011/8/17 Martin Landa landa.mar...@gmail.com:
 no you need to run at least `make libs` from root dir to build other
 libraries as gislib or rasterlib - before entering lib/ogsf.

strangely `make libs` just compiles shapelib, it's seems to be a bug.

$ ls dist.i686-pc-linux-gnu/lib/
libgrass_shape.7.0.svn.so  libgrass_shape.so

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
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)

2011-08-17 Thread William Kyngesburye
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, guillaume.ducl...@csiro.au 
guillaume.ducl...@csiro.au 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 kyngchaos*at*kyngchaos*dot*com
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

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