[GRASS-user] compile grass gdal from svn

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Thu Jan 29 14:27:16 EST 2009


On Thu, 2009-01-29 at 20:11 +0100, Paolo Craveri wrote:
> Hi to all
> 
> 
> I have just build gdal and grass (6.5) from their respective  svn sources.
> 
> When I start grass, I get this error:
> 
> """
> WARNING: Digitization tool is disabled (libgdal1.5.0.so.1: cannot open
> shared object file: No such file or directory). Detailed information
> in README file.

[...]

> I have read README already.
> 
> There are not others gdal install in the system: all packages from
> official Ubuntu repositories have been completely removed by apt.
> 
> It seems wx can't find gdal (libgdal1.5.0.so.1 ): but I compiled gdal
> from svn source which version is >=1.6.
> 
> I compiled following the script attached (not a true scrip, just a
> reminder and same notes about what I'm going to do! If it  works it
> will be useful). I updated my /etc/ld.so.conf and run ldconfig as
> root. I also link grass library into gdal directory and compile
> gdal-grass plugin -with-grass=${DIR_INST_GRASS} and
> --with-gdal=${DIR_INST_GDAL}/bin/gdal-config.
> 
> What's wrong?

Ciao Paolo!

I don't remember facing this error. Are you 100% you removed libgdal
from Ubuntu repositories?
# sudo apt-get purge libgdal1-1.5.0

Also, "sudo make distclean" before re-compiling?

Maybe try to remove manually everything that "is" GDAL? Here are my
findings looking for GDAL on my machine:

=============================
(1)
/usr/local/bin
/usr/local/bin/gdal-config
/usr/local/bin/gdal2tiles.py
/usr/local/bin/gdal2xyz.py
/usr/local/bin/gdal_contour
/usr/local/bin/gdal_grid
/usr/local/bin/gdal_merge.py
/usr/local/bin/gdal_rasterize
/usr/local/bin/gdal_retile.py
/usr/local/bin/gdal_translate
/usr/local/bin/gdaladdo
/usr/local/bin/gdalchksum.py
/usr/local/bin/gdalenhance
/usr/local/bin/gdalident.py
/usr/local/bin/gdalimport.py
/usr/local/bin/gdalinfo
/usr/local/bin/gdalmanage
/usr/local/bin/gdaltindex
/usr/local/bin/gdaltransform
/usr/local/bin/gdalwarp

(2) 
/usr/local/share
/usr/local/share/gdal

(3) 
/usr/local/lib
/usr/local/lib/libgdal.a
/usr/local/lib/libgdal.la
/usr/local/lib/libgdal.so
/usr/local/lib/libgdal.so.1
/usr/local/lib/libgdal.so.1.12.3

in  /usr/local/include/
/usr/local/include/gdal.h
/usr/local/include/gdal_alg.h
/usr/local/include/gdal_frmts.h
/usr/local/include/gdal_pam.h
/usr/local/include/gdal_priv.h
/usr/local/include/gdal_rat.h
/usr/local/include/gdal_version.h
/usr/local/include/gdal_vrt.h
/usr/local/include/gdalgrid.h
/usr/local/include/gdaljp2metadata.h
/usr/local/include/gdalwarper.h
=====================================


The "configuration" parameters I use for GRASS (under Ubuntu II 64-bit)
are:
====================================================================
CFLAGS="-g -Wall" LDFLAGS="-s" ./configure \
     --enable-64bit \
     --with-libs=/usr/lib64 \
     --with-cxx \
     --with-freetype=yes \
     --with-freetype-includes="/usr/include/freetype2/" \
     --with-postgres=no \
     --with-sqlite=yes \
     --enable-largefile=yes \
     --with-tcltk-includes="/usr/include/tcl8.4/" \
     --with-freetype-includes=/usr/include/freetype2 \
     --with-opengl-libs=/usr/include/GL \
     --with-readline \
     --with-python=yes \
     --with-proj-share=/usr/local/share/proj/ \
     --with-wxwidgets \
     --with-cairo \
     --with-ffmpeg=yes --with-ffmpeg-includes="/usr/include/ffmpeg/"
====================================================================

Kind regards, Nikos



More information about the grass-user mailing list