swig/python/play.py: fix syntax error reported by Jonathon Thomas.
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1297
d19143bc-622f-0410-bfdd-
b5b2a6649095
g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `pkg-config mlt-framework --cflags` mltpp_wrap.cxx $JAVA_INCLUDE || exit $?
# Create the module
- ld -shared mltpp_wrap.o -L../../src -lmlt++ -o libmltpp_java.so || exit $?
+ gcc -shared mltpp_wrap.o -L../../src -lmlt++ -o libmltpp_java.so || exit $?
# Compile the test
javac `find src_swig -name '*.java'` || exit $?
path=`which python 2> /dev/null`
-if [ $? == 0 ]
+if [ $? = 0 ]
then
# Change this as needed
export PYTHON_INCLUDE=`python -c "import sys;print \"%s/include/python%d.%d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"`
g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config mlt-framework --cflags` -I$PYTHON_INCLUDE mltpp_wrap.cxx || exit $?
# Create the module
- ld -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?
+ gcc -shared mltpp_wrap.o -L../../src -lmlt++ -o _mltpp.so || exit $?
else
echo Python not installed.
exit 1
import sys
# Start the mlt system
-mltpp.Factory.init( )
+mltpp.Factory().init( )
# Establish a profile
profile = mltpp.Profile( )
g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `pkg-config mlt-framework --cflags` mltpp_wrap.cxx || exit 1
# Create the module
- ld -shared mltpp_wrap.o -L../../src -lmlt++ -o mltpp.so || exit 1
+ gcc -shared mltpp_wrap.o -L../../src -lmlt++ -o mltpp.so || exit 1
else
echo "Unable to locate tclsh."
exit 1