[GRASS-user] r.example
Pedro Mendonça
pfmendonca at fc.ul.pt
Thu Jun 6 07:08:36 PDT 2013
Ok, I did the
"./configure" commands
make distclean
"./configure" commands
make
And voilá:
----------------------------------------------------------------------
Following modules are missing the 'description.html' file in src code:
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Thu Jun 6 14:39:26 WEST 2013
--
Errors in:
No errors detected.
--
Finished compilation: Thu Jun 6 14:48:40 WEST 2013
Yeah!!! So far, so good.
The goal is the "r.example", so, I did this:
pedro at PedroHost:~/Desktop/grass-6.4.3RC3/doc/raster/r.example$ make
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc -I/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/include -ggdb -march=native -Wall -Werror-implicit-function-declaration -DPACKAGE=\""grassmods"\" -I/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/main.o -c main.c
gcc -L/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/lib -o /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin/r.example OBJ.i686-pc-linux-gnu/main.o -lgrass_gis.6.4.3RC3 -lgrass_datetime.6.4.3RC3 -lz -lm -lz
make htmlcmd
make[1]: Entering directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
make /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html/r.example.html HTMLSRC=/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin/r.example
make[2]: Entering directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
if [ "/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin/r.example" != "" ] ; then GISRC=/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/demolocation/.grassrc64 GISBASE=/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu PATH="/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin:$PATH" LD_LIBRARY_PATH="/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin:/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/lib:" LC_ALL=C /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/bin/r.example --html-description < /dev/null | grep -v '</body>\|</html>' > r.example.tmp.html ; true ; fi
../../../tools/mkhtml.sh r.example ; mkdir -p /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html ; /usr/bin/install -c -m 644 r.example.tmp.html /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/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 /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html ; fi done 2> /dev/null ; true
make[2]: Leaving directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
make[1]: Leaving directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
make mancmd
make[1]: Entering directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
make /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/man/man1/r.example.1 MANSRC=/home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html/r.example.html
make[2]: Entering directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
mkdir -p /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.3RC3 sh ../../../tools/g.html2man/g.html2man /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html/r.example.html /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/man/man1/r.example.1 1
Converting: /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/docs/html/r.example.html to /home/pedro/Desktop/grass-6.4.3RC3/dist.i686-pc-linux-gnu/man/man1/r.example.1
make[2]: Leaving directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
make[1]: Leaving directory `/home/pedro/Desktop/grass-6.4.3RC3/doc/raster/r.example'
I guess it compiled, as I see an object file:
pedro at PedroHost:~/Desktop/grass-6.4.3RC3/doc/raster/r.example$ ls
COMMENTS description.html main.c Makefile OBJ.i686-pc-linux-gnu r.example.tmp.html
pedro at PedroHost:~/Desktop/grass-6.4.3RC3/doc/raster/r.example$ ls OBJ.i686-pc-linux-gnu/
main.o
But where is the executable?
________________________________________
From: Pedro Mendonça
Sent: Thursday, June 06, 2013 2:14 PM
To: grass-user at lists.osgeo.org; Hamish
Cc: Nikos Alexandris
Subject: RE: [GRASS-user] r.example
Nikos, Hamish, I decided to start all over.
Deleted the old directory and Unzipped again the source code.
Started with "make distclean". Here's what I got:
pedro at PedroHost:~/Desktop/grass-6.4.3RC3$ make distclean
Makefile:22: include/Make/Platform.make: No such file or directory
Makefile:23: include/Make/Grass.make: No such file or directory
include/Make/Doxygen.make:2: include/Make/Platform.make: No such file or directory
make: *** No rule to make target `include/Make/Platform.make'. Stop.
And now?
________________________________________
From: Hamish [hamish_b at yahoo.com]
Sent: Thursday, June 06, 2013 1:48 PM
To: grass-user at lists.osgeo.org; Pedro Mendonça
Subject: RE: [GRASS-user] r.example
Pedro wrote:
> I read that and tryed "make" into some directories but I keep
> getting the same "g.echo" issue.
> Here's an example of the "tools" directory:
>
> pedro at PedroHost:~/Desktop/grass-6.4.3RC3$ cd tools
> pedro at PedroHost:~/Desktop/grass-6.4.3RC3/tools$ make
> make -C timer || echo
> /home/pedro/Desktop/grass-6.4.3RC3/tools/timer >>
> /home/pedro/Desktop/grass-6.4.3RC3/error.log
> make[1]: @GRASS_HOME@/dist. at host@/tools/g.echo at EXEEXT@:
> Command not found
ok, it seems your include/Make/Platform.make file was not
created properly, and sill retains the @placeholder@ names
from Platform.make.in. I don't know why though, try
'make distclean' and ./configure again?
Hamish
More information about the grass-user
mailing list