[GRASS-dev] wxnviz on mac osx (grass7.0)

Massimo Di Stefano massimodisasha at gmail.com
Thu Aug 19 11:26:14 EDT 2010


Hello Helena,

Il giorno 19/ago/2010, alle ore 16.44, Helena Mitasova ha scritto:

> 
> On Aug 19, 2010, at 10:36 AM, Massimo Di Stefano wrote:
> 
>> Hi William,
>> 
>> right :-) thanks to point me to tcltk
>> i'm on a fresh osx installation .. so i'll rebuild tcltk for both 32+64 bit and reconfigure grass.
>> 
>> but this error wil be not related to the wx-nviz crash, is it right ?
>> 
>> i have a wxniz crash on both grass 6.5 and 7.0.
> 
> it crashes if you have both raster dem and vector data in gis manager,

i tried loading only the raster  layer spearfish elevation.dem 
(without vector loaded in gis manager)

after load the raster in the 2d map-display,  
"click" on the "3D View"  give me a wxpython-gui crash

to have a log i tried to use :   export GRASS_WX_DEBUG=1


GRASS 7.0.svn (spearfish60):~ > export GRASS_WX_DEBUG=1
[1]+  Done                    g.gui wxpython
GRASS 7.0.svn (spearfish60):~ > g.gui wxpython &
[1] 22828
GRASS 7.0.svn (spearfish60):~ > GUI D1/1: GMFrame.NewDisplay(): idx=0
GUI D1/1: gcmd.RunCommand(): g.proj -p
GUI D1/1: gcmd.RunCommand(): g.region -ugpc
GUI D1/1: gcmd.RunCommand(): g.mapsets --q -p fs=newline
GUI D1/1: gcmd.RunCommand(): d.rast --q map=elevation.10m at PERMANENT
GUI D1/1: gcmd.RunCommand(): g.pnmcomp opacity=1.0 mask=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp7oA4qm.pgm height=515 width=768 background=255:255:255:255 input=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp7oA4qm.ppm output=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp8Lfnkp.ppm
GUI D1/1: gcmd.RunCommand(): d.rast --q map=elevation.10m at PERMANENT
GUI D1/1: gcmd.RunCommand(): g.pnmcomp opacity=1.0 mask=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp7oA4qm.pgm height=515 width=768 background=255:255:255:255 input=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp7oA4qm.ppm output=/var/folders/ve/veXy9T8eF2mFKQhl31Blv++++TI/-Tmp-/tmp8Lfnkp.ppm


> it is still under development - see the wiki page.

i know, my mail is just to report what i have here,
i hope a log will help to debug the problems.
My attempt is to help to debug, 
building grass several times at week, 
i usually report a problem if exists

> 
> tcltk nviz is not supposed to be supported in grass7

i know, all tcltk stuff  is dropped from grass7,


unlucky i'm just a power-user and i'm not able to fix things
i'm on osx i'will be happy to provide you more logs
and tests if needed, to guve us a little help.


thanks All, for you powerfull grass-work!

Massimo.


> 
> Helena
>> 
>> i'll update my tcltk and try again,
>> 
>> thanks!
>> 
>> Massimo.
>> 
>> Il giorno 19/ago/2010, alle ore 16.30, William Kyngesburye ha scritto:
>> 
>>> That's the TclTk NVIZ.
>>> 
>>> And it looks like it's configured for the system TclTk (8.5).  I tried that a while back when Snow Leopard came out - updated tcltk, 64bits - but had problems compiling, it might have been the same error.
>>> 
>>> You need to install TclTk 8.5 from ActiveState and configure for that.  See the Mac compile readme in the source.
>>> 
>>> On Aug 19, 2010, at 6:42 AM, Massimo Di Stefano wrote:
>>> 
>>>> Hi,
>>>> 
>>>> problems to get wx-nviz running on mac osx 10.6.4 building grass7.0
>>>> 
>>>> this the log :
>>>> 
>>>> Finished compilation: Gio 19 Ago 2010 13:31:39 CEST
>>>> make: *** [default] Error 1
>>>> MacBook-Pro-15-di-sasha:grass_trunk sasha$ cd /Users/sasha/gis/grass_trunk/visualization/nviz
>>>> MacBook-Pro-15-di-sasha:nviz sasha$ make
>>>> make -C src
>>>> gcc  -g -O2    -arch i386 -arch x86_64  -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include  -D_FILE_OFFSET_BITS=64   -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include -I/Library/Frameworks/UnixImageIO.framework/unix/include  -I/Library/Frameworks/GDAL.framework/Versions/1.7/Headers -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include  -DPACKAGE=\""grassmods"\"   -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include -I/Users/sasha/gis/grass_trunk/dist.i386-apple-darwin10.4.0/include -o OBJ.i386-apple-darwin10.4.0/togl.o -c togl.c
>>>> In file included from togl.c:53:
>>>> /usr/include/tkMacOSX.h:31: error: expected declaration specifiers or ‘...’ before ‘TkRegion’
>>>> togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
>>>> togl.c:265: error: expected specifier-qualifier-list before ‘XVisualInfo’
>>>> togl.c: In function ‘SetMacBufRect’:
>>> ...
>>> 
>>> -----
>>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>>> http://www.kyngchaos.com/
>>> 
>>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>>> 
>>> [Marvin]  You think you have problems?  What are you supposed to do if you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
>>> 
>>> - HitchHiker's Guide to the Galaxy
>>> 
>>> 
>> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
> 



More information about the grass-dev mailing list