From 9146b4aa6c60da029791138a9859b2bde9f83fd9 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Wed, 5 Sep 2007 17:44:23 +0000 Subject: Updated README and minor buld tweaks for OS X (That will probably break the Linux build (sigh)). --- README | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'README') diff --git a/README b/README index cfbba22..5c71263 100644 --- a/README +++ b/README @@ -36,6 +36,54 @@ There following configure flags are optional: --enable-fft (to enable functions that require fftw3) --enable-simpletest (to build the simpletest example) +Building the Python bindings +---------------------------- + +To build the python bindings, add to your configure flags: + +--enable-swig --with-python + +This requres additional dependencies to be resolved: + +swig >= 1.3 +python (with development files) >= 2.5 + +It might work with earlier versions of Python, but this has not been tested. + +If you do not have the 'standard' version of Python on OS X, you might need to tell the configure script where the python library is e.g.: + +./configure --your-flags LDFLAGS="-L/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/" + +to find your Python library type: + +locate libpython + +Building the Java bindings +-------------------------- + +To build the java bindings, add to your configure flags: + +--enable-swig --with-java + +This requres additional dependencies to be resolved: + +swig >= 1.3 +java (with development files) >= 2.0 + +It might work with other versions of Java, but this has not been tested. + +On OS X, you will probably need to set your CLASSPATH environment variable before running ./configure + +export CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar + +On OS X, you also probably need to tell the configure script where to find your Java (JNI) headers. + +./configure --flags CFLAGS="-I/System/Library/Frameworks/JavaVM.framework/Headers" + +To find out where your headers are: + +locate jni.h + Disclaimer ---------- -- cgit v1.2.3