3 path=`which java 2> /dev/null`
7 # Locate the path for the include
11 # Change this as needed
12 export JAVA_INCLUDE="-I$path/include -I$path/include/linux"
17 mkdir -p src_swig/net/sourceforge/mltpp
18 swig -c++ -I/usr/local/include/mlt++ `mlt-config --cflags` -java -outdir src_swig/net/sourceforge/mltpp -package net.sourceforge.mltpp mltpp.i || exit $?
21 g++ -D_GNU_SOURCE -c -rdynamic -pthread -I/usr/local/include/mlt++ `mlt-config --cflags` mltpp_wrap.cxx $JAVA_INCLUDE || exit $?
24 ld -shared mltpp_wrap.o -lmlt++ -o libmltpp_java.so || exit $?
27 javac `find src_swig -name '*.java'` || exit $?
29 export CLASSPATH=`pwd`/src_swig
32 echo "Java command not found"