Hi Dan,

I'm trying to create python bindings for mlt git head.

1. I installed git mlt with:
git clone git://github.com/mltframework/mlt.git
cd mlt
./configure --prefix=/usr --enable-gpl
make clean
make -j3
sudo make install

2. I installed swig and navigated to /scr/swing/python and did:
sudo ./build

and got error:

mlt_wrap.cxx:149:20: fatal error: Python.h: No such file or directory
compilation terminated.

locate Python.h gave:
/usr/include/python2.7_d/Python.h

so i modified line 14 in build script to:
export PYTHON_INCLUDE=`python -c "import sys;print
\"%s/include/python%d.%d_d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"`
this adds "_d" to path

and added line 15:
echo $PYTHON_INCLUDE

Now running /src/swig/python/build gives:
/usr/include/python2.7_d
../../mlt++/MltGeometry.h:62: Warning 509: Overloaded method
Mlt::Geometry::fetch(Mlt::GeometryItem *,float) effectively ignored,
../../mlt++/MltGeometry.h:61: Warning 509: as it is shadowed by
Mlt::Geometry::fetch(Mlt::GeometryItem &,float).
../../mlt++/MltGeometry.h:65: Warning 509: Overloaded method
Mlt::Geometry::insert(Mlt::GeometryItem *) effectively ignored,

--- output from middle clipped

../../mlt++/MltTractor.h:61: Warning 509: as it is shadowed by
Mlt::Tractor::plant_filter(Mlt::Filter *,int).
mlt_wrap.cxx:149:20: fatal error: Python.h: No such file or directory

So the $PYTHON_INCLUDE variable now has value
"/usr/include/python2.7_d" which is the folder where Python.h is, but
#include <Python.h> in mlt_wrap.cxx  still does not find it.

Any ideas on how I should further modify /src/swig/python/build to
create working bindings? I need this to test the "composite" issue on
Flowblade.

Janne

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to