180 | | svn co http://svn.osgeo.org/gdal/trunk/gdal |
181 | | |
182 | | |
183 | | |
184 | | |
| 180 | svn co http://svn.osgeo.org/gdal/trunk/gdal gdal[[BR]] |
| 181 | $ cd gdal[[BR]] |
| 182 | // Make a configure script[[BR]] |
| 183 | $ xemacs mygdalconfig.sh [[BR]] |
| 184 | // Contents of script:[[BR]] |
| 185 | // Note the gdal configure can be quite lengthy. Edit as required. |
| 186 | // This builds gdal with my libtiff and geotiff |
| 187 | {{{ |
| 188 | #!/bin/sh |
| 189 | |
| 190 | # File: mygdalconfig.sh |
| 191 | # Note: Python needed for QGIS. |
| 192 | |
| 193 | prefix=/work/osgeo/local |
| 194 | |
| 195 | ./configure --prefix=${prefix} --with-kakadu=/work/drb/kakadu/latest --with-geos=/work/osgeo/local/bin/geos-config --with-libtiff=/work/osgeo/local --with-geotiff=/work/osgeo/local --with-mrsid=/work/drb/mrsid/Geo_DSDK-7.0.0.2167 --with-python |
| 196 | |
| 197 | }}} |
| 198 | |
| 199 | // Make the script executable:[[BR]] |
| 200 | $ chmod 755 mygdalconfig.sh |
| 201 | |
| 202 | // Run the cmake command to set up the build system:[[BR]] |
| 203 | $ ./mygdalconfig.sh |
| 204 | |
| 205 | // Make - note the "-j 4" is to use 4 threads.[[BR]] |
| 206 | $ make -j 4 |
| 207 | |
| 208 | // Install to sandbox:[[BR]] |
| 209 | $ make install // Note if your sandbox was on a system slice, i.e. /usr/local you would do: "sudo make install" |
| 210 | |
| 211 | // End of gdal |
| 212 | |
| 213 | // ossim build |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |