[GRASS-dev] compile grass on osgeo4w with debug informations

G. Allegri giohappy at gmail.com
Mon Mar 26 10:29:37 EDT 2012


thanks martin, it seems to run ;)

giovanni

2012/3/26 Martin Landa <landa.martin at gmail.com>

> Hi,
>
> 2012/3/26 G. Allegri <giohappy at gmail.com>:
> > Hi. It's a long time since I built GRASS on Windows by myself, so
> forgive my
> > dummy questions...
> >
> > I would like to build grass on windows with debug infos, to debug a
> couple
> > of things (inside the core and a plugin).I suppose I should use the -g
> flag,
> > but I cannot do it from ./configure CFLAGS="-g", because it complains:
> >
> > configure: warning: CFLAGS=-g: invalid host type
> > configure: warning: CPPFLAGS=-g: invalid host type
> > configure: error: can only configure for one host and one target at a
> time
> >
> > What's the best place to declare it? I have little experience with
> > Autotools...
>
> declare it mswindows/osgeo4w/package.sh [1]. Eg.
>
> CFLAGS="-g -Wall" \
>            CXXFLAGS="-g -Wall"  \
>            ./configure \
>            ...
>
> I hope it helps, Martin
>
> [1]
> http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/package.sh#L108
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20120326/74fb4ae1/attachment.html


More information about the grass-dev mailing list