Grass 7.0 build (debian sid)

3 messages Options
Embed this post
Permalink
Massimo Di Stefano

Grass 7.0 build (debian sid)

Reply Threaded More More options
Print post
Permalink
Hi All,

i'm tring to use Grass 7.0 but i have some build problems.
The fist arrive during thue grass build on the command :

" r.colors "  :

-------------------------
Started compilation: Wed Oct 14 11:27:16 CEST 2009
--
Errors in:
/usr/local/src/grass_trunk/raster/r.colors
--
In case of errors please change into the directory with error and run  
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you  
will
also get errors from anything which uses the library.
--
Finished compilation: Wed Oct 14 11:32:47 CEST 2009
make: *** [default] Error 1
geofem@geofem:/usr/local/src/grass_trunk$ cd /usr/local/src/
grass_trunk/raster/r.colors
geofem@geofem:/usr/local/src/grass_trunk/raster/r.colors$ make
GISRC=/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/
demolocation/.grassrc70 GISBASE=/usr/local/src/grass_trunk/dist.i686-
pc-linux-gnu PATH="/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/
bin:$PATH" PYTHONPATH="/usr/local/src/grass_trunk/dist.i686-pc-linux-
gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/usr/local/src/
grass_trunk/dist.i686-pc-linux-gnu/bin:/usr/local/src/grass_trunk/
dist.i686-pc-linux-gnu/lib:/usr/local/src/grass_trunk/dist.i686-pc-
linux-gnu/lib:" LC_ALL=C /usr/local/src/grass_trunk/dist.i686-pc-linux-
gnu/bin/r.colors --html-description < /dev/null | grep -v '</body>\|</
html>' > r.colors.tmp.html
sed 's!^<DD><b>\([a-z0-9.]*\)</b>:!<DD><img width="80" height="12"  
src="Colortable_\1.png"> <b>\1</b>:!' "r.colors.tmp.html" >  
"r.colors.tmp.html.tmp"
mv -f "r.colors.tmp.html.tmp" "r.colors.tmp.html"
make thumbnails
make[1]: Entering directory `/usr/local/src/grass_trunk/raster/r.colors'
GISRC=/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/
demolocation/.grassrc70 GISBASE=/usr/local/src/grass_trunk/dist.i686-
pc-linux-gnu PATH="/usr/local/src/grass_trunk/dist.i686-pc-linux-gnu/
bin:$PATH" PYTHONPATH="/usr/local/src/grass_trunk/dist.i686-pc-linux-
gnu/etc/python:$PYTHONPATH" LD_LIBRARY_PATH="/usr/local/src/
grass_trunk/dist.i686-pc-linux-gnu/bin:/usr/local/src/grass_trunk/
dist.i686-pc-linux-gnu/lib:/usr/local/src/grass_trunk/dist.i686-pc-
linux-gnu/lib:" LC_ALL=C  ./thumbnails.py
  100%
ERROR: Cannot find either convert or pnmtopng
WARNING: Raster map <tmp_grad_abs_2195> not found
WARNING: <tmp_grad_abs_2195> nothing removed
make[1]: *** [thumbnails] Error 1
make[1]: Leaving directory `/usr/local/src/grass_trunk/raster/r.colors'
make: *** [r.colors.tmp.html] Error 2
rm r.colors.tmp.html
geofem@geofem:/usr/local/src/grass_trunk/raster/r.colors$

##############################################

the second problems is related to the gdal bindings, tring to build  
the gdal-grass plug-in (i'm using gdal from svn)
i had this problem :


geofem@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$ ./
configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/
local/grass-7.0.svn/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for g++ -shared ... yes
user supplied gdal-config (/usr/local/bin/gdal-config)
using /usr/local/lib/gdalplugins as GDAL shared library autoload  
directory
checking for G_asprintf in -lgrass_gis... no
checking for G_putenv in -lgrass_gis... no
configure: error: --with-grass=/usr/local/grass-7.0.svn/ requested,  
but libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to  
include /usr/local/grass-7.0.svn//lib?
geofem@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$ ./
configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/
local/grass-7.0.svn
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for g++ -shared ... yes
user supplied gdal-config (/usr/local/bin/gdal-config)
using /usr/local/lib/gdalplugins as GDAL shared library autoload  
directory
checking for G_asprintf in -lgrass_gis... no
checking for G_putenv in -lgrass_gis... no
configure: error: --with-grass=/usr/local/grass-7.0.svn requested, but  
libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to  
include /usr/local/grass-7.0.svn/lib?
geofem@geofem:/usr/local/src/gdal/frmts/grass/gdal-grass-1.7.0$

i have  :

cat /etc/ld.so.conf.d/grass.conf
/usr/local/grass-7.0.svn/lib


have you any clue on how to fix the gdal-grass build ?

thanks!

Massimo.
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Martin Landa

Re: Grass 7.0 build (debian sid)

Reply Threaded More More options
Print post
Permalink
Hi,

2009/10/14 Massimo Di Stefano <[hidden email]>:

[...]

> ERROR: Cannot find either convert or pnmtopng


install 'convert' (from imagemagick package) or 'pnmtopng'.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Glynn Clements

Re: Grass 7.0 build (debian sid)

Reply Threaded More More options
Print post
Permalink

Martin Landa wrote:

> > ERROR: Cannot find either convert or pnmtopng
>
>
> install 'convert' (from imagemagick package) or 'pnmtopng'.

I've added a g.ppmtopng module which should eliminate the need to
install any additional utilities, provided that GRASS was built with
PNG support (if it wasn't, it will try to use "pnmtopng" or "convert"
instead).

Also, any errors in generating the thumbnails should now be ignored.

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev