[GRASS-user] Re: Compiling GRASS 7.0 on Mac OSX 10.6.6

Johannes Radinger JRadinger at gmx.at
Thu Feb 24 06:28:28 EST 2011


Hello grass users!


-------- Original-Nachricht --------
> Datum: Wed, 23 Feb 2011 12:13:56 -0600
> Von: William Kyngesburye <kyngchaos at kyngchaos.com>
> An: Johannes Radinger <JRadinger at gmx.at>
> Betreff: Re: Compiling GRASS 7.0 on Mac OSX 10.6.6

> sorry, this:
> 
> --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


The ./configure works now without any problems and errors.
After the ./configure a ran make but now I get again an error:



make manifests
make[1]: Nothing to be done for `manifests'.
GRASS GIS compilation log
-------------------------
Started compilation: Do 24 Feb 2011 12:06:37 CET
--
Errors in:
/Users/admin/Downloads/grass-7.0.svn_src_snapshot_2011_02_19/visualization/nviz
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
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





Does anyone know what is the problem or better how to solve it?


thanks
Johannes















> 
> On Feb 23, 2011, at 10:12 AM, Johannes Radinger wrote:
> 
> > 
> >> --with-cairo-includes=/Library/Frameworks/cairo.framework/unix/include
> --with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib
> --with-cairo-ldflags=-lcairo
> > 
> > a replaced the other cairo-lines by yours but i get the error "Unable to
> locate Cairo includes"
> > 
> > sorry for beeing annoying but I am not a programmer/compiler so that is
> totally new for me.
> > 
> > thanks
> > 
> > 
> >> 
> >> 
> >> On Feb 23, 2011, at 9:51 AM, Johannes Radinger wrote:
> >> 
> >>> thank you for your quick response.
> >>> 
> >>> It installed FFTW3 from your archive and i don't get the error anymore
> I got before.
> >>> Now Cairo makes some troubles. I've installed Cairo from your website
> and if i run
> >>> the long ./configure it says:
> >>> 
> >>> checking for location of cairo includes... 
> >>> checking for cairo.h... no
> >>> configure: error: *** Unable to locate Cairo includes.
> >>> 
> >>> So I included --with-cairo
> --with-cairo-includes=/usr/local/include/cairo --with-cairo-libs=/usr/local/lib --with-cairo-ldflags=-lcairo
> >>> in the ./configure as stated in the readme.
> >>> 
> >>> Now I get
> >>> checking for location of cairo includes... /usr/local/include/cairo
> >>> configure: error: *** cairo includes directory
> /usr/local/include/cairo does not exist.
> >>> 
> >>> how do I have to change cairo settings...is there any terminal command
> I've to run
> >>> after the cairo installation resp. before the ./configure of GRASS.
> >>> 
> >>> thanks
> >>> Johannes
> >>> 
> >>> Am 23.02.2011 um 16:14 schrieb William Kyngesburye:
> >>> 
> >>>> I stopped building the FFTW3 framework a couple years ago.  Too much
> trouble to build (though I guess that's the point for me to provide these
> so others don't have to build them ;), and it was only used for 1 program,
> GRASS (and I had hopes to change GRASS to use the system vecLib).
> >>>> 
> >>>> I have build instructions on my site for a standard library build,
> but even there I wimp out and only describe a single architecture build. 
> Note that when built this way, you have to configure GRASS differently to find
> it, changing the --with-fftw-* options.  And, a big problem here will be
> 32bit - it will compile 64bit by default, but parts of GRASS still need to
> be 32bit (TclTk for NVIZ, wxPython for GUI), so you need to build GRASS
> 32+64bit, and FFTW3 needs to be 32+64bit.
> >>>> 
> >>>> I still have the old FFTW3 framework available, look in the download
> archive page on my software section.  It still works on Snow Leopard, and
> is 32+64bit.
> >>>> 
> >>>> On Feb 23, 2011, at 8:16 AM, Johannes Radinger wrote:
> >>>> 
> >>>>> Hello William,
> >>>>> 
> >>>>> after a lot of troubles with my WinGRASS I decided to use GRASS on
> my
> >>>>> Mac (Snow Leopard) and compile the newest version myself by
> following 
> >>>>> your instruction in the readme.rtf.
> >>>>> 
> >>>>> Now installed on my Mac are:
> >>>>> 1) XCode tools
> >>>>> 2) Freetype Framework 2.4.4.-1
> >>>>> 3) Cairo Framework 1.8.10-3
> >>>>> 4) GSL Framework 1.14-1
> >>>>> 5) GDAL 1.8 complete
> >>>>> 6) Numpy
> >>>>> 7) ActiveTCL 8.5.9
> >>>>> 
> >>>>> if I run now configure in the directory:
> >>>>> ./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-geos=/Library/Frameworks/GEOS.framework/Programs/geos-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-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 --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-cxx
> --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
> --without-motif --without-glw --with-opengl=aqua --without-readline
> --prefix=/Applications --enable-macosx-app
> >>>>> 
> >>>>> I get following error:
> >>>>> checking for location of FFTW includes...
> /Library/Frameworks/FFTW3.framework/unix/include
> >>>>> configure: error: *** FFTW includes directory
> /Library/Frameworks/FFTW3.framework/unix/include does not exist.
> >>>>> noname:grass-7.0.svn_src_snapshot_2011_02_19 admin$ 
> >>>>> 
> >>>>> It seems that FFTW3 is missing? I tried to complile also FFTW3
> according to their manual, but there is still the same problem. Is that a
> problem of GRASS or of FFTW3. How can I check if FFTW3 is installed and set
> correctly?
> >>>>> 
> >>>>> What should I do, how should I proceed?
> >>>>> 
> >>>>> Thanks for your help,
> >>>>> 
> >>>>> /johannes
> >>>> 
> >>>> -----
> >>>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> >>>> http://www.kyngchaos.com/
> >>>> 
> >>>> The equator is so long, it could encircle the earth completely once.
> >>>> 
> >>> 
> >> 
> >> -----
> >> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> >> http://www.kyngchaos.com/
> >> 
> >> "The beast is actively interested only in now, and, as it is always now
> and always shall be, there is an eternity of time for the accomplishment
> of objects."
> >> 
> >> - the wisdom of Tarzan
> >> 
> >> 
> >> 
> >> 
> >> 
> > 
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> All generalizations are dangerous, even this one.
> 
> 

-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl


More information about the grass-user mailing list