[FFmpeg-user] libbluray not found using pkg-config on macOS

桃源老師 xanadu6291 at dream.jp
Wed Oct 18 20:00:15 EEST 2017


I feel hesitate to post such a question.  But I can't solve the issue by myself.  So please help me!!

I have ffmpeg git of about one month before (N-87326-g3ffd3b7f5f).  With this ffpmeg, I can configure and make install fine.  
But current git head's configure outputs many not found error.  I have solved almost all of not found error except error with libbluray.  
The remaining libbluray error's config.log is as follows:

require_pkg_config libbluray libbluray libbluray/bluray.h bd_open
use_pkg_config libbluray libbluray libbluray/bluray.h bd_open
check_pkg_config libbluray libbluray libbluray/bluray.h bd_open
pkg-config --exists --print-errors libbluray
check_func_headers libbluray/bluray.h bd_open -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lbluray -lfreetype -lfontconfig -lfreetype
check_ld cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -lbluray -lfreetype -lfontconfig -lfreetype
check_cc -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib
BEGIN /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test.c
    1	#include <libbluray/bluray.h>
    2	#include <stdint.h>
    3	long check_bd_open(void) { return (long) bd_open; }
    4	int main(void) { int ret = 0;
    5	 ret |= ((intptr_t)check_bd_open) & 0xFFFF;
    6	return ret; }
END /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -I/Volumes/ffmpeg_compile/include -std=c11 -fomit-frame-pointer -fPIC -pthread -I/Volumes/ffmpeg_compile/include -I/Volumes/ffmpeg_compile/include/freetype2 -I/Volumes/ffmpeg_compile/include -I/Volumes/ffmpeg_compile/include/fribidi -I/Volumes/ffmpeg_compile/include/freetype2 -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -c -o /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test.o /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test.c
clang: warning: argument unused during compilation: '-L/Volumes/ffmpeg_compile/lib' [-Wunused-command-line-argument]
gcc -L/Volumes/ffmpeg_compile/lib -lc++ -Wl,-dynamic,-search_paths_first -Wl,-no_weak_imports -I/Volumes/ffmpeg_compile/include -L/Volumes/ffmpeg_compile/lib -o /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test /var/folders/0b/l7zs_0017z303xwxdrf5bwbr0000gn/T//ffconf.KI9JSGj1/test.o -lbluray -lfreetype -lfontconfig -lfreetype
Undefined symbols for architecture x86_64:
  "_BZ2_bzDecompress", referenced from:
      _ft_bzip2_file_fill_output in libfreetype.a(ftbzip2.o)
  "_BZ2_bzDecompressEnd", referenced from:
      _ft_bzip2_stream_io in libfreetype.a(ftbzip2.o)
      _ft_bzip2_stream_close in libfreetype.a(ftbzip2.o)
  "_BZ2_bzDecompressInit", referenced from:
      _FT_Stream_OpenBzip2 in libfreetype.a(ftbzip2.o)
      _ft_bzip2_stream_io in libfreetype.a(ftbzip2.o)
  "_inflate", referenced from:
      _FT_Gzip_Uncompress in libfreetype.a(ftgzip.o)
      _ft_gzip_file_fill_output in libfreetype.a(ftgzip.o)
  "_inflateEnd", referenced from:
      _FT_Stream_OpenGzip in libfreetype.a(ftgzip.o)
      _ft_gzip_stream_close in libfreetype.a(ftgzip.o)
      _FT_Gzip_Uncompress in libfreetype.a(ftgzip.o)
  "_inflateInit2_", referenced from:
      _FT_Stream_OpenGzip in libfreetype.a(ftgzip.o)
      _FT_Gzip_Uncompress in libfreetype.a(ftgzip.o)
  "_inflateReset", referenced from:
      _ft_gzip_file_io in libfreetype.a(ftgzip.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: libbluray not found using pkg-config


Are those error related with bzip2? freetype2?

Please help me!!


Best Regards,



// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3864 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20171019/7da1ef5a/attachment.bin>


More information about the ffmpeg-user mailing list