I don't think Maris meant you can't use TclTk 8.5, but > 8.5, or 8.6+. 8.6 is known to have problems. I haven't built GRASS 7 in a while, but TclTk 8.5 works fine for GRASS 6.x, and is recommended for OS X.
I don't know if anything has been changed in GRASS 7. On Feb 25, 2011, at 7:42 AM, Johannes Radinger wrote: > > -------- Original-Nachricht -------- >> Datum: Thu, 24 Feb 2011 15:48:33 +0100 >> Von: Markus Neteler <[email protected]> >> An: Johannes Radinger <[email protected]> >> CC: William Kyngesburye <[email protected]>, [email protected] >> Betreff: Re: [GRASS-user] Re: Compiling GRASS 7.0 on Mac OSX 10.6.6 > >> On Thu, Feb 24, 2011 at 12:28 PM, Johannes Radinger <[email protected]> >> wrote: >> ... >>> Errors in: >>> >> /Users/admin/Downloads/grass-7.0.svn_src_snapshot_2011_02_19/visualization/nviz >> ... >>> Finished compilation: Do 24 Feb 2011 12:18:01 CET >>> make: *** [default] Error 1 >>> >>> >>> So I changed to the nviz directory and ran again make and there I get: >>> >>> make -C src >>> gcc -g -O2 >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386-apple-darwin10.6.0/include >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386-apple-darwin10.6.0/include >> -D_FILE_OFFSET_BITS=64 -I/Library/Frameworks/Tcl.framework/Headers >> -I/Library/Frameworks/Tk.framework/Headers >> -I/Library/Frameworks/Tk.framework/PrivateHeaders >> -I/Library/Frameworks/Tcl.framework/Headers >> -I/Library/Frameworks/Tk.framework/Headers >> -I/Library/Frameworks/Tk.framework/PrivateHeaders >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386-apple-darwin10.6.0/include >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386-apple-darwin10.6.0/include >> -I/Library/Frameworks/UnixImageIO.framework/unix/include >> -I/Library/Frameworks/GDAL.framework/Versions/1.8/Headers >> -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include >> -DPACKAGE=\""grassmods"\" >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386 >>> -apple-darwin10.6.0/include >> -I/users/admin/downloads/grass-7.0.svn_src_snapshot_2011_02_19/dist.i386-apple-darwin10.6.0/include >> -o >> OBJ.i386-apple-darwin10.6.0/togl.o -c togl.c >>> In file included from togl.c:53: >>> /Library/Frameworks/Tk.framework/Headers/tkMacOSX.h:31: error: expected >> declaration specifiers or ‘...’ before ‘TkRegion’ >>> togl.c: In function ‘SetMacBufRect’: >>> togl.c:1088: error: ‘struct TkWindowPrivate’ has no member named >> ‘grafPtr’ >>> togl.c: In function ‘Togl_CreateWindow’: >>> togl.c:2221: warning: cast to pointer from integer of different size >>> togl.c:2338: warning: ‘aglSetDrawable’ is deprecated (declared at >> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313) >>> togl.c:2340: error: ‘struct TkWindowPrivate’ has no member named >> ‘grafPtr’ >>> togl.c: In function ‘Togl_EventProc’: >>> togl.c:2594: warning: ‘AGLDrawable’ is deprecated >>> togl.c:2596: warning: ‘aglSetDrawable’ is deprecated (declared at >> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313) >>> togl.c:2610: warning: ‘aglSetDrawable’ is deprecated (declared at >> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313) >>> togl.c: In function ‘Togl_LoadBitmapFont’: >>> togl.c:3143: warning: ‘aglUseFont’ is deprecated (declared at >> /System/Library/Frameworks/AGL.framework/Headers/agl.h:374) >>> make[1]: *** [OBJ.i386-apple-darwin10.6.0/togl.o] Error 1 >>> make: *** [default] Error 2 >> >> In visualization/nviz/src/togl.c there are some conditions: >> >> #if TK_MAJOR_VERSION < 8 >> # error Sorry Togl requires Tcl/Tk ver 8.0 or higher. >> #endif >> >> #if defined(TOGL_AGL_CLASSIC) >> # if TK_MAJOR_VERSION < 8 || (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION < >> 3) >> # error Sorry Mac classic version requires Tcl/Tk ver 8.3.0 or higher. >> # endif >> #endif /* TOGL_AGL_CLASSIC */ >> >> #if defined(TOGL_AGL) >> # if TK_MAJOR_VERSION < 8 || (TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION < >> 4) >> # error Sorry Mac Aqua version requires Tcl/Tk ver 8.4.0 or higher. >> # endif >> #endif /* TOGL_AGL */ >> >> Maybe helpful? >> >> Markus > > > Does anyone know what to do? How are the Mac users get their compilation > working with this Mac-Tcl/Tk-NVIZ issue? > > Would it be useful to install an older version of ActiveTcl (e.g 8.4.x) over > my 8.5.9 version ? > > thanks > Johannes > > > -- > Schon gehört? GMX hat einen genialen Phishing-Filter in die > Toolbar eingebaut! http://www.gmx.net/de/go/toolbar > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ All generalizations are dangerous, even this one. _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
