[Libxtract-commits] SF.net SVN: libxtract: [93] trunk
Status: Alpha
Brought to you by:
postlude
From: <pos...@us...> - 2007-09-05 17:44:31
|
Revision: 93 http://libxtract.svn.sourceforge.net/libxtract/?rev=93&view=rev Author: postlude Date: 2007-09-05 10:44:23 -0700 (Wed, 05 Sep 2007) Log Message: ----------- Updated README and minor buld tweaks for OS X (That will probably break the Linux build (sigh)). Modified Paths: -------------- trunk/README trunk/configure.in trunk/swig/java/Makefile.am trunk/swig/java/test.java Modified: trunk/README =================================================================== --- trunk/README 2007-09-05 14:50:37 UTC (rev 92) +++ trunk/README 2007-09-05 17:44:23 UTC (rev 93) @@ -36,6 +36,54 @@ --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 ---------- Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2007-09-05 14:50:37 UTC (rev 92) +++ trunk/configure.in 2007-09-05 17:44:23 UTC (rev 93) @@ -98,22 +98,7 @@ AM_CONDITIONAL(BUILD_PYTHON, test "x${with_python}" = 'xtrue') -dnl Are we building with fftw? -if [[ "$fft" = "true" ]] ; then - LDFLAGS="$LDFLAGS -lfftw3f" - AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) - AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ - have_pd_hdr=no - echo - echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" - echo - exit - ]) -fi -AM_CONDITIONAL(BUILD_FFT, test "x${fft}" = 'xtrue') - - dnl are we building the simpletest example if [[ "$simpletest" = "true" ]] ; then AC_DEFINE([BUILD_SIMPLETEST], [1], [Build the simpletest example]) @@ -166,12 +151,16 @@ if [[ "$with_java" = "true" ]] ; then AC_PROG_JAVAC - AC_JNI_INCLUDE_DIR + if test "$JAVAC" = "javac" + then + AC_JNI_INCLUDE_DIR + - for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS - do - CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" - done + for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS + do + CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR" + done + fi dnl AC_PROG_JAVAH dnl AC_PATH_PROG(JAVAH,javah) fi @@ -184,6 +173,22 @@ AM_CONDITIONAL(BUILD_SWIG, test "x${swig}" = 'xtrue') +dnl Are we building with fftw? +if [[ "$fft" = "true" ]] ; then + LDFLAGS="$LDFLAGS -lfftw3f" + AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) + AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ + have_pd_hdr=no + echo + echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" + echo + exit + ]) +fi + +AM_CONDITIONAL(BUILD_FFT, test "x${fft}" = 'xtrue') + + dnl ------------------------------------------ dnl ---- do some magic to gues the host opsys dnl ---- taken from libvorbis configure.in Modified: trunk/swig/java/Makefile.am =================================================================== --- trunk/swig/java/Makefile.am 2007-09-05 14:50:37 UTC (rev 92) +++ trunk/swig/java/Makefile.am 2007-09-05 17:44:23 UTC (rev 93) @@ -44,15 +44,15 @@ $(libxtract) .java.class: - $(JAVAC) $(AM_JAVACFLAGS) $(JAVACFLAGS) $(swigjavafiles) -d . -classpath . - cp xtract/core/$@ . + $(JAVAC) $(AM_JAVACFLAGS) $(JAVACFLAGS) $(swigjavafiles) noinst_DATA = jar-stamp # jar-stamp: $(javaclasses) $(javafiles) - $(mkdir_p) xtract/core - $(mkdir_p) xtract/core/src + mkdir -p xtract/core + mkdir -p xtract/core/src cp $(javafiles) xtract/core/src + cp $(javaclasses) xtract/core touch jar-stamp # execjavawrapper_LTLIBRARIES = xtractjavac_wrap.la Modified: trunk/swig/java/test.java =================================================================== --- trunk/swig/java/test.java 2007-09-05 14:50:37 UTC (rev 92) +++ trunk/swig/java/test.java 2007-09-05 17:44:23 UTC (rev 93) @@ -1,5 +1,5 @@ -import xtract.core.*; +import jxtract.core.*; public class test { public static void main(String argv[]) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |