Changes between Version 7 and Version 8 of BuildingOnUnix


Ignore:
Timestamp:
Dec 9, 2011, 4:32:00 PM (12 years ago)
Author:
EliL
Comment:

Provide one example of static build (with java and mdb too)

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOnUnix

    v7 v8  
    3737 * If you are trying to install as other than root (to your own tree set with --prefix) you will likely have problems with the python since it always tries to install under the site-packages directory for the installed python tree.  If you don't need python support you can suppress it at configure using --without-python, or override the python module output directory at configure time with the --with-pymodir='''directory'''
    3838
     39 * Static builds of GDAL are possible.  Here is one route that worked for me on Ubuntu 10.04 at about revision 23504 (you may want to take caution and figure out if there is a better way).  This example has java and mdb but shouldn't be required.  openjdk-6-jre and openjdk-6-jdk must be installed if you want --with-java.  ./configure --with-jave=yes --with-mdb=yes --without-ld-shared --disable-shared --enable-static.  Then copy just /usr/bin/ogrinfo and ogr2ogr to another machine with similar environment (minus compiling tools, etc), follow [http://gdal.org/ogr/drv_mdb.html mdb format page] if you are using mdb.
    3940
    4041''A Working Example - Ubuntu 7.1 w/ GDAL 1.5''