[GRASS-dev] Error while compiling i.pr Windows GRASS6.4
António Rocha
antonio.rocha at deimos.com.pt
Fri Dec 4 12:16:04 EST 2009
Hi Glynn
I think you do magic because I've tried a couple of times without
success and, right after I received your email I suceed compiling
dllmain.c. :)
About OBJDIR, At GRASS.make it's defined as you said:
OBJDIR = OBJ.$(ARCH)
So no problem with this
Now, with compiling i.pr:
I'm getting the following error (see below). it has something to do with
drand48. drand48 is a function mentioned in line 42 of bootstrap.c of
PRLIB folder.
Does this function ring a bell? I have searched and there is no file
with that name in GRASS6 folder neither sourcecode or snapshot.
*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)
OBJ./a/bootstrap.o: In function `Bootsamples':
c:/grass6/tests/i.pr/PRLIB/bootstrap.c:42: undefined reference to `drand48'
OBJ./a/svm.o: In function `examineExample':
c:/grass6/tests/i.pr/PRLIB/svm.c:335: undefined reference to `drand48'
c:/grass6/tests/i.pr/PRLIB/svm.c:346: undefined reference to `drand48'
OBJ./a/svm.o: In function `estimate_cv_error':
c:/grass6/tests/i.pr/PRLIB/svm.c:865: undefined reference to `drand48'
collect2: ld returned 1 exit status
make[1]: *** [/c/grass6/lib/libgrass_pr.6.4.0svn.dll] Error 1
make[1]: Leaving directory `/c/grass6/tests/i.pr/PRLIB'*
Thanks Glynn for your help
Glynn Clements wrote:
> António Rocha wrote:
>
>
>
> It's normally built from lib/gis/dllmain.c. If you didn't build GRASS
> itself from source, you can compile just that file with:
>
> gcc -c dllmain.c
>
> (it shouldn't need any other switches), then pass its path via
> DLLMAIN_OBJ.
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4661 (20091204) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the grass-dev
mailing list