X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fswig%2Fpython%2Fbuild;h=7c7ff2315b4b7c4f0fe75d32ca5c689c5a9b0eb4;hb=2bce409ea8875f5375b203d48ca9991bc1b38e7d;hp=7b980c30864c7a6e4fea1cad787d1bbf181dfce9;hpb=d819f1cdd34e1bc2c78fb8b0efc6995b25978dcc;p=melted diff --git a/mlt++/swig/python/build b/mlt++/swig/python/build index 7b980c3..7c7ff23 100755 --- a/mlt++/swig/python/build +++ b/mlt++/swig/python/build @@ -2,7 +2,7 @@ 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])"` @@ -18,7 +18,7 @@ then 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