[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Movie module being merged

Ok, when I add

_movie src/_gsound.c src/_gmovie.c src/_gcommand.c src/gmovie.c $(SDL) $(AVFORMAT) $(SWSCALE) $(MIXER) $(DEBUG)

to Setup I get these build errors:

building 'pygame._movie' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -D_REENTRANT -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.5 -c src/_gsound.c -o build/temp.linux-i686-2.5/src/_gsound.o
In file included from src/_gsound.c:35:
src/_gsound.h:36:34: error: libavformat/avformat.h: No such file or directory
src/_gsound.c: In function ‘seekBuffer’:
src/_gsound.c:403: error: ‘AV_NOPTS_VALUE’ undeclared (first use in this function)
src/_gsound.c:403: error: (Each undeclared identifier is reported only once
src/_gsound.c:403: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

The Debian dev package installs avformat.h in ffmpeg, not libavformat.


Lenard Lindstrom wrote:
Hi René,

My mistake. I didn't pay attention to the error. _movie.so was not event built since the _movie entry is missing in Setup.in. I had to manually enter it to Setup the last time, and that was clobbered when I reran config.py.


René Dudfield wrote:
On Tue, Aug 18, 2009 at 4:47 PM, Lenard Lindstrom<len-l@xxxxxxxxx> wrote:
Hi Tyler,

The module now builds, but the _movie_test.py unit tests fail:

ERROR: MovieTypeTest.test_height
Traceback (most recent call last):
line 125, in test_height
movie = gmovie.Movie(movie_file)
AttributeError: 'NoneType' object has no attribute 'Movie'

If "movie_file" is missing shouldn't gmovie.Movie raise an exception?



check out the try/except at the top of that test... maybe it is
raising an exception, and catching it.

that try/except was added to try and get the build bot to build again.