On Thu, Mar 25, 2010 at 9:51 AM, Brian Amos <[email protected]> wrote:
> Thanks for the replay, Dan,
>
> I've previously installed python-dev:
> bear...@bearmos-desktop:~$ sudo apt-get install python-dev
> [sudo] password for bearmos:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-dev is already the newest version.
>
> I've been trying to get things setup so I can take advantage of VDPAU based
> decoding available in ffmpeg, as well as mp3 encoding support (which is why
> i started by rebuilding ffmpeg).  After rebuilding/install ffmpeg, I didn't
> see any additional available codecs in OpenShot, so I figured I might needed
> to rebuild mlt as well (I had 0.4.10 previously, i think), which is where I
> am now.
>
> Could there be something wrong with the way python is installed, an
> environment variable, broken sym link, etc?

Generally, I do not like to provide a lot of assistance with build
problems and hope that others are willing to help out in this area
since I do not get much help with the code or bug reports. Basically,
the problem is very simple. The placement of my previous reply
highlighted it. The compiler could not locate Python.h. Why? Where is
it on your system? 'locate Python.h' Look at the
mlt/src/swig/python/build script. It runs the following to attempt to
locate it:
python -c "import sys;print
\"%s/include/python%d.%d\"%(sys.prefix,sys.version_info[0],sys.version_info[1])"

Now, you run that manually. Did it return a path or an error? If a
path, is there a Python.h in there? This is all I can help you with
right now. If no one on this list helps further, you might ask around
OpenShot forums/lists.

> On Thu, Mar 25, 2010 at 12:09 PM, Dan Dennedy <[email protected]> wrote:
>>
>> On Tue, Mar 23, 2010 at 8:33 PM, Brian Amos <[email protected]> wrote:
>> > Hello,
>> >
>> > I've been trying to build mlt 0.5.2 for a little while now, I had quite
>> > a
>> > few ffmpeg errors which were sorted out by following the tips here:
>> > http://www.mltframework.org/twiki/bin/view/MLT/BuildTips
>> >
>> > I'm running Ubuntu 9.10 and currently having issues with building python
>> > bindings with the swig option (required by OpenShot, I believe).
>>
>> There should be a package for this version by now.
>>
>> > here's the config I'm using: ./configure --enable-gpl --enable-ffplay
>> > --enable-shared options --swig-languages=python
>>
>> "--enable-ffplay --enable-shared options" is meaningless, does nothing.
>>
>> > and here's a snippet of the build output:
>> >
>> > make[1]: Entering directory `/usr/local/src/mlt-0.5.2/src/swig'
>> > list='python'; \
>> >     for subdir in $list; do \
>> >         if [ -x $subdir/build -a ! -f .$subdir -o all = clean ] ; \
>> >         then echo -n Building $subdir... ; \
>> >             cd $subdir && output=`./build all 2>&1` ; \
>> >             if [ $? -eq 0 ] ; \
>> >             then echo OK && touch ../.$subdir ; \
>> >             else echo $output && exit 1 ; \
>> >             fi ; \
>> >             cd .. ; \
>> >             if [ -f $subdir/Makefile -a -f .$subdir ] ; \
>> >             then make -C $subdir all || exit 1 ; \
>> >             fi ; \
>> >             if [ all = clean ] ; \
>> >             then rm -f .$subdir ; \
>> >             fi ; \
>> >         fi \
>> >     done
>> > Building python...../../mlt++/MltGeometry.h:62: Warning(509): Overloaded
>> > method Mlt::Geometry::fetch(Mlt::GeometryItem *,float) is shadowed by
>> > Mlt::Geometry::fetch(Mlt::GeometryItem &,float) at
>> > ../../mlt++/MltGeometry.h:61. ../../mlt++/MltGeometry.h:65:
>> > Warning(509):
>> > Overloaded method Mlt::Geometry::insert(Mlt::GeometryItem *) is shadowed
>> > by
>> > Mlt::Geometry::insert(Mlt::GeometryItem &) at
>> > ../../mlt++/MltGeometry.h:64.
>> > ../../mlt++/MltGeometry.h:70: Warning(509): Overloaded method
>> > Mlt::Geometry::next_key(Mlt::GeometryItem *,int) is shadowed by
>> > Mlt::Geometry::next_key(Mlt::GeometryItem &,int) at
>> > ../../mlt++/MltGeometry.h:69. ../../mlt++/MltGeometry.h:72:
>> > Warning(509):
>> > Overloaded method Mlt::Geometry::prev_key(Mlt::GeometryItem *,int) is
>> > shadowed by Mlt::Geometry::prev_key(Mlt::GeometryItem &,int) at
>> > ../../mlt++/MltGeometry.h:71. ../../mlt++/MltProducer.h:48:
>> > Warning(509):
>> > Overloaded method Mlt::Producer::Producer(Mlt::Producer *) is shadowed
>> > by
>> > Mlt::Producer::Producer(Mlt::Producer &) at
>> > ../../mlt++/MltProducer.h:47.
>> > ../../mlt++/MltPlaylist.h:99: Warning(509): Overloaded method
>> > Mlt::Playlist::insert_at(int,Mlt::Producer &) is shadowed by
>> > Mlt::Playlist::insert_at(int,Mlt::Producer *) at
>> > ../../mlt++/MltPlaylist.h:98. ../../mlt++/MltPlaylist.h:98:
>> > Warning(509):
>> > Overloaded method Mlt::Playlist::insert_at(int,Mlt::Producer *,int) is
>> > shadowed by Mlt::Playlist::insert_at(int,Mlt::Producer &,int) at
>> > ../../mlt++/MltPlaylist.h:99. ../../mlt++/MltTractor.h:59: Warning(509):
>> > Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition *) is
>> > shadowed by Mlt::Tractor::plant_transition(Mlt::Transition &) at
>> > ../../mlt++/MltTractor.h:58. ../../mlt++/MltTractor.h:58: Warning(509):
>> > Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition &,int)
>> > is
>> > shadowed by Mlt::Tractor::plant_transition(Mlt::Transition *,int) at
>> > ../../mlt++/MltTractor.h:59. ../../mlt++/MltTractor.h:59: Warning(509):
>> > Overloaded method Mlt::Tractor::plant_transition(Mlt::Transition
>> > *,int,int)
>> > is shadowed by Mlt::Tractor::plant_transition(Mlt::Transition &,int,int)
>> > at
>> > ../../mlt++/MltTractor.h:58. ../../mlt++/MltTractor.h:61: Warning(509):
>> > Overloaded method Mlt::Tractor::plant_filter(Mlt::Filter *) is shadowed
>> > by
>> > Mlt::Tractor::plant_filter(Mlt::Filter &) at
>> > ../../mlt++/MltTractor.h:60.
>> > ../../mlt++/MltTractor.h:60: Warning(509): Overloaded method
>> > Mlt::Tractor::plant_filter(Mlt::Filter &,int) is shadowed by
>> > Mlt::Tractor::plant_filter(Mlt::Filter *,int) at
>> > ../../mlt++/MltTractor.h:61. mlt_wrap.cxx:145:20: error: Python.h: No
>> > such
>> > file or directory
>>
>> This means you to install the python-dev package.
>>
>> > mlt_wrap.cxx:2567:4: error: #error "This python version
>> > requires swig to be run with the '-classic' option" mlt_wrap.cxx:751:
>> > error:
>> > expected initializer before ‘*’ token mlt_wrap.cxx:806: error: expected
>> > initializer before ‘*’ token mlt_wrap.cxx:827: error: expected
>> > initializer
>> > before ‘*’ token In file included from
>> > /usr/include/c++/4.4/stdexcept:38,
>> > from mlt_wrap.cxx:2586: /usr/include/c++/4.4/exception:35: error:
>> > expected
>> > declaration before end of line
>> > make[1]: *** [all] Error 1
>> > make[1]: Leaving directory `/usr/local/src/mlt-0.5.2/src/swig'
>> > make: *** [all] Error 1
>> >
>> > I'm fairly new at building large open-source projects like this from
>> > source
>> > - I normally use apt-get under Ubuntu, so please forgive me if this is a
>> > simple mistake on my part.
>> >
>> > I've also attached a transcript of the entire build, if it's useful.
>> >
>> > Any help would be much appreciated.
>> >
>> > thank you!
>> > Brian
>
>



-- 
+-DRD-+

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to