1. Zakhar Zibarov
  2. FFVideo
  3. Issues
Issue #6 new

Unsuccessful compilation on Debian stable

Anonymous created an issue

Hi, I'm trying to build FFVideo. I followed the instructions and got the following errors: user@host:/tmp/FFVideo-0.0.13$ python setup.py build running build running build_ext building 'ffvideo' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/ffmpeg -I/usr/include/python2.6 -c ffvideo/ffvideo.c -o build/temp.linux-x86_64-2.6/ffvideo/ffvideo.o ffvideo/ffvideo.c: In function 'pyx_pf_7ffvideo_11VideoStream_2init': ffvideo/ffvideo.c:1780: warning: implicit declaration of function 'avformat_open_input' ffvideo/ffvideo.c:1826: warning: implicit declaration of function 'avformat_find_stream_info' ffvideo/ffvideo.c:1886: error: 'AVMEDIA_TYPE_VIDEO' undeclared (first use in this function) ffvideo/ffvideo.c:1886: error: (Each undeclared identifier is reported only once ffvideo/ffvideo.c:1886: error: for each function it appears in.) ffvideo/ffvideo.c:2102: warning: implicit declaration of function 'avcodec_open2' ffvideo/ffvideo.c: In function 'pyx_pf_7ffvideo_11VideoStream_4dealloc': ffvideo/ffvideo.c:2406: warning: implicit declaration of function 'avformat_close_input' ffvideo/ffvideo.c: In function 'pyx_pf_7ffvideo_11VideoStream_6dump': ffvideo/ffvideo.c:2476: warning: implicit declaration of function 'av_dump_format' ffvideo/ffvideo.c: In function 'pyx_pf_7ffvideo_11VideoStream_8decode_next_frame': ffvideo/ffvideo.c:2636: warning: implicit declaration of function 'avcodec_decode_video2' ffvideo/ffvideo.c: In function 'pyx_pf_7ffvideo_11VideoStream_12current': ffvideo/ffvideo.c:3045: warning: passing argument 2 of 'PyObject_AsCharBuffer' from incompatible pointer type /usr/include/python2.6/abstract.h:476: note: expected 'const char ' but argument is of type 'char ' error: command 'gcc' failed with exit status 1

I've installed the dependencies indicated on the build instructions. Which could be the problem? Following is the log of dependencies installation:

The following NEW packages will be installed: cython libavcodec-dev libavcodec52{a} libavformat-dev libavformat52{a} libavutil-dev{a} libavutil49{a} libdirac-encoder0{a} libfaad2{a} libgsm1{a} libogg0{a} libopenjpeg2{a} liborc-0.4-0{a} libschroedinger-1.0-0{a} libspeex1{a} libswscale-dev libswscale0{a} libtheora0{a} libvorbis0a{a} libvorbisenc2{a} python-dev python2.6-dev{a} 0 packages upgraded, 22 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/13.9 MB of archives. After unpacking 43.6 MB will be used. Do you want to continue? [Y/n/?] Selecting previously deselected package cython. (Reading database ... 31921 files and directories currently installed.) Unpacking cython (from .../cython_0.12.1-1.1_amd64.deb) ... Selecting previously deselected package libavutil49. Unpacking libavutil49 (from .../libavutil49_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libdirac-encoder0. Unpacking libdirac-encoder0 (from .../libdirac-encoder0_1.0.2-3_amd64.deb) ... Selecting previously deselected package libfaad2. Unpacking libfaad2 (from .../libfaad2_2.7-6_amd64.deb) ... Selecting previously deselected package libgsm1. Unpacking libgsm1 (from .../libgsm1_1.0.13-3_amd64.deb) ... Selecting previously deselected package libopenjpeg2. Unpacking libopenjpeg2 (from .../libopenjpeg2_1.3+dfsg-4+squeeze1_amd64.deb) ... Selecting previously deselected package liborc-0.4-0. Unpacking liborc-0.4-0 (from .../liborc-0.4-0_1%3a0.4.6-2_amd64.deb) ... Selecting previously deselected package libschroedinger-1.0-0. Unpacking libschroedinger-1.0-0 (from .../libschroedinger-1.0-0_1.0.9-2_amd64.deb) ... Selecting previously deselected package libspeex1. Unpacking libspeex1 (from .../libspeex1_1.2~rc1-1_amd64.deb) ... Selecting previously deselected package libogg0. Unpacking libogg0 (from .../libogg0_1.2.0~dfsg-1_amd64.deb) ... Selecting previously deselected package libtheora0. Unpacking libtheora0 (from .../libtheora0_1.1.1+dfsg.1-3_amd64.deb) ... Selecting previously deselected package libvorbis0a. Unpacking libvorbis0a (from .../libvorbis0a_1.3.1-1+squeeze1_amd64.deb) ... Selecting previously deselected package libvorbisenc2. Unpacking libvorbisenc2 (from .../libvorbisenc2_1.3.1-1+squeeze1_amd64.deb) ... Selecting previously deselected package libavcodec52. Unpacking libavcodec52 (from .../libavcodec52_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libavutil-dev. Unpacking libavutil-dev (from .../libavutil-dev_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libavcodec-dev. Unpacking libavcodec-dev (from .../libavcodec-dev_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libavformat52. Unpacking libavformat52 (from .../libavformat52_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libavformat-dev. Unpacking libavformat-dev (from .../libavformat-dev_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libswscale0. Unpacking libswscale0 (from .../libswscale0_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package libswscale-dev. Unpacking libswscale-dev (from .../libswscale-dev_4%3a0.5.10-1_amd64.deb) ... Selecting previously deselected package python2.6-dev. Unpacking python2.6-dev (from .../python2.6-dev_2.6.6-8+b1_amd64.deb) ... Selecting previously deselected package python-dev. Unpacking python-dev (from .../python-dev_2.6.6-3+squeeze7_all.deb) ... Processing triggers for man-db ... Setting up cython (0.12.1-1.1) ... Setting up libavutil49 (4:0.5.10-1) ... Setting up libdirac-encoder0 (1.0.2-3) ... Setting up libfaad2 (2.7-6) ... Setting up libgsm1 (1.0.13-3) ... Setting up libopenjpeg2 (1.3+dfsg-4+squeeze1) ... Setting up liborc-0.4-0 (1:0.4.6-2) ... Setting up libschroedinger-1.0-0 (1.0.9-2) ... Setting up libspeex1 (1.2~rc1-1) ... Setting up libogg0 (1.2.0~dfsg-1) ... Setting up libtheora0 (1.1.1+dfsg.1-3) ... Setting up libvorbis0a (1.3.1-1+squeeze1) ... Setting up libvorbisenc2 (1.3.1-1+squeeze1) ... Setting up libavcodec52 (4:0.5.10-1) ... Setting up libavutil-dev (4:0.5.10-1) ... Setting up libavcodec-dev (4:0.5.10-1) ... Setting up libavformat52 (4:0.5.10-1) ... Setting up libavformat-dev (4:0.5.10-1) ... Setting up libswscale0 (4:0.5.10-1) ... Setting up libswscale-dev (4:0.5.10-1) ... Setting up python2.6-dev (2.6.6-8+b1) ... Setting up python-dev (2.6.6-3+squeeze7) ... Processing triggers for python-support ...

Thank you, David

Comments (0)

  1. Log in to comment