Changes between Version 64 and Version 65 of Cookbook gdal


Ignore:
Timestamp:
Feb 1, 2010 9:45:13 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook gdal

    v64 v65  
    246246Below is adapter from Roger Bivand  
    247247{{{ 
    248 Cedric notes for building gdal against OSGeo4W 
    249  
    250 1- download rgdal sources 
    251  
    252 2- Run in OSGeo4W console, after setting: 
     248## Cedric notes for building gdal against OSGeo4W 
     249 
     250## 1- download rgdal sources 
     251 
     252## 2- Run in OSGeo4W console, after setting: 
    253253 
    254254set OSGEO4W_BUILD=yes 
     
    256256 
    257257 
    258 3-get the Rdll.lib 
    259 > MinGW is avalaible with Rtools 
    260 > install pexports (available at http://sourceforge.net/projects/mingw/files/ somewhere down the long list ... 
     258## 3-get the Rdll.lib 
     259## MinGW is avalaible with Rtools 
     260## install pexports (available at http://sourceforge.net/projects/mingw/files/ somewhere down the long list ... 
    261261cd C:\Program Files\R\R-2.10.1\bin 
    262262C:\Rtools\MinGW\bin\ pexports R.dll > R.exp 
    263263 
    264 using visual c++ (vc9) command line 
     264## using visual c++ (vc9) command line 
    265265cd C:\Program Files\R\R-2.10.1\bin 
    266266lib /def:R.exp /out:Rdll.lib 
     
    270270cd ../.. 
    271271 
    272 4. Ensure the configure.win, Makefile.win and RGDAL.def are all correct.  
    273  
    274 ## set the location of GDAL_HOME in configure.win (mine is GDAL_HOME="C:\OSGeo4W\bin") 
    275 ## Also change libgdal-1.dll to gdal16.dll in configure.win 
    276 The configure.win below includes the dll for postgres libq.dll 
     272## 4. Ensure the configure.win, Makefile.win and RGDAL.def are all correct.  
     273 
     274## set the location of GDAL_HOME in configure.win (mine is GDAL_HOME="C:/OSGeo4W") 
    277275 
    278276-//-- start configure.win 
     
    312310##   - and RGDAL.def as supplied in rgdal/src 
    313311 
    314 Place Makefile.win in src/, containing a single line: 
     312## Place Makefile.win in src/, containing a single line: 
    315313 
    316314all: 
    317315 
    318 5. Install package (rdal sources are still in c:) 
    319 CD C:\ 
     316##5. Install package (my rdal sources are still in c:/) 
     317 
     318## CD C:\ 
    320319 
    321320C:\"Program Files"\R\R-2.10.1\bin\Rcmd INSTALL --build rgdal 
    322 Note if this step does not work look if you have the Rtools properly installed and configured (especially the path) 
    323 Then copy manually all dll of c:/OSGeo4W/bin in the newly rgdal/libs  
    324  
    325  
    326 Post-installation, start R from the OSGeo4W console (command line). If you want 
    327 to check that the OSGeo4W-aware rgdal is present, check the reported support 
    328 file locations, and consider running: 
     321## Note if this step does not work look if you have the Rtools properly installed and configured (especially the path) 
     322## Then copy manually all dll of c:/OSGeo4W/bin in the newly rgdal/libs  
     323 
     324##Post-installation, start R from the OSGeo4W console (command line). If you want 
     325##to check that the OSGeo4W-aware rgdal is present, check the reported support 
     326##file locations, and consider running: 
    329327source(system.file("OSGeo4W_test", package="rgdal"), echo=TRUE) 
    330328}}}