[GRASS-dev] Error while compiling i.pr Windows GRASS6.4
António Rocha
antonio.rocha at deimos.com.pt
Fri Dec 4 04:52:56 EST 2009
Greetings all
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 beggining of this error is:
make: Entering directory `/c/grass6/tests/i.pr'
c:/grass6/include/Make/Grass.make:418: warning: overriding commands for
target `/c/grass6/bin'
c:/grass6/include/Make/Grass.make:409: warning: ignoring old commands
for target `/c/grass6/bin'
PRLIB
make[1]: Entering directory `/c/grass6/tests/i.pr/PRLIB'
c:/grass6/include/Make/Grass.make:418: warning: overriding commands for
target `/c/grass6/bin'
c:/grass6/include/Make/Grass.make:409: warning: ignoring old commands
for target `/c/grass6/bin'
gcc -shared -o /c/grass6/lib/libgrass_pr.6.4.0svn.dll -L/c/grass6/lib
-Wl,--export-dynamic,--enable-runtime-pseudo-reloc
-L/c/OSGeo4W/apps/gdal-16/lib -L/c/OSGeo4W/lib OBJ./a/blob.o
OBJ./a/bootstrap.o OBJ./a/dist.o OBJ./a/eigen.o OBJ./a/entropy.o
OBJ./a/features.o OBJ./a/features_selection.o OBJ./a/getline.o
OBJ./a/gm.o OBJ./a/integration.o OBJ./a/lu.o OBJ./a/matrix.o
OBJ./a/min_quadratic.o OBJ./a/nn.o OBJ./a/open.o OBJ./a/pca.o
OBJ./a/percent.o OBJ./a/random.o OBJ./a/read_models.o
OBJ./a/soft_margin_boosting.o OBJ./a/sort.o OBJ./a/stats.o OBJ./a/svm.o
OBJ./a/test.o OBJ./a/training.o OBJ./a/tree.o OBJ./a/write_matrix.o
-lgrass_gmath -lgrass_gis -lgrass_datetime -lxdr -liberty -lws2_32
-lz -lgrass_gis -lgrass_datetime -lxdr -liberty -lws2_32
-lz c:/grass6/lib/gis/OBJ./a/dllmain.o && \
(cd /c/grass6/lib; ln -f -s libgrass_pr.6.4.0svn.dll
/c/grass6/lib/libgrass_pr.dll)
gcc.exe: c:/grass6/lib/gis/OBJ./a/dllmain.o: No such file or directory
make[1]: *** [/c/grass6/lib/libgrass_pr.6.4.0svn.dll] Error 1
make[1]: Leaving directory `/c/grass6/tests/i.pr/PRLIB'
Glynn Clements wrote:
> 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).
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4659 (20091203) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the grass-dev
mailing list