Changes between Version 62 and Version 63 of Cookbook gdal


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook gdal

    v62 v63  
    2722724. Ensure the configure.win, Makefile.win and RGDAL.def are all correct.  
    273273 
    274 ## set the location of GDAL_HOME in configure.win (mine is GDAL_HOME="C:/FWTools") 
    275 ## Also change libgdal-1.dll to gdal_fw.dll in configure.win 
    276  
    277 Specifically, mine looks like this: 
     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 
     276The configure.win below includes the dll for postgres libq.dll 
    278277 
    279278-//-- start configure.win 
     
    281280#!/bin/sh 
    282281if test -z "$GDAL_HOME" ; then 
    283     GDAL_HOME="C:/FWTools" 
     282    GDAL_HOME="C:\OSGeo4W\bin" 
    284283fi 
    285284echo "GDAL_HOME=${GDAL_HOME}" > src/Makeconf.win 
     
    287286echo "using GDAL_HOME: ${GDAL_HOME}" 
    288287 
    289 mkdir $DPKG/libs 
    290 cp ${GDAL_HOME}/bin/gdal_fw.dll $DPKG/libs 
    291  
     288if test -z "$OSGEO4W_BUILD" ; then 
     289 
     290  if test -z "$R_PACKAGE_DIR" ; then 
     291    R_PACKAGE_DIR=${DPKG} 
     292 fi 
     293 
     294  mkdir "${R_PACKAGE_DIR}/libs" 
     295  cp ${GDAL_HOME}/bin/gdal16.dll "${R_PACKAGE_DIR}/libs" 
     296  cp ${GDAL_HOME}/bin/libexpat.dll "${R_PACKAGE_DIR}/libs" 
     297  cp ${GDAL_HOME}/bin/libpq.dll "${R_PACKAGE_DIR}/libs" 
     298  cp -r ${GDAL_HOME}/share/proj "${R_PACKAGE_DIR}" 
     299  cp -r ${GDAL_HOME}/share/gdal "${R_PACKAGE_DIR}" 
     300  echo "OSGEO= " >> src/Makeconf.win 
     301 
     302else 
     303    echo "OSGEO=-DOSGEO4W" >> src/Makeconf.win 
     304fi 
    292305-//-- end configure.win 
    293306