Changes between Version 64 and Version 65 of Cookbook gdal
- Timestamp:
- Feb 1, 2010 9:45:13 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cookbook gdal
v64 v65 246 246 Below is adapter from Roger Bivand 247 247 {{{ 248 Cedric notes for building gdal against OSGeo4W249 250 1- download rgdal sources251 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: 253 253 254 254 set OSGEO4W_BUILD=yes … … 256 256 257 257 258 3-get the Rdll.lib259 >MinGW is avalaible with Rtools260 >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 ... 261 261 cd C:\Program Files\R\R-2.10.1\bin 262 262 C:\Rtools\MinGW\bin\ pexports R.dll > R.exp 263 263 264 using visual c++ (vc9) command line264 ## using visual c++ (vc9) command line 265 265 cd C:\Program Files\R\R-2.10.1\bin 266 266 lib /def:R.exp /out:Rdll.lib … … 270 270 cd ../.. 271 271 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") 277 275 278 276 -//-- start configure.win … … 312 310 ## - and RGDAL.def as supplied in rgdal/src 313 311 314 Place Makefile.win in src/, containing a single line:312 ## Place Makefile.win in src/, containing a single line: 315 313 316 314 all: 317 315 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:\ 320 319 321 320 C:\"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: 329 327 source(system.file("OSGeo4W_test", package="rgdal"), echo=TRUE) 330 328 }}}