diff options
| author | Andrea Antonello <andrea.antonello@gmail.com> | 2004-10-31 08:18:26 +0000 |
|---|---|---|
| committer | Andrea Antonello <andrea.antonello@gmail.com> | 2004-10-31 08:18:26 +0000 |
| commit | 721d37eaaffb65527c16986f295ad879d9e8ccc7 (patch) | |
| tree | a6ef36fa56d20abcc7daf4c52a6d88cf54edef8d /jniwrap | |
| parent | 8384b50e9b962ea010024a8289987f175c35c5ec (diff) | |
| download | PROJ-721d37eaaffb65527c16986f295ad879d9e8ccc7.tar.gz PROJ-721d37eaaffb65527c16986f295ad879d9e8ccc7.zip | |
updated README, fixed shared libs loading bug
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1278 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'jniwrap')
| -rw-r--r-- | jniwrap/README | 13 | ||||
| -rw-r--r-- | jniwrap/org/proj4/Projections.java | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/jniwrap/README b/jniwrap/README index 0489d450..ce0c212e 100644 --- a/jniwrap/README +++ b/jniwrap/README @@ -22,13 +22,16 @@ using the java native interface. Compilation: ------------- -With the right flag during configuration time (see ./configure --help), the -native part of the jproj lib is compiled inside the main proj library and the -java part is automatically built into the jproj.jar library. +To complile the native part, configure has to be run like this: +CFLAGS=-Iinclude2 ./configure --with-jni=include1 +where +include1 = folder in which the header file jni.h resides (usually $JAVA_HOME/include) +include2 = folder in which the header file jni_md.h resides (usually $JAVA_HOME/include/linux or whatever) -The java part as standalone is compiled by running ant inside the "jniwrap" folder. + +The java part is compiled by running ant inside the "jniwrap" folder. This will compile the classes and archive them in a jar library. -This applies to Linux, Macos and Windows (and virtually to every system +It applies to Linux, Macos and Windows (and virtually to every system supporting java). diff --git a/jniwrap/org/proj4/Projections.java b/jniwrap/org/proj4/Projections.java index 6245eb68..07f28217 100644 --- a/jniwrap/org/proj4/Projections.java +++ b/jniwrap/org/proj4/Projections.java @@ -84,7 +84,7 @@ public abstract class Projections static { - System.loadLibrary("jproj"); + System.loadLibrary("proj"); } /** |
