Changes between Initial Version and Version 1 of ossimjni_build


Ignore:
Timestamp:
May 26, 2011, 1:53:42 PM (13 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ossimjni_build

    v1 v1  
     1
     2== Building ossimjni module: ==
     3
     4This is an example from linux.  Adjust for windows as required.
     5
     6'''Get the code:'''
     7
     8{{{
     9$ svn co http://svn.osgeo.org/ossim/trunk/ossimjni ossimjni
     10}}}
     11
     12'''Build the c++ side'''
     13
     14{{{
     15$ cd /work/osgeo/build
     16$ xemacs ossim-osgeo-cmake-config.sh
     17Add line:
     18-DOSSIM_BUILD_ADDITIONAL_DIRECTORIES="${build_dir}/ossimjni" \
     19
     20Note if you have multiple addition projects to build separate by a semi-colon;
     21
     22$ rm CMakeCache.txt
     23$ ./ossim-osgeo-cmake-config.sh
     24...
     25**************** begin ossimjni project cmake setup ****************
     26**************** end ossimjni project cmake setup ****************
     27...
     28}}}
     29
     30'''Generate the swig bindings and compile the java with ant'''
     31
     32{{{
     33$ cd /work/osgeo/ossimjni/java/
     34$ cp local.properties.template local.properties
     35$ xemacs local.properties
     36$ ant
     37Buildfile: build.xml
     38     [echo] module.name = ossimjni
     39     [echo] use ant -projecthelp to see targets.
     40     [echo] jdk.home        = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
     41     [echo] os.name         = Linux
     42     [echo] ossim.home      = /work/osgeo/ossim
     43     [echo] ossimjni.home   = /work/osgeo/ossimjni
     44     [echo] basedir         = /home/work/osgeo/ossimjni/java
     45
     46check-reqired-properties:
     47
     48initialize-environment:
     49
     50generate-wrappers:
     51     [echo] module.name = ossimjni
     52     [echo] use ant -projecthelp to see targets.
     53     [echo] jdk.home        = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
     54     [echo] os.name         = Linux
     55     [echo] ossim.home      = /work/osgeo/ossim
     56     [echo] ossimjni.home   = /work/osgeo/ossimjni
     57     [echo] basedir         = /home/work/osgeo/ossimjni/java
     58
     59generate-wrapper:
     60    [mkdir] Created dir: /home/work/osgeo/ossimjni/java/build/generated_src
     61     [echo] ossimjni
     62     [echo] /home/work/osgeo/ossimjni/java/swig/ossimjni.i
     63
     64compile-cpp-wrappers:
     65    [mkdir] Created dir: /home/work/osgeo/ossimjni/java/build/lib
     66    [mkdir] Created dir: /home/work/osgeo/ossimjni/java/build/obj
     67       [cc] 1 total files to be compiled.
     68       [cc] Starting link
     69
     70compile-java-wrappers:
     71    [mkdir] Created dir: /home/work/osgeo/ossimjni/java/build/classes
     72    [javac] Compiling 8 source files to /home/work/osgeo/ossimjni/java/build/classes
     73
     74compile-java:
     75    [javac] Compiling 7 source files to /home/work/osgeo/ossimjni/java/build/classes
     76
     77create-jar:
     78      [jar] Building jar: /home/work/osgeo/ossimjni/java/build/lib/ossimjni.jar
     79
     80build:
     81
     82BUILD SUCCESSFUL
     83}}}
     84
     85'''Test'''
     86
     87{{{
     88$ java -Djava.library.path=/work/osgeo/ossimjni/java/build/lib -cp /work/osgeo/ossimjni/java/build/lib/ossimjni.jar org.ossim.jni.apps.OssimInfo /data1/tif/point-tif-ovr.tif
     89image0.band0.max_value:  255
     90image0.band0.min_value:  1
     91image0.band0.null_value:  0
     92image0.band1.max_value:  255
     93image0.band1.min_value:  1
     94image0.band1.null_value:  0
     95image0.band2.max_value:  255
     96image0.band2.min_value:  1
     97image0.band2.null_value:  0
     98image0.decimal_degrees_per_pixel_lat:  0.000224652629478557
     99image0.decimal_degrees_per_pixel_lon:  0.00030418128582111
     100image0.decimations:  (1,1) (0.5,0.5) (0.25,0.25) (0.125,0.125) (0.0625,0.0625) (0.03125,0.03125) (0.015625,0.015625) (0.0078125,0.0078125)
     101image0.entry:  0
     102image0.gsd:  (24.9824476685318,24.9824453696149)
     103image0.image_handler:  ossimTiffTileSource
     104image0.image_size:  (1000,1000)
     105image0.ll_lat:  42.3815978380446
     106image0.ll_lon:  -90.7879645973049
     107image0.lr_lat:  42.3912153358375
     108image0.lr_lon:  -90.4851680233695
     109image0.lr_x:  999
     110image0.lr_y:  999
     111image0.meters_per_pixel_x:  24.9824476685318
     112image0.meters_per_pixel_y:  24.9824453696149
     113image0.number_decimation_levels:  8
     114image0.number_input_bands:  3
     115image0.number_lines:  1000
     116image0.number_output_bands:  3
     117image0.number_samples:  1000
     118image0.overview_handler:  ossimTiffTileSource
     119image0.projection.central_meridian:  -87
     120image0.projection.datum:  WGE
     121image0.projection.elevation_lookup_flag:  0
     122image0.projection.ellipse_code:  WE
     123image0.projection.ellipse_epsg_code:  7030
     124image0.projection.ellipse_name:  WGS 84
     125image0.projection.false_easting_northing:  (500000,0)
     126image0.projection.false_easting_northing_units:  meters
     127image0.projection.gcs_code:  4326
     128image0.projection.hemisphere:  N
     129image0.projection.major_axis:  6378137
     130image0.projection.minor_axis:  6356752.3142
     131image0.projection.origin_latitude:  0
     132image0.projection.pcs_code:  32616
     133image0.projection.pixel_scale_units:  meters
     134image0.projection.pixel_scale_xy:  (25,25)
     135image0.projection.srs_name:  EPSG:32616
     136image0.projection.tie_point_units:  meters
     137image0.projection.tie_point_xy:  (188150,4724075)
     138image0.projection.type:  ossimUtmProjection
     139image0.projection.zone:  16
     140image0.radiometry:  8-bit
     141image0.target_rrds:  0
     142image0.tie_point_lat:  42.6060258148936
     143image0.tie_point_lon:  -90.8015523744828
     144image0.type:  ossimImageGeometry
     145image0.ul_lat:  42.6060258148936
     146image0.ul_lon:  -90.8015523744828
     147image0.ul_x:  0
     148image0.ul_y:  0
     149image0.ur_lat:  42.6157187475369
     150image0.ur_lon:  -90.4976752699475
     151number_entries:  1
     152}}}
     153
     154
     155
     156
     157