Hi list,

I’ve read questions in the list archives about ffmpeg's build system reporting that pkg-config could not find this or that external library. I'm having the same issue: it can't find Opus, Vorbis, Theora, mp3lame... I've tried prepending 'lib' to ".pc" file names that didn't have that and other such tricks, but pkg-config isn't having any of it. I've seen advice to add extra cflags and ldflags that point to the desired libraries, but they have to be called with an '--enable-' statement (and pkg-config has to recognize them) or they do not get built in.

Here is the relevant portion of 'ffbuild/config.log' for Opus. Please can some experienced person help out with this?

Jeff

require_pkg_config libopus opus opus_multistream.h opus_multistream_decoder_create check_pkg_config libopus opus opus_multistream.h opus_multistream_decoder_create test_pkg_config libopus opus opus_multistream.h opus_multistream_decoder_create
pkg-config --exists --print-errors opus
check_func_headers opus_multistream.h opus_multistream_decoder_create -I/usr/local/include/opus -L/usr/local/lib -lopus
test_ld cc -I/usr/local/include/opus -L/usr/local/lib -lopus
test_cc -I/usr/local/include/opus -L/usr/local/lib
BEGIN /tmp/ffconf.9RG9c4YU/test.c
    1   #include <opus_multistream.h>
    2   #include <stdint.h>
    3   long check_opus_multistream_decoder_create(void) { return (long) opus_multistream_decoder_create; }
    4   int main(void) { int ret = 0;
    5    ret |= ((intptr_t)check_opus_multistream_decoder_create) & 0xFFFF;
    6   return ret; }
END /tmp/ffconf.9RG9c4YU/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wl,--copy-dt-needed-entries -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-signed-zeros -fno-trapping-math -fassociative-math -Wl,-sort-common -Wl,--enable-new-dtags -std=c11 -fomit-frame-pointer -pthread -I/usr/include/p11-kit-1 -I/usr/local/include/opus -L/usr/local/lib -c -o /tmp/ffconf.9RG9c4YU/test.o /tmp/ffconf.9RG9c4YU/test.c gcc -Wl,--as-needed -Wl,-z,noexecstack -I/usr/local/include/opus -L/usr/local/lib -o /tmp/ffconf.9RG9c4YU/test /tmp/ffconf.9RG9c4YU/test.o -lopus /usr/bin/ld: /usr/local/lib/libopus.a(opus_decoder.o): in function `opus_decode_frame':
/root/opus/../opus-1.3/src/opus_decoder.c:598: undefined reference to `exp'
/usr/bin/ld: /usr/local/lib/libopus.a(celt_decoder.o): in function `celt_decode_lost': /root/opus/../opus-1.3/celt/celt_decoder.c:774: undefined reference to `sqrtf' /usr/bin/ld: /root/opus/../opus-1.3/celt/celt_decoder.c:700: undefined reference to `sqrtf'
/usr/bin/ld: /usr/local/lib/libopus.a(mdct.o): in function `clt_mdct_init':
/root/opus/../opus-1.3/celt/mdct.c:98: undefined reference to `cos'
/usr/bin/ld: /usr/local/lib/libopus.a(modes.o): in function `opus_custom_mode_create':
/root/opus/../opus-1.3/celt/modes.c:376: undefined reference to `sin'
/usr/bin/ld: /root/opus/../opus-1.3/celt/modes.c:376: undefined reference to `sin' /usr/bin/ld: /usr/local/lib/libopus.a(pitch.o): in function `compute_pitch_gain':
/root/opus/../opus-1.3/celt/pitch.c:426: undefined reference to `sqrtf'
/usr/bin/ld: /root/opus/../opus-1.3/celt/pitch.c:426: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libopus.a(quant_bands.o): in function `amp2Log2':
/root/opus/../opus-1.3/celt/quant_bands.c:553: undefined reference to `log'
/usr/bin/ld: /usr/local/lib/libopus.a(vq.o): in function `exp_rotation':
/root/opus/../opus-1.3/celt/vq.c:86: undefined reference to `cos'
/usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:87: undefined reference to `cos' /usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:86: undefined reference to `cos' /usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:87: undefined reference to `cos' /usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:86: undefined reference to `cos' /usr/bin/ld: /usr/local/lib/libopus.a(vq.o):/root/opus/../opus-1.3/celt/vq.c:87: more undefined references to `cos' follow /usr/bin/ld: /usr/local/lib/libopus.a(vq.o): in function `normalise_residual':
/root/opus/../opus-1.3/celt/vq.c:131: undefined reference to `sqrtf'
/usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:131: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libopus.a(vq.o): in function `renormalise_vector':
/root/opus/../opus-1.3/celt/vq.c:394: undefined reference to `sqrtf'
/usr/bin/ld: /usr/local/lib/libopus.a(vq.o): in function `stereo_itheta':
/root/opus/../opus-1.3/celt/vq.c:429: undefined reference to `sqrtf'
/usr/bin/ld: /root/opus/../opus-1.3/celt/vq.c:428: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libopus.a(bands.o):/root/opus/../opus-1.3/celt/bands.c:400: more undefined references to `sqrtf' follow
/usr/bin/ld: /usr/local/lib/libopus.a(bands.o): in function `quant_band':
/root/opus/../opus-1.3/celt/bands.c:1225: undefined reference to `sqrt'
/usr/bin/ld: /usr/local/lib/libopus.a(bands.o): in function `stereo_merge':
/root/opus/../opus-1.3/celt/bands.c:458: undefined reference to `sqrtf'
/usr/bin/ld: /root/opus/../opus-1.3/celt/bands.c:456: undefined reference to `sqrtf' /usr/bin/ld: /usr/local/lib/libopus.a(bands.o): in function `compute_band_energies':
/root/opus/../opus-1.3/celt/bands.c:169: undefined reference to `sqrtf'
/usr/bin/ld: /usr/local/lib/libopus.a(bands.o): in function `denormalise_bands':
/root/opus/../opus-1.3/celt/bands.c:230: undefined reference to `exp'
/usr/bin/ld: /usr/local/lib/libopus.a(bands.o): in function `anti_collapse':
/root/opus/../opus-1.3/celt/bands.c:299: undefined reference to `exp'
/usr/bin/ld: /root/opus/../opus-1.3/celt/bands.c:336: undefined reference to `exp' /usr/bin/ld: /root/opus/../opus-1.3/celt/bands.c:300: undefined reference to `sqrt' /usr/bin/ld: /usr/local/lib/libopus.a(kiss_fft.o): in function `compute_twiddles':
/root/opus/../opus-1.3/celt/kiss_fft.c:420: undefined reference to `sincos'
/usr/bin/ld: /root/opus/../opus-1.3/celt/kiss_fft.c:420: undefined reference to `sincos'
collect2: error: ld returned 1 exit status
ERROR: opus not found using pkg-config

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to