|
From: n_m <nei...@ya...> - 2008-02-22 19:37:17
|
Hi
I'm almost there on my quest for a fully codec'd
version of SoX built on Linux.
I got ffmpeg to make && install cleanly (I think)
Then I tried rebuilding SoX starting with configure like
$ ./configure --with-ffmpeg
PKG_CONFIG_PATH=/usr/local/src/libsndfile/libsndfile-1.0.17:/usr/local/src/Secret_Rabbit_Code/libs
amplerate/libsamplerate-0.1.2:/usr/local/src/FFmpeg/ffmpeg
(I also get the same results without the ffmpeg path reference in
PKG_CONFIG_PATH)
With the '--with-ffmpeg' the configure test stops right after
trying to find ffmpeg. Nice feature, Thanks!
Configure finishes with
configure:24577: result: no
configure:24592: error: cannot find ffmpeg
See `config.log' for more details.
So, did I not get ffmpeg built correctly, OR do I need
some further ./configure setup tweaks, like adding
CFLAGS=.../ffmpeg LDFLAGS=.../ffmpeg
to the cmd line?
I did search sox-users with numerous targets
and didn't find anything I thought applicable.
Thanks for any tips
Neil M
Here's what I find in the config.log
# ---------------------------------------------
# ---- lots of successful steps deleted,-------
# ---- let me know if I can send or attach ----
# ---------------------------------------------
configure:24181: gcc -o conftest -g -O2 -Wall -W -Wmissing-prototypes
-Wstrict-prototypes -pedantic -Wl,-z,defs conftest.c -lF
LAC -lvorbisenc -lvorbisfile -lvorbis -logg -lm >&5
conftest.c:54: warning: function declaration isn't a prototype
conftest.c:57: warning: function declaration isn't a prototype
configure:24187: $? = 0
configure:24205: result: yes
configure:24263: checking ffmpeg/avformat.h usability
configure:24280: gcc -c -g -O2 -Wall -W -Wmissing-prototypes
-Wstrict-prototypes -pedantic conftest.c >&5
#
$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5
configure:24286: $? = 0
configure:24300: result: yes
configure:24304: checking ffmpeg/avformat.h presence
configure:24319: gcc -E conftest.c
$CPP $CPPFLAGS conftest.c
configure:24325: $? = 0
configure:24339: result: yes
configure:24372: checking for ffmpeg/avformat.h
configure:24379: result: yes
configure:24384: checking for av_open_input_file in -lavformat
configure:24419: gcc -o conftest -g -O2 -Wall -W -Wmissing-prototypes
-Wstrict-prototypes -pedantic -Wl,-z,defs conftest.c -la
vformat -lm >&5
$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
>&5
conftest.c:55: warning: function declaration isn't a prototype
conftest.c:58: warning: function declaration isn't a prototype
/usr/local/lib/libavformat.a(utils.o)(.text+0x1b4): In function
`av_destruct_packet':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:190: undefined reference to
`av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x234): In function
`av_new_packet':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:210: undefined reference to
`av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x301): In function
`av_get_packet':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:210: undefined reference to
`av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3bc): In function
`av_dup_packet':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:247: undefined reference to
`av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x536): In function
`av_alloc_format_context':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:348: undefined reference to
`av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x55d):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:342:
undefined reference to`av_opt_set_defaults'
/usr/local/lib/libavformat.a(utils.o)(.text+0x5ea): In function
`av_open_input_stream':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:380: undefined reference to
`av_strlcpy'
/usr/local/lib/libavformat.a(utils.o)(.text+0x601):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:384:
undefined reference to `av_mallocz'
/usr/local/lib/libavformat.a(utils.o)(.text+0x668):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:404:
undefined reference to `av_freep'
/usr/local/lib/libavformat.a(utils.o)(.text+0x674):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:406:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x695):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:348:
undefined reference to `av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x6bc):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:342:
undefined reference to `av_opt_set_defaults'
/usr/local/lib/libavformat.a(utils.o)(.text+0x88c): In function
`compute_pkt_fields':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:668: undefined reference to
`av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x104e):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:679:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1529):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:529:
undefined reference to `av_get_bits_per_sample'
/usr/local/lib/libavformat.a(utils.o)(.text+0x16d0): In function
`av_update_cur_dts':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1039: undefined reference
to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1812): In function
`av_add_index_entry':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1067: undefined reference
to `av_fast_realloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1bb4): In function
`av_read_frame_internal':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:872: undefined reference to
`av_parser_init'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1c41):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:805:
undefined reference to `av_parser_parse'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1e2a):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:887:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1e5e):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:862:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x1eff):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:848:
undefined reference to `av_parser_parse'
/usr/local/lib/libavformat.a(utils.o)(.text+0x204e): In function
`av_read_frame':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:902: undefined reference to
`av_mallocz'
/usr/local/lib/libavformat.a(utils.o)(.text+0x208d):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:247:
undefined reference to `av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x212f):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:942:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x21bf): In function
`av_gen_search':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1206: undefined reference
to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x230b):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1281:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x23cf):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1250:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x24d8):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1259:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x25d9):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1306:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x27c6):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1284:
undefined reference t/usr/local/lib/libavformat.a(utils.o)(.text+0x283a): In
function `av_seek_frame_binary':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1147: undefined reference
to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2a01):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1182:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2abe):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1039:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2b18):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1166:
undefined reference to `av_log'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2ca1): In function
`av_seek_frame':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:976: undefined reference to
`av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2d60):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1024:
undefined reference to `av_parser_close'
/usr/local/lib/libavformat.a(utils.o)(.text+0x2ec9):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:976:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x30c4):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1024:
undefined reference to `av_parser_close'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3178):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1039:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x334f):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1405:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3423):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1039:
undefined reference to `av_rescale'
/usr/local/lib/libavformat.a(utils.o)(.text+0x34e7): In function
`av_update_stream_timings':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1473: undefined reference
to `av_rescale_q'
/usr/local/lib/libavformat.a(utils.o)(.text+0x35f4):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1462:
undefined reference to `av_rescale_q'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3641):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1467:
undefined reference to `av_rescale_q'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3991): In function
`av_find_stream_info':
/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1846: undefined reference
to `av_mallocz'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3a0a):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1859:
undefined reference to `av_parser_init'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3b8f):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:902:
undefined reference to `av_mallocz'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3be2):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:247:
undefined reference to `av_malloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x3f59):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1997:
undefined reference to `av_rescale_q'
/usr/local/lib/libavformat.a(utils.o)(.text+0x40a3):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:2100:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x40be):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:2102:
undefined reference to `av_freep'
/usr/local/lib/libavformat.a(utils.o)(.text+0x415f):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:2007:
undefined reference to `avcodec_close'
/usr/local/lib/libavformat.a(utils.o)(.text+0x43bb):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:976:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(utils.o)(.text+0x4475):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1960:
undefined reference to `av_realloc'
/usr/local/lib/libavformat.a(utils.o)(.text+0x451e):/usr/local/src/FFmpeg/ffmpeg/libavformat/utils.c:1713:
undefined reference to `avcodec_find_decoder'
/usr/local/lib/libavformat.a(avio.o)(.text+0x29e):/usr/local/src/FFmpeg/ffmpeg/libavformat/avio.c:142:
undefined reference to `av_free'
/usr/local/lib/libavformat.a(avio.o)(.text+0x388): In function
`url_get_filename':
/usr/local/src/FFmpeg/ffmpeg/libavformat/avio.c:177: undefined reference to
`av_strlcpy'
collect2: ld returned 1 exit status
configure:24425: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "SoX"
| #define PACKAGE_TARNAME "sox"
| #define PACKAGE_VERSION "14.0.1"
| #define PACKAGE_STRING "SoX 14.0.1"
| #define PACKAGE_BUGREPORT "sox...@li..."
| #define PACKAGE "sox"
| #define VERSION "14.0.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LTDL_H 1
| #define HAVE_LIBLTDL 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_BYTESWAP_H 1
:| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRDUP 1
| #define HAVE_POPEN 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_LIBM 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_ALSA_ASOUNDLIB_H 1
| #define HAVE_ALSA 1
| #define HAVE_AO_AO_H 1
| #define HAVE_LIBAO 1
| #define HAVE_SYS_SOUNDCARD_H 1
| #define HAVE_OSS 1
| #define HAVE_SNDFILE_H 1
| #define HAVE_SNDFILE_1_0_12 1
| #define HAVE_SNDFILE_1_0_18 1
| #define HAVE_OGG_VORBIS 1
| #define HAVE_FLAC 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char av_open_input_file ();
| int
| main ()
| {
| return av_open_input_file ();
| ;
| return 0;
| }
configure:24443: result: no
configure:24451: checking for av_rescale_q in -lavutil
configure:24486: gcc -o conftest -g -O2 -Wall -W -Wmissing-prototypes
-Wstrict-prototypes -pedantic -Wl,-z,defs conftest.c -la
vutil -lm >&5
$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
>&5
conftest.c:55: warning: function declaration isn't a prototype
conftest.c:58: warning: function declaration isn't a prototype
configure:24492: $? = 0
configure:24510: result: yes
# ---------------------------------------------------------
# ---- pretty much the same thing over again for the
# ---- avcodec_decode_audio2
# ---- Finishing up with
# ---------------------------------------------------------
collect2: ld returned 1 exit status
configure:24559: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "SoX"
| #define PACKAGE_TARNAME "sox"
| #define PACKAGE_VERSION "14.0.1"
| #define PACKAGE_STRING "SoX 14.0.1"
| #define PACKAGE_BUGREPORT "sox...@li..."
| #define PACKAGE "sox"
| #define VERSION "14.0.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LTDL_H 1
| #define HAVE_LIBLTDL 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMEB_H 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRDUP 1
| #define HAVE_POPEN 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_LIBM 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_ALSA_ASOUNDLIB_H 1
| #define HAVE_ALSA 1
| #define HAVE_AO_AO_H 1
| #define HAVE_LIBAO 1
| #define HAVE_SYS_SOUNDCARD_H 1
| #define HAVE_OSS 1
| #define HAVE_SNDFILE_H 1
| #define HAVE_SNDFILE_1_0_12 1
| #define HAVE_SNDFILE_1_0_18 1
| #define HAVE_OGG_VORBIS 1
| #define HAVE_FLAC 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char avcodec_decode_audio2 ();
| int
| main ()
| {
| return avcodec_decode_audio2 ();
| ;
| return 0;
| }
configure:24577: result: no
configure:24592: error: cannot find ffmpeg
See `config.log' for more details.
--
View this message in context: http://www.nabble.com/Build-with-ffmpeg-not-working-tp15641295p15641295.html
Sent from the SoX mailing list archive at Nabble.com.
|