Robert Osfield writes:
> 
> On 8/13/07, J.P. Delport <[EMAIL PROTECTED]> wrote:
> > $ dpkg -S gdal.h
> > libgdal1-dev: /usr/include/gdal/gdal.h
> >
> > $ ls /usr/include/gdal.h
> > ls: /usr/include/gdal.h: No such file or directory
> >
> > This is on Debian Sid (unstable). The version of 
> libgdal1-dev is 1.4.1-6+b3.
> 
> Thanks for the info.  Looks like things are going walkabout as on my
> Kubunto machine:
> 
> dpkg -S gdal.h
> libgdal1-1.3.2-dev: /usr/include/gdal.h
> 
> Added gdal/gdal.h and gdal1.4.1 to FindGDAL.cmake, this is now checked
> in to SVN, could you let me know if this works.

GDAL provides 'gdal-config' 

Is there no way to use this with cmake ?

$ gdal-config
Usage: gdal-config [OPTIONS]
Options:
        [--prefix[=DIR]]
        [--libs]
        [--dep-libs]
        [--cflags]
        [--version]
        [--ogr-enabled]
        [--formats]

$ gdal-config --libs
c:/MingW/lib/libgdal.a c:/MingW/lib/libgdal.a -lgif -ljpeg -lpng -lz
-L/c/MingW/lib -lcurl -lwinmm -lws2_32 -lz -lws2_32

$ gdal-config --cflags
-Ic:/MingW/include

Cheers

Norman

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to