[GRASS-dev] Compile r.example for GRASS6.4 in Windows
António Rocha
antonio.rocha at deimos.com.pt
Wed Nov 18 09:03:17 EST 2009
Greetings all
First of all let me thank Glynn and Markus for helping me on this. This
is breaking my head...
1- First I installed GRASS6.4 binaries in C:/grass6
2- I used this website to install msys and libraries in order to compile
C functions, just like r.example.
http://trac.osgeo.org/grass/wiki/CompileOnWindows
OSGEO4w was installed in c:/osgeo4w
3- I place r.example folder in code in C:/grass6/tests/r.example
4- So far, so good. Using msys I decided to compile using make file.
After a few try outs, Glynnn told me to use this expression:
make -C c:/grass6/tests/r.example MODULE_TOPDIR=c:/grass6
and I got a few errors. Glynn also told me to change a few variables at
c:/grass6/include/make
Those were:
- At platform.make now it's:
GRASS_HOME = /c/grass6
RUN_GISBASE = c:/grass6
RUN_GISBASE = c:/grass6
- At platform.make I left ARCH empty:
- At grass.make now they are written in msys style:
ARCH_DISTDIR = /c/grass6
ARCH_BINDIR = /c/grass6/bin
ERRORLOG = /c/grass6
5- Then I was getting this error, with a few other small
*** No rule to make target `/c/grass6/lib/libgrass_gis.dll', needed by
6- Markus suggested me to make a copy of libgrass_gis.6.4.0svn.dll with
the name libgrass_gis.dll.
7- And after this I got this error:
make: Entering directory `/c/grass6/tests/r.example'
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'
test -d OBJ. || mkdir -p OBJ.
gcc -I/c/grass6/include -I/OSGeo4W/apps/gdal-16/include
-I/OSGeo4W/include -g -O2 -I/OSGeo4W/apps/gdal-16/include
-I/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/grass6/include -o
OBJ./main.o -c main.c
gcc -L/c/grass6/lib -Wl,--export-dynamic,--enable-runtime-pseudo-reloc
-L/OSGeo4W/apps/gdal-16/lib -L/OSGeo4W/lib -o
/c/grass6/bin/r.example.exe OBJ./main.o c:/grass6/lib/gis/OBJ./fmode.o
-lgrass_gis -lgrass_datetime -lxdr -liberty -lws2_32 -lz -lintl
-lxdr -liberty -lws2_32 -lz
gcc.exe: c:/grass6/lib/gis/OBJ./fmode.o: No such file or directory
make: *** [/c/grass6/bin/r.example.exe] Error 1
make: Leaving directory `/c/grass6/tests/r.example'
At C:/grass6/tests/r.example a new folder was created "OBJ " with the
file main.o.
Question? What else Should I do or what am I doing wrong?
After this; I promise I will submit my quest in GRASS Wiki :)
Thanks
Best Regards
Antonio ROcha
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4617 (20091118) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
More information about the grass-dev
mailing list