From: Thor A. <ta...@to...> - 2011-11-17 08:55:49
|
On Wed, Nov 16, 2011 at 01:41:53PM -0500, Tom Scott wrote: > Hi all, > > I'm trying to use SoX to mix two audio sources (Speex vocals from an > FLV and an MP3 of music) and encode to MP3. I know that SoX can't > handle FLV so I'm also using FFmpeg to encode the FLV's Speex audio > into WAV before it sends it off to SoX. > > I'm currently stonewalled, because I can't seem to get SoX to compile > on my Debian Squeeze VPS. Here's the error I get when I run > `autoreconf -i`: > > > # autoreconf -i > > configure.ac:45: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > > If this token and others are legitimate, please use m4_pattern_allow. > > See the Autoconf documentation. > > configure.ac:48: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL > > configure.ac:52: error: possibly undefined macro: AC_PROG_LIBTOOL > > autoreconf: /usr/bin/autoconf failed with exit status: 1 Do you have libtool installed? apt-get install libtool > When I try to build from the tarball, it seems to configure fine > --with-distro=debian, but when i get to the make/make install part it > kicks back the following error: > > > # make -s && make install > > Making all in lpc10 > > Making all in libgsm > > Making all in src > > sox-fmt.c: In function 'write_header': > > sox-fmt.c:81: warning: dereferencing type-punned pointer will break strict-aliasing rules > > ffmpeg.c: In function 'stream_component_open': > > ffmpeg.c:89: warning: 'error_recognition' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:1562) > > ffmpeg.c:92: warning: 'avcodec_open' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3919) > > ffmpeg.c:94: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function) > > ffmpeg.c:94: error: (Each undeclared identifier is reported only once > > ffmpeg.c:94: error: for each function it appears in.) > > ffmpeg.c: In function 'startread': > > ffmpeg.c:168: warning: 'av_open_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1304) > > ffmpeg.c:174: warning: 'av_find_stream_info' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1386) > > ffmpeg.c:185: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function) > > ffmpeg.c: In function 'read_samples': > > ffmpeg.c:227: warning: 'url_ferror' is deprecated (declared at /usr/local/include/libavformat/avio.h:331) > > ffmpeg.c: In function 'add_audio_stream': > > ffmpeg.c:268: warning: 'av_new_stream' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1579) > > ffmpeg.c:276: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function) > > ffmpeg.c: In function 'open_audio': > > ffmpeg.c:302: warning: 'avcodec_open' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3919) > > ffmpeg.c: In function 'startwrite': > > ffmpeg.c:371: warning: 'av_set_parameters' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1662) > > ffmpeg.c:387: warning: 'url_fopen' is deprecated (declared at /usr/local/include/libavformat/avio.h:312) > > ffmpeg.c:394: warning: 'av_write_header' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1720) > > ffmpeg.c: In function 'write_samples': > > ffmpeg.c:426: error: 'PKT_FLAG_KEY' undeclared (first use in this function) > > ffmpeg.c: In function 'stopwrite': > > ffmpeg.c:474: warning: 'url_fclose' is deprecated (declared at /usr/local/include/libavformat/avio.h:313) > > make[1]: *** [libsox_la-ffmpeg.lo] Error 1 > > make: *** [all-recursive] Error 1 I think this is due to some change in the ffmpeg API, so you probably need a newer version of the libav* libraries. [...] > Furthermore, if there's any easier way of getting SoX up and running > on a Debian Squeeze machine, maybe using an APT source with the LAME > extensions built-in, please let me know about it. This seemingly > malformed Autoconf configuration is currently blocking me from doing > any further productive work on this project. It should be sufficient to do: apt-get install sox libsox-fmt-all [...] -- best regards Thor Andreassen |