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

Colin Nielsen colin.nielsen at gmail.com
Sat Jan 10 10:12:10 EST 2009


Finally fixed the xdr library problem by updating all dependencies and
trying again. Now configure completes fine but I get many errors on
make, several relating to a libmingw32.a WinMain at 16 error.

Configured with:
./configure  --prefix=/usr/local --with-includes=/usr/local/include
--with-libs=/usr/local/lib --disable-x11 --without-x --with-cxx
--enable-shared --enable-largefile --with-opengl=windows --with-fftw
--with-freetype --with-proj-share=/usr/local/share/proj
--with-gdal=/usr/local/bin/gdal-config --with-tcltk
--with-tcltk-includes=/usr/local/tcl-tk/include
--with-tcltk-libs=/usr/local/tcl-tk/bin --with-sqlite
--with-sqlite-includes=/usr/local/sqlite/include
--with-sqlite-libs=/usr/local/sqlite/lib --with-postgres
--with-postgres-includes=/usr/local/pgsql/include
--with-postgres-libs=/usr/local/pgsql/lib --without-cairo

Errors in:
r.mapcalc
r.univar
raster3d/base
v.voronoi

Error message for above:
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined
reference to `WinMain at 16'


Errors also in all of the /scripts/:
if [ "/usr/local/src/grass_trunk/dist.i686-pc-mingw32/scripts/db.dropcol"
!= "" ] ; then GISRC=/usr/local/src/grass_trunk/dist.i686-pc-mingw32/demolocation/.grassrc70
GISBASE=C:/MinGW/msys/local/src/grass_trunk/dist.i686-pc-mingw32
PATH="/usr/local/src/grass_trunk/dist.i686-pc-mingw32/bin:$PATH"
PYTHONPATH="/usr/local/src/grass_trunk/dist.i686-pc-mingw32/etc/python:$PYTHONPATH"
PATH="/usr/local/src/grass_trunk/dist.i686-pc-mingw32/bin:/usr/local/src/grass_trunk/dist.i686-pc-mingw32/lib:.:/usr/local/bin:/mingw/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/mingw/Python"
LC_ALL=C /usr/local/src/grass_trunk/dist.i686-pc-mingw32/scripts/db.dropcol
--html-description < /dev/null | grep -v '</body>\|</html>' >
db.dropcol.tmp.html ; fi
Traceback (most recent call last):
  File "C:/MinGW/msys/local/src/grass_trunk/dist.i686-pc-mingw32/scripts/db.dropcol",
line 50, in <module>
    import grass
ImportError: No module named grass
make: *** [db.dropcol.tmp.html] Error 1

If it's looking for the grass.py in the pythonpath, there is one there...

Thanks, I'd appreciate any help with this...
-Colin





On Thu, Dec 18, 2008 at 12:42 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Colin Nielsen wrote:
>
>> > (or maybe the configure script looks only for the dynamic libxdr but not for the static one... I don't actually know...)
>>
>> So as I understand all of this, the xdr library builds as a static
>> library based on the instructions (ie. what I did), but the grass
>> configure script only searches for a dynamic library?
>
> No. The configure script just tries to link with -lxdr etc. That will
> find either a static or dynamic library.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>


More information about the grass-windows mailing list