Skip to content
This repository has been archived by the owner on Jan 27, 2018. It is now read-only.

libass failed to build on 10.7.5 #77

Open
CronianIce opened this issue Sep 15, 2015 · 1 comment
Open

libass failed to build on 10.7.5 #77

CronianIce opened this issue Sep 15, 2015 · 1 comment

Comments

@CronianIce
Copy link

I'm trying to compile mpv on Mac OS X Lion (10.7.5), but one of the dependencies (libass) fails to build because CoreText is seemingly missing. Ran brew update and brew doctor to no avail. Also, gist-logs are empty. I took a peek at the configure script for libass and there's a comment stating something about not being able to use CoreText directly before Mac OS X Mountain Lion, but I'm not sure what to do about it. Here's a verbose output from terminal:

HOMEBREW_MAKE_JOBS=1 brew install -v --HEAD --with-bundle --with-blueray-support --with-libdvdread --with-little-cms2 --with-lua mpv 2>&1
==> Installing mpv from mpv-player/homebrew-mpv
==> Installing dependencies for mpv-player/mpv/mpv: mpv-player/mpv/libass-git, texi2html, x264, lame, libvo-aacenc, xvid, ffmpeg, mpg123, jpeg, libdvdcss, libdvdread, libtiff, little-cms2, lua, youtube-dl
==> Installing mpv-player/mpv/mpv dependency: mpv-player/mpv/libass-git
==> Cloning https://github.com/libass/libass.git
Updating /Library/Caches/Homebrew/libass-git--git
git config remote.origin.url https://github.com/libass/libass.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master --
Already on 'master'
git reset --hard origin/master
HEAD is now at b4c3e21 ass_fontselect: do not use PATH_MAX
==> Checking out branch master
==> autoreconf -i
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:6: installing './compile'
configure.ac:6: installing './config.guess'
configure.ac:6: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
libass/Makefile.am: installing './depcomp'
==> ./configure --disable-dependency-tracking --disable-fontconfig --prefix=/usr/local/Cellar/libass-git/HEAD
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... none
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin11.4.2 file names to x86_64-apple-darwin11.4.2 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin11.4.2 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.4.2 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) none
checking how to run the C preprocessor... clang -E
checking dependency style of clang... none
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for strdup... yes
checking for strndup... yes
checking for library containing libiconv_open... no
checking for library containing iconv_open... -liconv
checking for fabs in -lm... yes
checking for yasm... yes
checking if yasm supports vpmovzxwd... yes
checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FREETYPE... yes
checking for FRIBIDI... yes
checking for CORETEXT... no
checking for DIRECTWRITE... no
checking for HARFBUZZ... yes
checking for ENCA... no
configure: error: Either DirectWrite (on Windows), CoreText (on OSX), or Fontconfig(Linux, other) is required. If you really want to compile withouta system font provider, add --disable-require-system-font-provider
==> Formula
Tap: mpv-player/homebrew-mpv
Path: /usr/local/Library/Taps/mpv-player/homebrew-mpv/Formula/libass-git.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 220d300872e1b608983afc96e09e0d52af6c74bf
Last commit: 4 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: dual-core 64-bit core2
OS X: 10.7.5-i386
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.6.5 => /usr/X11
System Ruby: 1.8.7-p358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Java: 1.6.0_65-b14-462
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local/opt/libpng:/usr/local/opt/freetype:/usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/icu4c:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fribidi/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.7
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/opt/freetype/share/aclocal:/usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/pkg-config/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/yasm/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fribidi/bin:/usr/local/opt/gettext/bin:/usr/local/opt/glib/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/harfbuzz/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: mpv-player/mpv/libass-git HEAD did not build
Logs:
     /Users/Anthony/Library/Logs/Homebrew/libass-git/01.autoreconf
     /Users/Anthony/Library/Logs/Homebrew/libass-git/02.configure
     /Users/Anthony/Library/Logs/Homebrew/libass-git/02.configure.cc
     /Users/Anthony/Library/Logs/Homebrew/libass-git/config.log
@pigoz
Copy link
Member

pigoz commented Oct 4, 2015

IIRC: the CoreText support needs some 10.8 features, or is only recognized on 10.8 (because Apple moved the framework). Unfortunately I have no access to a 10.7 system to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants