From 721d37eaaffb65527c16986f295ad879d9e8ccc7 Mon Sep 17 00:00:00 2001 From: Andrea Antonello Date: Sun, 31 Oct 2004 08:18:26 +0000 Subject: updated README, fixed shared libs loading bug git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1278 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- jniwrap/README | 13 ++++++++----- 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"); } /** -- cgit v1.2.3