[GRASS-user] A little help compiling Grass 7.0 Beta1?
David Strom
dstrom at ciesin.columbia.edu
Thu Apr 10 13:31:28 PDT 2014
I'm on a Centos 6.4 system. We need BigTiff support, so the Elgis
versions don't work for us.
So, I've built libgeotiff using libtiff4 (from elgis repo), then built
gdal (/usr/local/bin/gdalinfo --version GDAL 1.9.2, released
2012/10/08); did the make installs into /usr/local for both, of course.
Now having problems with Grass 7.0 Beta1, at compile time (make). Seems
like it's not finding gdal lib:
in display subdirectory :
... error while loading shared libraries: libgdal.so.1: cannot open
shared object file: No such file or directory
then again in general subdir, so I notice the pattern & look for that lib:
find /usr/local -name libgdal.so.1 -print
/usr/local/lib/libgdal.so.1
/usr/local/share/gdal-trunk/.libs/libgdal.so.1
/usr/local/hidelib/libgdal.so.1
Any help on how to get past this?
This the configure I'm using, from the suggested:
./configure \
--with-libs=/usr/lib64 \
--with-cxx \
--without-ffmpeg \
--with-gdal=/usr/local/bin/gdal-config \
--without-odbc \
--with-sqlite \
--with-postgres \
--without-mysql \
--with-nls \
--with-python \
--with-cairo \
--with-wxwidgets=/usr/bin/wx-config \
--without-fftw \
--with-freetype --with-freetype-includes=/usr/include/freetype2 \
--enable-largefile \
--with-pthread
/usr/local/bin/gdal-config is this:
more /usr/local/bin/gdal-config
#!/bin/sh
CONFIG_LIBS="-L/usr/local/lib -lgdal"
CONFIG_DEP_LIBS=" -lsqlite3 -lexpat -lgeotiff -ltiff -lpng -L/usr/lib64
-lpq -lz -lpthread -lm -lrt -ldl -lcurl "
CONFIG_PREFIX="/usr/local"
CONFIG_CFLAGS="-I/usr/local/include"
CONFIG_DATA="/usr/local/share/gdal"
CONFIG_VERSION="1.9.2"
CONFIG_OGR_ENABLED=yes
CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts
raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk
airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar
dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwoo
d saga xyz hf2 kmlsuperoverlay ozi ctg e00grid zmap ngsgeoid wcs wms
grib bsb gif jpeg png pcraster rik rasterlite postgisraster"
usage()
{
cat <<EOF
Usage: gdal-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--libs]
[--dep-libs]
[--cflags]
[--datadir]
[--version]
[--ogr-enabled]
[--formats]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
case $1 in
--libs)
echo $CONFIG_LIBS
;;
--dep-libs)
echo $CONFIG_DEP_LIBS
;;
--cflags)
echo $CONFIG_CFLAGS
;;
--datadir)
echo $CONFIG_DATA
;;
--prefix)
echo $CONFIG_PREFIX
;;
--version)
echo $CONFIG_VERSION
;;
--ogr-enabled)
echo $CONFIG_OGR_ENABLED
;;
--formats)
echo $CONFIG_FORMATS
;;
*)
usage 1 1>&2
;;
esac
**** Thanks in advance for any/all assistance.
--
David Strom
More information about the grass-user
mailing list