[GRASS-dev] wingrass: problems with some Makefiles

Glynn Clements glynn at gclements.plus.com
Sat Oct 13 12:21:04 EDT 2007


Moritz Lennert wrote:

> > Trying to recompile in windows (mingw), I get the errors in the attached
> > log, which I never saw before and which seem to be linked to recent
> > changes in Makefiles.
> 
> These errors go away if I revert to the previous version of the Makefile:
> 
> /c/grasssrc/grass6/general/manage/lister
> make: *** No rule to make target `|', needed by
> `/c/grasssrc/grass6/dist.i686-pc-mingw32/etc/lister/cell'.  Stop.

What version of make do you have? The project page indicates that 3.81
is available:

	http://sourceforge.net/project/showfiles.php?group_id=2435

> After reverting to previous version of Makefile, the error in d.frame
> compilation is different:

> make /c/grasssrc/grass6/dist.i686-pc-mingw32/docs/html/d.frame.html
> HTMLSRC=/c/grasssrc/grass6/dist.i686-pc-mingw32/bin/d.frame.exe
> make[1]: Entering directory `/c/grasssrc/grass6/display/d.frame'
> make[1]: *** No rule to make target
> `/c/grasssrc/grass6/dist.i686-pc-mingw32/docs/html/d.frame.html'.  Stop.

Try "make -p -C display/d.frame".

> make[1]: Leaving directory `/c/grasssrc/grass6/display/d.frame'
> make: *** [htmlcmd] Error 2
> 
> The same happens when I go another step back in cvs revisions. When I
> comment the htmlcmd line compilation completes as it should, except that
> there is no d.frame.html in docs/html.
> 
> For v.voronoi I also continue to have an error:
> 
> OBJ.i686-pc-mingw32/vo_main.o: In function
> `main':c:/grasssrc/grass6/vector/v.voronoi/vo_main.c:89: multiple
> definition of `main'
> OBJ.i686-pc-mingw32/dt_main.o:c:/grasssrc/grass6/vector/v.voronoi/dt_main.c:32:
> first defined here

> It seems to have some difficulty separating v.voronoi and v.delaunoy
> builds...

Try moving the lines:

	VORONOI = v.voronoi$(EXE)
	DELAUNAY = v.delaunay$(EXE)

	PROGRAMS = $(VORONOI) $(DELAUNAY)

to after Module.make is included. I think that it's not getting the
.exe extension, so it's try to use the default compilation rule (which
uses all .o files) rather than those at the bottom of the Makefile.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list