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

Martin Landa landa.martin at gmail.com
Mon Mar 26 10:27:27 EDT 2012


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

More information about the grass-dev mailing list