[GRASS-dev] Grass 7.0 build (debian sid)

Massimo Di Stefano massimodisasha at yahoo.it
Wed Oct 14 05:55:41 EDT 2009


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 a geofem:/usr/local/src/grass_trunk$ cd /usr/local/src/ 
grass_trunk/raster/r.colors
geofem a 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 a 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 a 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 a 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 a 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.


More information about the grass-dev mailing list