QGIS/doc/install_guide/node8.html
gsherman f5c424a8d6 Merged changes in 0.5 release branch to MAIN
git-svn-id: http://svn.osgeo.org/qgis/trunk@2094 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-10-04 00:53:49 +00:00

167 lines
5.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>GDAL/OGR</TITLE>
<META NAME="description" CONTENT="GDAL/OGR">
<META NAME="keywords" CONTENT="install">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="install.css">
<LINK REL="next" HREF="node9.html">
<LINK REL="previous" HREF="node7.html">
<LINK REL="up" HREF="install.html">
<LINK REL="next" HREF="node9.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html146"
HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html142"
HREF="install.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html136"
HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html144"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html147"
HREF="node9.html">Qt</A>
<B> Up:</B> <A NAME="tex2html143"
HREF="install.html">Building and Installing QGIS</A>
<B> Previous:</B> <A NAME="tex2html137"
HREF="node7.html">GRASS</A>
&nbsp; <B> <A NAME="tex2html145"
HREF="node1.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION00080000000000000000">
GDAL/OGR</A>
</H1>
The GDAL and OGR libraries provide support for raster and vector data formats. QGIS makes use of both of these libraries (which come bundled in one distribution).
<P>
Note: A Linux binary of GDAL is available at <TT><A NAME="tex2html12"
HREF="http://www.remotesensing.org/gdal">http://www.remotesensing.org/gdal</A></TT>. If you choose to install the binary you will also need to download and unpack the source tree since QGIS needs the header files in order to compile.
<P>
To install GDAL/OGR from source:
<OL>
<LI>Download the GDAL distribution from <TT><A NAME="tex2html13"
HREF="http://www.remotesensing.org/gdal">http://www.remotesensing.org/gdal</A></TT>. You should use version 1.1.9 or higher. Versions prior to 1.1.9 contained a bug that caused problems when a null feature was encountered. If you want to build vector support for GRASS, you must use GDAL 1.2.3.
<P>
</LI>
<LI>Untar the distribution
<PRE>
tar xfvz /../path/../gdal-x.x.x.tar.gz
</PRE>
<P>
</LI>
<LI>Change to the gdal-x.x.x subdirectory that was created by step 2
<PRE>
cd gdal-x.x.x
</PRE>
<P>
</LI>
<LI>Configure GDAL
<PRE>
./configure
</PRE>
or if you want GRASS support
<PRE>
./configure --with-grass=&lt;full path to grass install&gt;
</PRE>
Depending on the GDAL version you are building, it may be necessary to specify -without-ogdi when running configure if you don't have the OGDI libary avaiable on your system.
<P>
</LI>
<LI>Build and install GDAL:
<PRE>
make
su
make install
</PRE>
<P>
</LI>
<LI>In order to run GDAL after installing it is necessary for the shared
library to be findable. This can often be accomplished by setting
LD_LIBRARY_PATH to include /usr/local/lib. On Linux, you can add
/usr/local/lib (or whatever path you used for installing GDAL) to
/etc/ld.so.conf and run ldconfig as root.
<P>
</LI>
<LI>Make sure that gdal-config (found in the bin subdirectory where GDAL was installed) is included in the PATH. If necessary, add the path to gdal-config to the PATH environment variable.
<PRE>
export PATH=/../path/../gdal-config:$PATH
</PRE>
<P>
</LI>
<LI>Check the install by running:
<PRE>
gdal-config --prefix
</PRE>
<P>
</LI>
</OL>
<P>
If you've had problems during the installation, refer to this manual, where the whole process is described with some more detail: <TT><A NAME="tex2html14"
HREF="http://www.remotesensing.org/gdal/gdal_building.html">http://www.remotesensing.org/gdal/gdal_building.html</A></TT>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html146"
HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html142"
HREF="install.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html136"
HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html144"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html147"
HREF="node9.html">Qt</A>
<B> Up:</B> <A NAME="tex2html143"
HREF="install.html">Building and Installing QGIS</A>
<B> Previous:</B> <A NAME="tex2html137"
HREF="node7.html">GRASS</A>
&nbsp; <B> <A NAME="tex2html145"
HREF="node1.html">Contents</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Gary Sherman
2004-10-01
</ADDRESS>
</BODY>
</HTML>