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/org/mltframework
18 swig -c++ -I../../melted++ `pkg-config mlt++ --cflags` -java -outdir src_swig/org/mltframework -package org.mltframework melted.i || exit $?
21 g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../melted++ `pkg-config mlt++ --cflags` melted_wrap.cxx $JAVA_INCLUDE || exit $?
24 gcc -shared melted_wrap.o -L../../melted++ -lmelted++ -o libmelted_java.so || exit $?
27 javac `find src_swig -name '*.java'` || exit $?
29 export CLASSPATH=`pwd`/src_swig
31 echo "Java command not found"