[GRASS-windows] Compiling grass7 on msys/mingw?

Colin Nielsen colin.nielsen at gmail.com
Mon Jan 12 21:59:18 EST 2009


Glynn,

> I have attached a complete, modified Html.make file to avoid
> confusion. This has at least been tested on Linux.

> Ugh. I suspect os.execvp() needs "g.parser.exe" rather than
> "g.parser". On Windows, only the higher-level interfaces (e.g.
> ShellExecute() or "cmd /c ...") allow the .exe (or .bat etc) extension
> to be omitted.

Thanks for the help. You were right on both counts. I added the new
Html.make and edited the grass.py line 208 to:
     os.execvp("g.parser.exe", [name] + argv)

That works too, the scripts compile perfectly now. Although I realize
that some work around will be needed to make it OS generic.

Any idea why I get the other error for r.mapcalc, r.univar,
raster3d/base and v.voronoi?

gcc -L/usr/local/src/grass_trunk/dist.i686-pc-mingw32/lib
-Wl,--export-dynamic,--enable-runtime-pseudo-reloc  -L/usr/local/lib
-L/usr/local/pgsql/lib  -o
/usr/local/src/grass_trunk/dist.i686-pc-mingw32/bin/r.mapcalc.exe
../../lib/gis/OBJ.i686-pc-mingw32/fmode.o -lgrass_gis -lgrass_datetime
-lxdr -liberty -lws2_32    -lz     -lgrass_btree        -lxdr -liberty
-lws2_32    -lz
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined
reference to `WinMain at 16'
collect2: ld returned 1 exit status
make: *** [/usr/local/src/grass_trunk/dist.i686-pc-mingw32/bin/r.mapcalc.exe]
Error 1

> 7.0 is quite fluid, and it doesn't seem to be getting much testing on
> Windows (6.x doesn't get much testing either, but then 6.x isn't being
> substantially rewritten).
>

I am happy to test / keep posting errors for grass70 and grass64 as I
use grass in Windows Vista regularly. Let me know if there is anything
specific I should be testing/ looking for.

-Colin


More information about the grass-windows mailing list