Changes between Version 1 and Version 2 of GdalOgrInJavaBuildInstructionsUnix


Ignore:
Timestamp:
May 27, 2008, 1:50:57 PM (16 years ago)
Author:
warmerdam
Comment:

perhaps working?

Legend:

Unmodified
Added
Removed
Modified
  • GdalOgrInJavaBuildInstructionsUnix

    v1 v2  
    2121}}}
    2222
     23== Run the java build ==
     24
     25Do a "make" in gdal/swig/java.
     26
     27You should see a bunch of stuff, possible ending with this:
     28
     29{{{
     30cp ./.libs/*.so ./
     31cp: cannot stat `./.libs/*.so': No such file or directory
     32make: [build] Error 1 (ignored)
     33ant
     34Buildfile: build.xml
     35
     36compile:
     37    [javac] Compiling 33 source files to /wrk/home/warmerda/wrk/gdal-1.5.2/swig/java/build/classes
     38     [echo] compilation complete
     39
     40archive:
     41      [jar] Building jar: /wrk/home/warmerda/wrk/gdal-1.5.2/swig/java/gdal.jar
     42
     43BUILD SUCCESSFUL
     44Total time: 2 seconds
     45}}}
     46
     47Don't worry about the ./.libs/*.so error.  That appears to be something that would apply with libtool builds.
     48
     49== Running something ==
     50
     51While still in gdal/swig/java try:
     52
     53{{{
     54javac apps/gdalinfo.java
     55setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:`pwd`
     56java -classpath `pwd`/gdal.jar:`pwd`:`pwd`/apps gdalinfo
     57}}}
     58
     59With luck you will see the gdalinfo usage message.
     60
     61To deploy you need gdal.jar in your class path, and the four .so files (libgdalconstjni.so, libgdaljni.so, libogrjni.so and libosrjni.so) in your shared library path.
     62