Hi Nav,

If you have installed gdal in your system, probably it will be
autodetected. If you use a custom directory you will need to pass this
information to cmake. There exists two ways:

Use ccmake (you need to install cmake-curses package) .. instead of cmake
.. and search for the entry

GDAL_INCLUDE_DIR                 /usr/include/gdal        (these are my
autodetected values)
GDAL_LIBRARY                     /usr/lib/libgdal1.7.0.so     (these are my
autodetected values)

you can make use of cmake-gui if you feel more comfortable (you need to
install cmake-qt-gui package)

Use the paremeters as you said

cmake ../osg -DGDAL_INCLUDE_DIR=/pathtogdalincludedir
-DGDAL_LIBRARY=/pathtolib

Cheers
>
> 2012/9/12 Nav Joseph <[email protected]>

> @Jordi: Thanks for the timely reply. It helped me get things done fast. I
> see why a mailing list is beneficial.
> Checked with glxinfo, and I do have direct rendering. Don't know what info
> indicates that my drivers are ok though. But I guess that doesn't matter
> because I haven't installed the linux drivers for the graphics card. The
> driver software tells me that I need to remove Nouveau first. Will be doing
> that soon.
>
> How to compile osg with gdal? I had a look at the CMake files, but there
> didn't seem to be any option for gdal. Do I have to run cmake with a
> command like
>
> Code:
> cmake ../osg -DGDAL_INCLUDE_DIR=../gdal/include
> make
> make install
>
>
> How do I find out whether GDAL_INCLUDE_DIR is the correct macro to use or
> not? I'm guessing from what I remember from the Windows CMake GUI.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49965#49965
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to