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

Glynn Clements glynn at gclements.plus.com
Thu Dec 3 14:44:17 EST 2009


António Rocha wrote:

> Greetings all
> I'm trying to compile i.pr in WinGRASS 6.4. I have succeed while 
> compiling i.* , r.* and v.* modules/addons but I'm getting some errors 
> in this one.
> 
> I'm using the followin command:
> make C:/grass6/tests/i.pr MODULE_TOPDIR=C:/grass6
> 
> and I get multiple times the following error while compiling:
> :\osgeo4w\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: 
> cannot find -lgrass_pr
> collect2: ld returned 1 exit status
> make[1]: *** [/c/grass6/bin/i.pr.sites_aggregate.exe] Error 1
> make[1]: Leaving directory `/c/grass6/tests/i.pr/i.pr_sites_aggregate'
> make: Leaving directory `/c/grass6/tests/i.pr'
> 
> It seems that he is not finding a lgrass_pr library. I have already 
> searched for some dll named "libgrass_pr" but nothing appeared.

The source code for the library is in i.pr/PRLIB. If you get an error
building this directory, all of the individual i.pr_* modules will
also fail to build.

Whenever you get build errors, always look for the first error; if you
can solve that, the others will often go away.

When building any non-trivial project, always save the output to a
file (rather than letting it just scroll by in the terminal), e.g.:

	make &> build.log

If you want to watch it as well:

	make 2>&1 | tee build.log
or:
	make &> build.log &
	tail -f build.log

Then, if you need to post error messages, you'll have the important
ones from the beginning (terminals often have limited scrollback), and
the text won't be messed up (as sometimes happens if you copy/paste
from a terminal).

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


More information about the grass-dev mailing list