Changes between Version 1 and Version 2 of VSIPreload


Ignore:
Timestamp:
May 25, 2015, 10:16:12 PM (9 years ago)
Author:
Robert Coup
Comment:

Formatting fixes

Legend:

Unmodified
Added
Removed
Modified
  • VSIPreload

    v1 v2  
    1111
    12121. Build GDAL configured with `--with-pic`
    13 2.
    14 {{{
    15     g++ -Wl,-soname,libgdal_vsipreload.so.1 -Wall -fPIC port/vsipreload.cpp \
    16     -shared -o libgdal_vsipreload.so.1 -Iport -L. -L.libs \
    17     -Wl,-Bstatic -lgdal -Wl,-Bdynamic -ldl -lpthread -lcurl
     132. Build the VSIPreload library:
     14  {{{
     15    g++ -Wl,-soname,libgdal_vsipreload.so.1 -Wall -fPIC \
     16      port/vsipreload.cpp \
     17      -shared -o libgdal_vsipreload.so.1 -Iport -L. -L.libs \
     18      -Wl,-Bstatic -lgdal \
     19      -Wl,-Bdynamic -ldl -lpthread -lcurl
    1820}}}
    1921
     
    2931== Using vsipreload ==
    3032
    31 Just put LD_PRELOAD before your executable, and add the necessary /vsi... path parts to what you're doing:
     33Just put `LD_PRELOAD` before your executable, and add the necessary `/vsi`... path parts to what you're doing:
    3234
    3335{{{
    34 $ LD_PRELOAD="/home/vagrant/host/c/gdal/libgdal_vsipreload.so.1" ls /vsizip/vsicurl/http://svn.osgeo.org/gdal/trunk/autotest/ogr/data/poly.zip
     36$ LD_PRELOAD="./libgdal_vsipreload.so.1" ls /vsizip/vsicurl/http://svn.osgeo.org/gdal/trunk/autotest/ogr/data/poly.zip
    3537poly.dbf  poly.PRJ  poly.shp  poly.shx
    3638}}}