[Freegis-list] Gdal on slackware

Tomas Zajc tzajc at conae.gov.ar
Mon Oct 23 21:48:06 CEST 2006


As a mater of fact for some reason there was nothing on the gcore directory. I 
downloaded back gdal and decompressed using an other method. This time I 
could compile it using "./configure", "make" and "make install". I'm a bit 
lost anda I couldn't find much documantation. 

When I try to run ogr2ogr I get "ogr2ogr: error while loading shared 
libraries: libgdal.so.1: cannot open shared object file: No such file or 
directory".

I got them at:

/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.10.0

Do you know where can I get any documentation on how to compile a C program 
that uses gdal using gcc. Should I use the flags kisted by  
"gdal-config --libs; gdal --dep-libs"? In may case they are:

-L/usr/local/lib -lgdal 
and
-lhdf5 -lgif -ljpeg -ltiff -lpng -lz -lm -lrt -ldl

Thanks, Tomas

On Monday 23 October 2006 15:11, Frank Warmerdam wrote:
> Tomas Zajc wrote:
> > I'm trying to compile gdal-1.3.2 from the source code found at
> > http://www.gdal.org/download.html. After running the configure script I
> > get
> >
> >   Installation directory:    /usr/local
> >   C compiler:                gcc -O2
> >   C++ compiler:              g++ -O2
> >
> >   LIBTOOL support:           yes
> >
> >   LIBZ support:              external
> >   GRASS support:             no
> >   CFITSIO support:           no
> >   PCRaster support:          internal
> >   NETCDF support:            no
> >   LIBPNG support:            external
> >   LIBTIFF support:           external
> >   LIBGEOTIFF support:        internal
> >   LIBJPEG support:           external
> >   LIBGIF support:            external
> >   OGDI support:              no
> >   HDF4 support:              no
> >   HDF5 support:              yes
> >   KAKADU support:            no
> >   JASPER support:            no
> >   ECW support:               no
> >   MrSID support:             no
> >   POSTGRESQL support:        no
> >   MySQL support:             no
> >   XERCES support:            no
> >   ODBC support:              no
> >   OCI support:               no
> >   SDE support:               no
> >   DODS support:              no
> >   SQLite support:            no
> >   DWGdirect support          no
> >   PANORAMA GIS support:      no
> >   GEOS support:              no
> >
> >   Statically link PROJ.4:    no
> >
> >   Traditional Python:        yes
> >   NG SWIG Bindings:
> >
> >   enable OGR building:       yes
> >
> > And when I run make i get the following error:
> >
> > /bin/sh /home/tomas/gdal-1.3.2/libtool --mode=compile
> > g++ -Wall  -O2   -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port  -c -o
> > cpl_vsil_unix_stdio_64.o cpl_vsil_unix_stdio_64.cpp
> >  g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c
> > cpl_vsil_unix_stdio_64.cpp  -fPIC -DPIC -o .libs/cpl_vsil_unix_stdio_64.o
> >  g++ -Wall -O2 -DOGR_ENABLED -I/home/tomas/gdal-1.3.2/port -c
> > cpl_vsil_unix_stdio_64.cpp -o cpl_vsil_unix_stdio_64.o >/dev/null 2>&1
> > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/port'
> > (cd gcore; make)
> > make[1]: Entering directory `/home/tomas/gdal-1.3.2/gcore'
> > make[1]: *** No targets specified and no makefile found.  Stop.
> > make[1]: Leaving directory `/home/tomas/gdal-1.3.2/gcore'
> > make: *** [core-target] Error 2
> >
> >  Any sugestion?
>
> Tomas,
>
> Is there a GNUmakefile in the gdal-1.3.2/gcore directory?  I'm really not
> too clear on what the port directory would build, but the gcore directory
> would not.
>
> Best regards,




More information about the Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)