Trying again, this time controlling my fingers a bit better
On Thu, December 14, 2006 16:15, Paul Kelly wrote:
On Thu, 14 Dec 2006, Moritz Lennert wrote:
It is in /mingw/share/bison/m4sugar/m4sugar.m4. I don't know why it is
looking for it in msys ? This causes an error in the compilation of
libvect and so many consequent errors.
Ah OK. I think I hacked about with that a little bit come to think of
it.
Just put it where it's looking for it
I'll try as mentioned above. If that doesn't help, I'll move it around.
It is installed in c:\msys\1.0\share.
I copied everything to c:\msys\share.But I still get the same error. When I try to access /msys from within the
msys shell window, I also get an error. I actually have to do /c/msys
to get
there. But I just can't find where the path is coded...
Hmm I think when I had the problem it was looking for
/usr/share/bison/... So I don't understand. Must be some installation
thing; really don't know.
Actually the problem was that msys was installed as /msys/1.0/ instead of
just /msys. Solved that by moving around msys directories. Now no more
bison errors.
Yes, saw an error on that. Will try to figure out how to change the
makefile.
I haven't really found out how to change this. Currently the Makefile
contains:
# some definitions
SECT = 1
MANDIR = $(GISBASE)/man/man$(SECT)
HTMLDIR = $(GISBASE)/docs/html
HTML2MAN = GRASS_PERL=${PERL} VERSION_NUMBER=${GRASS_VERSION_NUMBER} sh
$(GRASS_HOME)/tools/g.html2man/g.html2man
MANPAGES := $(patsubst $(HTMLDIR)/%.html,$(MANDIR)/%.$(SECT),$(wildcard
$(HTMLDIR)/*.html))
default: $(MANDIR) $(MANPAGES)
$(MANDIR):
$(MKDIR) $(MANDIR)$(MANDIR)/%.$(SECT): $(HTMLDIR)/%.html
$(HTML2MAN) $< $@ $(SECT)The problem is in the last line where g.html2man is called. just
commenting
out the last line doesn't seem to work:
You maybe need the line to still start with a Tab, then comment out the
rest? I don't know. But tider probably to just delete
$(MANDIR) $(MANPAGES) after default:
Did that and it works.
Now the only errors I get are the following. Of these all are probably
expected, or ? (The gui/tcltk/menus is an issue of the Makefile not being
updated when the common menus were removed. Needs to be fixed in CVS.)
/c/grasssrc/grass6/display/drivers/PNG (undefined reference to `LIB_main')
/c/grasssrc/grass6/gui/tcltk/menus
/c/grasssrc/grass6/imagery/i.class (most of the following with sys/wait.h:
No such file or directory)
/c/grasssrc/grass6/imagery/i.ortho.photo/photo.2image
/c/grasssrc/grass6/imagery/i.ortho.photo/photo.2target
/c/grasssrc/grass6/imagery/i.points
/c/grasssrc/grass6/imagery/i.vpoints
/c/grasssrc/grass6/raster/r.li/r.li.daemon
/c/grasssrc/grass6/raster/r.li/r.li.edgedensity
/c/grasssrc/grass6/raster/r.li/r.li.patchdensity
/c/grasssrc/grass6/raster/r.li/r.li.patchnumber
/c/grasssrc/grass6/raster/r.li/r.li.shape
/c/grasssrc/grass6/raster/r.li/r.li.simpson
/c/grasssrc/grass6/raster/r.li/r.li.shannon
/c/grasssrc/grass6/raster/r.li/r.li.meanPatchSize
/c/grasssrc/grass6/raster/r.li/r.li.meanPixelAttribute
/c/grasssrc/grass6/raster/r.li/r.li.patchAreaDistributionCV
/c/grasssrc/grass6/raster/r.li/r.li.patchAreaDistributionSD
/c/grasssrc/grass6/raster/r.li/r.li.patchAreaDistributionRANGE
/c/grasssrc/grass6/raster/r.li/r.li.contrastWeightedEdgeDensity
/c/grasssrc/grass6/raster/r.li/r.li.richness
/c/grasssrc/grass6/raster/r.li/r.li.dominance
/c/grasssrc/grass6/raster/r.terraflow (grass2str.h:436: error: `getrusage'
undeclared (first use this function))
Other than that I get a running binary which I can launch from within
msys.
Launching it with grass63.bat does not seem to work. I don't get the
startup
screen and I get a message about g.dirsep not being found.
Oops - I forgot to add g.dirseps to the list of modules compiled by
default in general/Makefile. If you just change into the g.dirseps
directory and run make perhaps it will work after that. Remember to
check that you need backslashes in the WINGISBASE path in grass63.bat.
Did that. I also added a 'set GRASS_WISH=' command in grass63.bat, as it
didn't seem to find my wish command.
Now I see a message in cmd.exe: ERROR: LOCATION_NAME not set and an empty
'gis_set' window. When I close that window, the gis.m starts up but then
crashes and closes very quickly.
Launching grass63 within msys, I see the following issues at first glance:
- the dbf driver now launches (I can see the terminal window flashing),
but I get a 'dbmi: Protocol error', be for 'v.info -c' or for
'v.db.select'. Don't know how to debug this. I'll have to install
postgresql or sqlite to test with other db backends.
- everytime I a map display gets refreshed, I see 'etc/freetypecap: No
FreeType definition file
- v.buffer fails with a windows error while the topology is being built.
Launching v.build on the resulting file I get the warning that the coor
file of the map is larger than it should be
So, very promising as compilation seems to work, and I can already nicely
display and overlay maps. The dbmi error keeps me from using several of
the vector modules (v.buffer, v.overlay). I've tried a few raster modules
randomly (shaded relief, raster buffer, r.bilinear) and they worked.
Moritz