Hi Sanghyung,

GDAL is not part of the OSG, it's only used by the OSG's gdal plugin,
so you shouldn't be setting the GDAL_INCLUDE_DIR to point the
OpenSceneGraph, rather you should be pointing it to whereever you have
GDAL headers installed - from the sound of it this will be the 3rd
party dependencies folder.

Robert.

On Thu, Jun 9, 2011 at 3:26 PM, Sanghyung Ahn <korash0...@gmail.com> wrote:
> Hi,
>
> I am newbie here. And I am trying to use osgEarth. So I am installing OSG 
> 2.8.4 first to get started.
>
> osgEarth needs GDAL and CURL 3rdParty dependencies. But I think OSG 2.8.4 has 
> GDAL and CURL's necessary INCLUDE_DIR and LIBRARY. But when I try to build 
> using CMake 2.8.4 to Visual Studio 9 (2008-32bit), it finds CURL, but doesn't 
> GDAL. The values of GDAL_INCLUDE_DIR and GDAL_LIBRARY are:
>
> 1. GDAL_INCLUDE_DIR | GDAL_INCLUDE_DIR-NOTFOUND
> 2. GDAL_LIBRARY | GDAL_LIBRARY-NOTFOUND
>
> Why CMake cannot locate those two names? Do I have to set GDAL_INCLUDE_DIR 
> manually to C:\OpenSceneGraph-2.8.4\3rdParty\include.
>
> If so, the library of "gdal_i.lib" is the one that I have to locate manually 
> for GDAL_LIBRARY?
>
> I know that this doesn't affect to run OSG only. I just want to make sure 
> this for osgEarth prerequisites. I really need help here.
>
> Thank you!
>
> Cheers,
> Sanghyung
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=40277#40277
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to