[GRASS-user] How to compile r.example

Luisa Peña luisapena1979 at gmail.com
Tue Feb 7 06:25:50 EST 2012


Hi
Now I got this:
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25: warning:
overriding commands for target `install'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Rules.make:90: warning:
ignoring old commands for target `install'
gcc -L/opt/grass642RC2/grass-6.4.2RC2/lib -Wl,--export-dynamic
-Wl,-rpath-link,/opt/grass642RC2/grass-6.4.2RC2/lib -o
/opt/grass642RC2/grass-6.4.2RC2/bin/r.example
OBJ.x86_64-unknown-linux-gnu/main.o -lgrass_gis.6.4.2RC2
-lgrass_datetime.6.4.2RC2 -lz -lm -lz
make htmlcmd
make[1]: Entering directory `/home/EOAPPKA/r.example'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25: warning:
overriding commands for target `install'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Rules.make:90: warning:
ignoring old commands for target `install'
make /opt/grass642RC2/grass-6.4.2RC2/docs/html/r.example.html
HTMLSRC=/opt/grass642RC2/grass-6.4.2RC2/bin/r.example
make[2]: Entering directory `/home/EOAPPKA/r.example'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25: warning:
overriding commands for target `install'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Rules.make:90: warning:
ignoring old commands for target `install'
if [ "/opt/grass642RC2/grass-6.4.2RC2/bin/r.example" != "" ] ; then
GISRC=/opt/grass642RC2/grass-6.4.2RC2/demolocation/.grassrc64
GISBASE=/opt/grass642RC2/grass-6.4.2RC2
PATH="/opt/grass642RC2/grass-6.4.2RC2/bin:$PATH"
LD_LIBRARY_PATH="/opt/grass642RC2/grass-6.4.2RC2/bin:/opt/grass642RC2/grass-6.4.2RC2/lib:"
LC_ALL=C /opt/grass642RC2/grass-6.4.2RC2/bin/r.example --html-description <
/dev/null | grep -v '</body>\|</html>' > r.example.tmp.html ; true ; fi
ERROR: G_getenv(): Variable LOCATION_NAME not set
/home/opt/grass642RC2/grass-6.4.2RC2/tools/mkhtml.sh r.example ; mkdir -p
/opt/grass642RC2/grass-6.4.2RC2/docs/html ; /usr/bin/install -c -m 644
r.example.tmp.html /opt/grass642RC2/grass-6.4.2RC2/docs/html/r.example.html
; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ;
if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file
/opt/grass642RC2/grass-6.4.2RC2/docs/html ; fi done 2> /dev/null ; true
make[2]: Leaving directory `/home/EOAPPKA/r.example'
make[1]: Leaving directory `/home/EOAPPKA/r.example'
make mancmd
make[1]: Entering directory `/home/EOAPPKA/r.example'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25: warning:
overriding commands for target `install'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Rules.make:90: warning:
ignoring old commands for target `install'
make /opt/grass642RC2/grass-6.4.2RC2/man/man1/r.example.1
MANSRC=/opt/grass642RC2/grass-6.4.2RC2/docs/html/r.example.html
make[2]: Entering directory `/home/EOAPPKA/r.example'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25: warning:
overriding commands for target `install'
/home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Rules.make:90: warning:
ignoring old commands for target `install'
mkdir -p /opt/grass642RC2/grass-6.4.2RC2/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.2RC2 sh
/home/opt/grass642RC2/grass-6.4.2RC2/tools/g.html2man
/opt/grass642RC2/grass-6.4.2RC2/docs/html/r.example.html
/opt/grass642RC2/grass-6.4.2RC2/man/man1/r.example.1 1
/home/opt/grass642RC2/grass-6.4.2RC2/tools/g.html2man:
/home/opt/grass642RC2/grass-6.4.2RC2/tools/g.html2man: is a directory
make[2]: *** [/opt/grass642RC2/grass-6.4.2RC2/man/man1/r.example.1] Error
126
make[2]: Leaving directory `/home/EOAPPKA/r.example'
make[1]: *** [mancmd] Error 2
make[1]: Leaving directory `/home/EOAPPKA/r.example'
make: *** [cmd] Error 2

It has created the bin in the folder. But my question is: what all does
this mean? Any problem or something?

Thanks

Luisa
2012/2/6 Markus Neteler <neteler at osgeo.org>

> On Mon, Feb 6, 2012 at 4:23 PM, Luisa Peña <luisapena1979 at gmail.com>
> wrote:
> > Hi
> > Insider r.example I tried this :
> > make MODULE_TOPDIR=/home/opt/grass642RC2/grass-6.4.2RC2
> >
> >
> > and:
> >
> > /home/opt/grass642RC2/grass-6.4.2RC2/include/Make/Module.make:25:
> warning:
>
> ...
> > /home/EOAPPKA/r.example/main.c:114: undefined reference to
> `Rast_get_cellhd'
>
> Rast_*() indicates that you have taken r.example from GRASS 7 and try to
> compile it against GRASS 6 - this won't work.
>
> Markus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120207/330838e9/attachment.html


More information about the grass-user mailing list