rbash88 / pyffmpeg

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

build error on Ubuntu 10.04 64bit ? #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.download source
2.run python setup.py build
3.

What is the expected output? What do you see instead?
compiler quits with error

What version of the product are you using? On what operating system?
pyffmpeg-2.0, under ubuntu 10.04 64bit, cython 0.12.1, python 2.6.5

Please provide any additional information below.
end of error logs follows:

pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open_write’:
pyffmpeg.c:12126: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:12139: error: dereferencing pointer to incomplete type
pyffmpeg.c:12148: error: dereferencing pointer to incomplete type
pyffmpeg.c:12171: error: dereferencing pointer to incomplete type
pyffmpeg.c:12171: error: dereferencing pointer to incomplete type
pyffmpeg.c:12188: error: dereferencing pointer to incomplete type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open’:
pyffmpeg.c:12335: warning: implicit declaration of function 
‘av_find_stream_info’
pyffmpeg.c:12506: error: dereferencing pointer to incomplete type
pyffmpeg.c:12517: error: dereferencing pointer to incomplete type
pyffmpeg.c:12611: error: dereferencing pointer to incomplete type
pyffmpeg.c:12632: error: dereferencing pointer to incomplete type
pyffmpeg.c:12693: error: dereferencing pointer to incomplete type
pyffmpeg.c:12704: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:12880: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_12FFMpegReader___prefetch_packet’:
pyffmpeg.c:13650: warning: implicit declaration of function ‘av_read_frame’
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:14096: error: dereferencing pointer to incomplete type
pyffmpeg.c:14106: error: dereferencing pointer to incomplete type
pyffmpeg.c:14106: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:14154: error: dereferencing pointer to incomplete type
pyffmpeg.c:14154: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader_read_until_next_frame’:
pyffmpeg.c:14772: error: dereferencing pointer to incomplete type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_to’:
pyffmpeg.c:15318: warning: implicit declaration of function ‘av_seek_frame’
pyffmpeg.c:15318: error: ‘AVSEEK_FLAG_BACKWARD’ undeclared (first use in 
this function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:15973: error: ‘AVSEEK_FLAG_BACKWARD’ undeclared (first use in 
this function)
pyffmpeg.c:15973: error: ‘AVSEEK_FLAG_BYTE’ undeclared (first use in this 
function)
pyffmpeg.c:16034: error: dereferencing pointer to incomplete type
pyffmpeg.c:16034: error: dereferencing pointer to incomplete type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___getitem__’:
pyffmpeg.c:16239: error: ‘AV_TIME_BASE’ undeclared (first use in this 
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration’:
pyffmpeg.c:16724: error: dereferencing pointer to incomplete type
pyffmpeg.c:16748: error: dereferencing pointer to incomplete type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration_time’:
pyffmpeg.c:16799: error: ‘AV_TIME_BASE’ undeclared (first use in this 
function)
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:19897: error: ‘AV_TIME_BASE’ undeclared (first use in this 
function)
pyffmpeg.c:20000: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:20017: 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.6/dist-packages/numpy/core/include 
-I/usr/include/python2.6 -c pyffmpeg.c -o 
build/temp.linux-x86_64-2.6/pyffmpeg.o" failed with exit status 1

Original issue reported on code.google.com by li...@lumen.nu on 18 Jul 2010 at 2:19

GoogleCodeExporter commented 8 years ago
Hmmm 
you normally have a very standard build environement are you sure that 
libavcodec-dev libavformat-dev and libswscale-dev are correctly installed ?
And can you confirm there was no missing file error before the warnings
thanks for letting me know.

Original comment by bertrand...@gmail.com on 18 Jul 2010 at 3:00

GoogleCodeExporter commented 8 years ago
Salut Bertrand,

I suppose I was confused by this: 
<http://github.com/tranx/pyffmpeg/blob/master/howto-build.txt>, so I only had 
libswscale-dev installed, not the rest. Thanks for the fast reply and apologies 
for my confusion !
thanks, kind regards,

Joost.

Original comment by li...@lumen.nu on 18 Jul 2010 at 3:37

GoogleCodeExporter commented 8 years ago
Ok I will have a look at the "how-to-build" file to make it less confusing for 
unix users.

Original comment by bertrand...@gmail.com on 19 Jul 2010 at 3:07

GoogleCodeExporter commented 8 years ago
Hello, I am having the same problem. I'm sorry if this is not the place to 
report it.

pyffmpeg-2.0, under ubuntu 10.04 32bit, cython 0.12.1, python 2.6.5
libavcodec-dev libavformat-dev and libswscale-dev are installed.

What am I missing?

python setup.py build command shows the following ouput:

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/usr/local/ffmpeg/include -I/usr/include/ffmpeg -I./include 
-I/usr/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/python2.6 
-c'
gcc: pyffmpeg.c
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_duration’:
pyffmpeg.c:2423: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3026: warning: ‘avcodec_open’ is deprecated (declared at 
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c:3057: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track__reopencodec’:
pyffmpeg.c:4282: warning: ‘avcodec_open’ is deprecated (declared at 
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame’:
pyffmpeg.c:4757: warning: implicit declaration of function 
‘avcodec_decode_audio2’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10AudioTrack_process_packet’:
pyffmpeg.c:6173: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack_process_packet’:
pyffmpeg.c:8234: warning: implicit declaration of function 
‘avcodec_decode_video’
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_10VideoTrack__internal_get_current_frame’:
pyffmpeg.c:8622: warning: cast to pointer from integer of different size
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_10VideoTrack__get_current_frame_without_copy’:
pyffmpeg.c:8791: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9883: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c:9922: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:10091: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t * 
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:10271: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t * 
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:11314: warning: ‘dump_format’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1897)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11524: warning: implicit declaration of function ‘guess_format’
pyffmpeg.c:11524: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:11619: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11679: warning: ‘url_setbufsize’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:324)
pyffmpeg.c:11765: warning: ‘get_buffer’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:278)
pyffmpeg.c:11789: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c:11799: warning: ‘url_fclose’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:317)
pyffmpeg.c:11808: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11930: warning: ‘av_open_input_stream’ is deprecated (declared 
at /usr/local/include/libavformat/avformat.h:1412)
pyffmpeg.c:12011: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open_write’:
pyffmpeg.c:12139: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:12188: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open’:
pyffmpeg.c:12335: warning: ‘av_find_stream_info’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1476)
pyffmpeg.c:12704: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:12704: error: (Each undeclared identifier is reported only once
pyffmpeg.c:12704: error: for each function it appears in.)
pyffmpeg.c:12880: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:14106: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:14154: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:16034: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration’:
pyffmpeg.c:16724: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:20000: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:20017: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_duration’:
pyffmpeg.c:2423: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track_init’:
pyffmpeg.c:3026: warning: ‘avcodec_open’ is deprecated (declared at 
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c:3057: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_5Track__reopencodec’:
pyffmpeg.c:4282: warning: ‘avcodec_open’ is deprecated (declared at 
/usr/local/include/libavcodec/avcodec.h:4073)
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_18AudioPacketDecoder_audio_decode_frame’:
pyffmpeg.c:4757: warning: implicit declaration of function 
‘avcodec_decode_audio2’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10AudioTrack_process_packet’:
pyffmpeg.c:6173: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack_process_packet’:
pyffmpeg.c:8234: warning: implicit declaration of function 
‘avcodec_decode_video’
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_10VideoTrack__internal_get_current_frame’:
pyffmpeg.c:8622: warning: cast to pointer from integer of different size
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_10VideoTrack__get_current_frame_without_copy’:
pyffmpeg.c:8791: warning: cast to pointer from integer of different size
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_10VideoTrack_set_hurry’:
pyffmpeg.c:9883: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c:9922: error: ‘struct AVCodecContext’ has no member named 
‘hurry_up’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_to’:
pyffmpeg.c:10091: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t * 
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_f_8pyffmpeg_10VideoTrack__convert_withbuf’:
pyffmpeg.c:10271: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
/usr/local/include/libswscale/swscale.h:238: note: expected ‘const uint8_t * 
const*’ but argument is of type ‘uint8_t **’
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_dump’:
pyffmpeg.c:11314: warning: ‘dump_format’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1897)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_open’:
pyffmpeg.c:11524: warning: implicit declaration of function ‘guess_format’
pyffmpeg.c:11524: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:11619: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11679: warning: ‘url_setbufsize’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:324)
pyffmpeg.c:11765: warning: ‘get_buffer’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:278)
pyffmpeg.c:11789: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c:11799: warning: ‘url_fclose’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:317)
pyffmpeg.c:11808: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c:11930: warning: ‘av_open_input_stream’ is deprecated (declared 
at /usr/local/include/libavformat/avformat.h:1412)
pyffmpeg.c:12011: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open_write’:
pyffmpeg.c:12139: warning: assignment makes pointer from integer without a cast
pyffmpeg.c:12188: warning: ‘url_fopen’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:316)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader___finalize_open’:
pyffmpeg.c:12335: warning: ‘av_find_stream_info’ is deprecated (declared at 
/usr/local/include/libavformat/avformat.h:1476)
pyffmpeg.c:12704: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:12704: error: (Each undeclared identifier is reported only once
pyffmpeg.c:12704: error: for each function it appears in.)
pyffmpeg.c:12880: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function 
‘__pyx_pf_8pyffmpeg_12FFMpegReader_process_current_packet’:
pyffmpeg.c:14106: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:14154: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this 
function)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_seek_bytes’:
pyffmpeg.c:16034: warning: ‘url_fseek’ is deprecated (declared at 
/usr/local/include/libavformat/avio.h:318)
pyffmpeg.c: In function ‘__pyx_pf_8pyffmpeg_12FFMpegReader_duration’:
pyffmpeg.c:16724: warning: integer constant is too large for ‘long’ type
pyffmpeg.c: In function ‘initpyffmpeg’:
pyffmpeg.c:20000: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this 
function)
pyffmpeg.c:20017: 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/usr/local/ffmpeg/include -I/usr/include/ffmpeg 
-I./include -I/usr/lib/python2.6/dist-packages/numpy/core/include 
-I/usr/include/python2.6 -c pyffmpeg.c -o build/temp.linux-i686-2.6/pyffmpeg.o" 
failed with exit status 1

Original comment by pamela.r...@gmail.com on 11 Dec 2011 at 6:29