rbash88 / pyffmpeg

Automatically exported from code.google.com/p/pyffmpeg
0 stars 0 forks source link

Build on Ubuntu 11.04, python 2.7 AMD fails #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Python Beta 2.1 error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’

pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3030:65: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’

ubuntu 11.04, python2.7
Build fails first error is one listed above.
Complete trace below

sudo python setup.py build
running build
running build_ext
building 'pyffmpeg' extension

running build
running build_ext
building 'pyffmpeg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC

compile options: '-I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include 
-I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c'
gcc: pyffmpeg.c
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3030:65: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9571:81: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c:9610:81: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘pyx_f_8pyffmpeg_10VideoTrackconvert_to’:
pyffmpeg.c:9776:3: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:223:5: note: expected ‘const uint8_t 
* const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘pyx_f_8pyffmpeg_10VideoTrackconvert_withbuf’:
pyffmpeg.c:9954:3: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:223:5: note: expected ‘const uint8_t 
* const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:10993:3: warning: ‘dump_format’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1399)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11200:14: warning: implicit declaration of function 
‘guess_format’
pyffmpeg.c:11200:94: warning: assignment makes pointer from integer without a 
cast
pyffmpeg.c:11283:5: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c:11343:7: warning: ‘url_setbufsize’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:287)
pyffmpeg.c:11429:7: warning: ‘get_buffer’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:242)
pyffmpeg.c:11453:7: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:281)
pyffmpeg.c:11463:9: warning: ‘url_fclose’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:280)
pyffmpeg.c:11472:9: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c:11675:5: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c: In function 
‘pyx_pf_8pyffmpeg_12FFMpegReader_finalize_open_write’:
pyffmpeg.c:11798:23: warning: assignment makes pointer from integer without a 
cast
pyffmpeg.c:11847:3: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_finalize_open’:
pyffmpeg.c:12359:32: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:12359:32: note: each undeclared identifier is reported only once for 
each function it appears in
pyffmpeg.c:12535:32: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
pyffmpeg.c: In function 
‘pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:13720:56: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:13764:56: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:15607:5: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:281)
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:19594:30: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:19611:30: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3030:65: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9571:81: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c:9610:81: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘pyx_f_8pyffmpeg_10VideoTrackconvert_to’:
pyffmpeg.c:9776:3: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:223:5: note: expected ‘const uint8_t 
* const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘pyx_f_8pyffmpeg_10VideoTrackconvert_withbuf’:
pyffmpeg.c:9954:3: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:223:5: note: expected ‘const uint8_t 
* const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:10993:3: warning: ‘dump_format’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1399)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11200:14: warning: implicit declaration of function 
‘guess_format’
pyffmpeg.c:11200:94: warning: assignment makes pointer from integer without a 
cast
pyffmpeg.c:11283:5: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c:11343:7: warning: ‘url_setbufsize’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:287)
pyffmpeg.c:11429:7: warning: ‘get_buffer’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:242)
pyffmpeg.c:11453:7: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:281)
pyffmpeg.c:11463:9: warning: ‘url_fclose’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:280)
pyffmpeg.c:11472:9: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c:11675:5: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c: In function 
‘pyx_pf_8pyffmpeg_12FFMpegReader_finalize_open_write’:
pyffmpeg.c:11798:23: warning: assignment makes pointer from integer without a 
cast
pyffmpeg.c:11847:3: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:279)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_finalize_open’:
pyffmpeg.c:12359:32: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:12359:32: note: each undeclared identifier is reported only once for 
each function it appears in
pyffmpeg.c:12535:32: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
pyffmpeg.c: In function 
‘pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:13720:56: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:13764:56: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
pyffmpeg.c: In function ‘pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:15607:5: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:281)
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:19594:30: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in 
this function)
pyffmpeg.c:19611:30: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in 
this function)
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/opt/ffmpeg/include -I/usr/include/ffmpeg 
-I./include -I/usr/lib/pymodules/python2.7/numpy/core/include 
-I/usr/include/python2.7 -c pyffmpeg.c -o 
build/temp.linux-x86_64-2.7/pyffmpeg.o" failed with exit status 1

Original issue reported on code.google.com by Mountain...@gmail.com on 25 May 2011 at 3:17

GoogleCodeExporter commented 8 years ago
same here :-(

Original comment by dnoe...@gmail.com on 31 Aug 2012 at 10:19