Open GoogleCodeExporter opened 9 years ago
Folks,
Although __cinit__ is no longer used in pyffmpeg.pyx (__new__ is shown), I am
facing similar issue on 64bit Ubuntu.
<logs>
running install
running build
running build_ext
skipping 'pyffmpeg.c' Cython extension (up-to-date)
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/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7
-c'
gcc: pyffmpeg.c
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_13AFFMpegReader_2open':
pyffmpeg.c:1867:13: warning: variable '__pyx_v_track_selector' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_5Track_5init':
pyffmpeg.c:2818:3: warning: 'avcodec_open' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
pyffmpeg.c:2843:65: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c:2522:13: warning: variable '__pyx_v_observer' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_5Track_9_reopencodec':
pyffmpeg.c:4002:3: warning: 'avcodec_open' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
pyffmpeg.c:3882:7: warning: variable '__pyx_v_ret' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame':
pyffmpeg.c:4438:3: warning: 'avcodec_decode_audio3' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4131) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_10VideoTrack_init':
pyffmpeg.c:6568:7: warning: variable '__pyx_v_i' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_f_8pyffmpeg_10VideoTrack__read_current_motion_vectors':
pyffmpeg.c:7581:7: warning: variable '__pyx_v_mv_y' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c:7580:7: warning: variable '__pyx_v_mv_x' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_10VideoTrack_10_get_current_frame_without_copy':
pyffmpeg.c:8344:7: warning: variable '__pyx_v_numBytes' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c:8343:19: warning: variable '__pyx_v_pFrameRes' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_10VideoTrack_18set_hurry':
pyffmpeg.c:9443:81: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c:9482:81: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c: In function '__pyx_f_8pyffmpeg_10VideoTrack__convert_to':
pyffmpeg.c:9645:3: warning: passing argument 2 of 'sws_scale' from incompatible
pointer type [enabled by default]
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
pyffmpeg.c:9512:26: warning: variable '__pyx_v_pCodecCtx' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf':
pyffmpeg.c:9819:3: warning: passing argument 2 of 'sws_scale' from incompatible
pointer type [enabled by default]
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
pyffmpeg.c:9704:26: warning: variable '__pyx_v_pCodecCtx' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_1__dealloc__':
pyffmpeg.c:10796:5: warning: 'av_close_input_file' is deprecated (declared at
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_3dump':
pyffmpeg.c:10890:3: warning: 'dump_format' is deprecated (declared at
/usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_4open':
pyffmpeg.c:11143:5: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c:11203:7: warning: 'url_setbufsize' is deprecated (declared at
/usr/include/libavformat/avio.h:324) [-Wdeprecated-declarations]
pyffmpeg.c:11285:7: warning: 'get_buffer' is deprecated (declared at
/usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
pyffmpeg.c:11309:7: warning: 'url_fseek' is deprecated (declared at
/usr/include/libavformat/avio.h:318) [-Wdeprecated-declarations]
pyffmpeg.c:11319:9: warning: 'url_fclose' is deprecated (declared at
/usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
pyffmpeg.c:11328:9: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c:11447:5: warning: 'av_open_input_stream' is deprecated (declared at
/usr/include/libavformat/avformat.h:1350) [-Wdeprecated-declarations]
pyffmpeg.c:11525:5: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_12FFMpegReader_5__finalize_open_write':
pyffmpeg.c:11652:3: warning: implicit declaration of function 'guess_format'
[-Wimplicit-function-declaration]
pyffmpeg.c:11652:23: warning: assignment makes pointer from integer without a
cast [enabled by default]
pyffmpeg.c:11701:3: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_6__finalize_open':
pyffmpeg.c:11847:3: warning: 'av_find_stream_info' is deprecated (declared at
/usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
pyffmpeg.c:12215:32: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:12215:32: note: each undeclared identifier is reported only once for
each function it appears in
pyffmpeg.c:12390:32: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this
function)
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_7close':
pyffmpeg.c:13102:5: warning: 'av_close_input_file' is deprecated (declared at
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_12FFMpegReader_8process_current_packet':
pyffmpeg.c:13602:56: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:13645:56: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this
function)
pyffmpeg.c:13513:7: warning: variable '__pyx_v_processed' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_19seek_bytes':
pyffmpeg.c:15541:5: warning: 'url_fseek' is deprecated (declared at
/usr/include/libavformat/avio.h:318) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_11VideoStream_6GetCurrentFrame':
pyffmpeg.c:16929:13: warning: variable '__pyx_v_fno' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_11VideoStream_7GetNextFrame':
pyffmpeg.c:17032:13: warning: variable '__pyx_v_fno' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function 'initpyffmpeg':
pyffmpeg.c:19825:30: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:19842:30: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this
function)
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_13AFFMpegReader_2open':
pyffmpeg.c:1867:13: warning: variable '__pyx_v_track_selector' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_5Track_5init':
pyffmpeg.c:2818:3: warning: 'avcodec_open' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
pyffmpeg.c:2843:65: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c:2522:13: warning: variable '__pyx_v_observer' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_5Track_9_reopencodec':
pyffmpeg.c:4002:3: warning: 'avcodec_open' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
pyffmpeg.c:3882:7: warning: variable '__pyx_v_ret' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame':
pyffmpeg.c:4438:3: warning: 'avcodec_decode_audio3' is deprecated (declared at
/usr/include/libavcodec/avcodec.h:4131) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_10VideoTrack_init':
pyffmpeg.c:6568:7: warning: variable '__pyx_v_i' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_f_8pyffmpeg_10VideoTrack__read_current_motion_vectors':
pyffmpeg.c:7581:7: warning: variable '__pyx_v_mv_y' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c:7580:7: warning: variable '__pyx_v_mv_x' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_10VideoTrack_10_get_current_frame_without_copy':
pyffmpeg.c:8344:7: warning: variable '__pyx_v_numBytes' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c:8343:19: warning: variable '__pyx_v_pFrameRes' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_10VideoTrack_18set_hurry':
pyffmpeg.c:9443:81: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c:9482:81: error: 'struct AVCodecContext' has no member named
'hurry_up'
pyffmpeg.c: In function '__pyx_f_8pyffmpeg_10VideoTrack__convert_to':
pyffmpeg.c:9645:3: warning: passing argument 2 of 'sws_scale' from incompatible
pointer type [enabled by default]
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
pyffmpeg.c:9512:26: warning: variable '__pyx_v_pCodecCtx' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf':
pyffmpeg.c:9819:3: warning: passing argument 2 of 'sws_scale' from incompatible
pointer type [enabled by default]
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t *
const*' but argument is of type 'uint8_t **'
pyffmpeg.c:9704:26: warning: variable '__pyx_v_pCodecCtx' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_1__dealloc__':
pyffmpeg.c:10796:5: warning: 'av_close_input_file' is deprecated (declared at
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_3dump':
pyffmpeg.c:10890:3: warning: 'dump_format' is deprecated (declared at
/usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_4open':
pyffmpeg.c:11143:5: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c:11203:7: warning: 'url_setbufsize' is deprecated (declared at
/usr/include/libavformat/avio.h:324) [-Wdeprecated-declarations]
pyffmpeg.c:11285:7: warning: 'get_buffer' is deprecated (declared at
/usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
pyffmpeg.c:11309:7: warning: 'url_fseek' is deprecated (declared at
/usr/include/libavformat/avio.h:318) [-Wdeprecated-declarations]
pyffmpeg.c:11319:9: warning: 'url_fclose' is deprecated (declared at
/usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
pyffmpeg.c:11328:9: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c:11447:5: warning: 'av_open_input_stream' is deprecated (declared at
/usr/include/libavformat/avformat.h:1350) [-Wdeprecated-declarations]
pyffmpeg.c:11525:5: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_12FFMpegReader_5__finalize_open_write':
pyffmpeg.c:11652:3: warning: implicit declaration of function 'guess_format'
[-Wimplicit-function-declaration]
pyffmpeg.c:11652:23: warning: assignment makes pointer from integer without a
cast [enabled by default]
pyffmpeg.c:11701:3: warning: 'url_fopen' is deprecated (declared at
/usr/include/libavformat/avio.h:316) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_6__finalize_open':
pyffmpeg.c:11847:3: warning: 'av_find_stream_info' is deprecated (declared at
/usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
pyffmpeg.c:12215:32: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:12215:32: note: each undeclared identifier is reported only once for
each function it appears in
pyffmpeg.c:12390:32: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this
function)
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_7close':
pyffmpeg.c:13102:5: warning: 'av_close_input_file' is deprecated (declared at
/usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
pyffmpeg.c: In function
'__pyx_pf_8pyffmpeg_12FFMpegReader_8process_current_packet':
pyffmpeg.c:13602:56: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:13645:56: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this
function)
pyffmpeg.c:13513:7: warning: variable '__pyx_v_processed' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_12FFMpegReader_19seek_bytes':
pyffmpeg.c:15541:5: warning: 'url_fseek' is deprecated (declared at
/usr/include/libavformat/avio.h:318) [-Wdeprecated-declarations]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_11VideoStream_6GetCurrentFrame':
pyffmpeg.c:16929:13: warning: variable '__pyx_v_fno' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function '__pyx_pf_8pyffmpeg_11VideoStream_7GetNextFrame':
pyffmpeg.c:17032:13: warning: variable '__pyx_v_fno' set but not used
[-Wunused-but-set-variable]
pyffmpeg.c: In function 'initpyffmpeg':
pyffmpeg.c:19825:30: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this
function)
pyffmpeg.c:19842: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/python2.7/dist-packages/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
</logs>
Any help with this?
Original comment by s...@bsb.in
on 25 Sep 2012 at 6:28
Original issue reported on code.google.com by
Isend...@googlemail.com
on 3 Apr 2012 at 6:08