Error while building

Bug #430474 reported by stereohead
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyofa (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I do:

python setup.py config
python setup.py build_ext --inplace

I get the following response:
me@desktop$ python setup.py config
WARNING:root:ofa python module not found! Fingerprinting will be disabled.
WARNING:root:No decoders found! Fingerprinting will be disabled.
running config
checking for pkg-cfg... yes
checking for libofa... (pkg-config) yes
checking for libavcodec/libavformat... (pkg-config) yes
checking for directshow... no
saving build.cfg
me@desktop$ python setup.py build_ext --inplace
WARNING:root:ofa python module not found! Fingerprinting will be disabled.
WARNING:root:No decoders found! Fingerprinting will be disabled.
running build_ext
building 'musicdns.ofa' extension
creating build
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/lib
creating build/temp.linux-i686-2.6/lib/python
creating build/temp.linux-i686-2.6/lib/python/musicdns
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c lib/python/musicdns/ofa.c -o build/temp.linux-i686-2.6/lib/python/musicdns/ofa.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/lib/python/musicdns/ofa.o -o lib/python/musicdns/ofa.so -lofa -lfftw3 -lm
building 'musicdns.avcodec' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c lib/python/musicdns/avcodec.c -o build/temp.linux-i686-2.6/lib/python/musicdns/avcodec.o
lib/python/musicdns/avcodec.c:27:21: error: avcodec.h: No such file or directory
lib/python/musicdns/avcodec.c:28:22: error: avformat.h: No such file or directory
lib/python/musicdns/avcodec.c: In function ‘init’:
lib/python/musicdns/avcodec.c:140: warning: implicit declaration of function ‘av_register_all’
lib/python/musicdns/avcodec.c: In function ‘decode’:
lib/python/musicdns/avcodec.c:156: error: ‘AVFormatContext’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:156: error: (Each undeclared identifier is reported only once
lib/python/musicdns/avcodec.c:156: error: for each function it appears in.)
lib/python/musicdns/avcodec.c:156: error: ‘format_context’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:157: error: ‘AVCodecContext’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:157: error: ‘codec_context’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:158: error: ‘AVCodec’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:158: error: ‘codec’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:160: error: ‘AVPacket’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:160: error: expected ‘;’ before ‘packet’
lib/python/musicdns/avcodec.c:224: warning: implicit declaration of function ‘av_open_input_file’
lib/python/musicdns/avcodec.c:231: warning: implicit declaration of function ‘av_find_stream_info’
lib/python/musicdns/avcodec.c:243: error: expected expression before ‘)’ token
lib/python/musicdns/avcodec.c:244: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:253: warning: implicit declaration of function ‘avcodec_find_decoder’
lib/python/musicdns/avcodec.c:260: warning: implicit declaration of function ‘avcodec_open’
lib/python/musicdns/avcodec.c:270: error: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:275: warning: implicit declaration of function ‘av_read_frame’
lib/python/musicdns/avcodec.c:275: error: ‘packet’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:282: warning: implicit declaration of function ‘avcodec_decode_audio’
lib/python/musicdns/avcodec.c:300: warning: implicit declaration of function ‘av_free_packet’
lib/python/musicdns/avcodec.c:304: warning: implicit declaration of function ‘avcodec_close’
lib/python/musicdns/avcodec.c:307: warning: implicit declaration of function ‘av_close_input_file’
lib/python/musicdns/avcodec.c:314: error: ‘AV_NOPTS_VALUE’ undeclared (first use in this function)
lib/python/musicdns/avcodec.c:315: error: ‘AV_TIME_BASE’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
me@desktop$

On Ubuntu 9.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.