[GRASS-dev] Error while compiling i.pr Windows GRASS6.4

Glynn Clements glynn at gclements.plus.com
Fri Dec 4 06:56:19 EST 2009


António Rocha wrote:

> Glynn thanks for your comment. It was really helpful.
> 
> While compiling I think it's not finding libgrass_pr.dll neither 
> libgrass_pr.6.4.0svn.dll. And I don't have those files.
> 
> Am I right? If this is the case, Where Can I find these files?

The problem is that it's failing to *create* them:

> The beggining of this error is:

> gcc -shared -o /c/grass6/lib/libgrass_pr.6.4.0svn.dll -L/c/grass6/lib 
                               ^^^^^^^^^^^^^^^^^^^^^^^^

If this command succeeded, it would create the file
libgrass_pr.6.4.0svn.dll. It's failing due to:

> gcc.exe: c:/grass6/lib/gis/OBJ./a/dllmain.o: No such file or directory

This suggests that OBJDIR is "OBJ./a", which is bogus. On Windows, the
typical value is "OBJ.i686-pc-mingw32".

If you have a dllmain.o file anywhere, you can use e.g.

	make ... DLLMAIN_OBJ=/c/grass6/lib/gis/OBJ.OBJ.i686-pc-mingw32/dllmain.o

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


More information about the grass-dev mailing list