[Ubuntu] GDAL compilation
Johan Van de Wauw
johan.vandewauw at gmail.com
Fri Jan 6 14:09:41 EST 2012
It is not needed to recompile gdal to be able to compile your program.
Make sure that the libgdal1-dev package installed and then
Antonio gives the right answer: you should run
On Thu, Jan 5, 2012 at 9:43 PM, Antonio Valentino
<antonio.valentino at tiscali.it> wrote:
> $ gcc -o test gdalprogram.c -I /usr/include/gdal -lgdal1.7.0
Or you should adapt to whatever version of libgdal is installed (ls
/usr/lib/libgdal*.so will tell you).
eg for libgdal1.8.0.so add -lgdal1.8.0
This will link your executable to the the gdal library.
Johan
>
> best regards
>
> --
> Antonio Valentino
> _______________________________________________
> UbuntuGIS mailing list
> Ubuntu at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/ubuntu
> http://trac.osgeo.org/ubuntugis/wiki
More information about the Ubuntu
mailing list