#47822 closed defect (fixed)
mpv @0.8.3: build failure on Lion
Reported by: | creativecommon@… | Owned by: | Ionic (Mihai Moldovan) |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | ||
Port: | mpv |
Description
I am getting the following error, any help would be appreciated. TIA
Also attached the log file.
Port Name : mpv (0.8.3) Mac OSX Lion (10.7.5) Local Macports Install location : /macports
:info:configure Setting top to : /macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.8.3 :info:configure Setting out to : /macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.8.3/build :info:configure Checking for waf version in 1.8.4-1.9.0 : ok :info:configure Checking for program 'cc' : /macports/bin/clang-mp-3.4 :info:configure Checking for program 'pkg-config' : /macports/bin/pkg-config :info:configure Checking for program 'ar' : /macports/bin/ar :info:configure Checking for program 'perl' : /macports/bin/perl :info:configure Checking for program 'rst2man-2.7' : /macports/bin/rst2man-2.7.py :info:configure Checking for program 'rst2pdf' : not found :info:configure Checking for program 'windres' : not found :info:configure Checking for 'clang' (C compiler) : /macports/bin/clang-mp-3.4 :info:configure Detected target OS: : os-darwin :info:configure Checking for compiler flags -Werror=implicit-function-declaration : yes :info:configure Checking for compiler flags -Wno-error=deprecated-declarations : yes :info:configure Checking for compiler flags -Wno-error=unused-function : yes :info:configure Checking for compiler flags -Wempty-body : yes :info:configure Checking for compiler flags -Wdisabled-optimization : yes :info:configure Checking for compiler flags -Wstrict-prototypes : yes :info:configure Checking for compiler flags -Wno-format-zero-length : yes :info:configure Checking for compiler flags -Werror=format-security : yes :info:configure Checking for mpv CLI player : yes :info:configure Checking for shared library : disabled :info:configure Checking for static library : disabled :info:configure Checking for static build : disabled :info:configure Checking for whether to include binary compile time : yes :info:configure Checking for whether to optimize : yes :info:configure Checking for whether to compile-in debugging information : disabled :info:configure Checking for manpage generation : yes :info:configure Checking for pdf manual generation : disabled :info:configure Checking for dynamic loader : yes :info:configure Checking for dlopen : yes :info:configure Checking for compilation of default filters for vf_dlopen : disabled :info:configure Checking for zsh completion : disabled :info:configure Checking for inline assembly (currently without effect) : yes :info:configure Checking for test suite (using cmocka) : disabled :info:configure Checking for generate a clang compilation database : disabled :info:configure Checking for compiler support for noexecstack : no :info:configure Checking for linker support for --nxcompat --no-seh --dynamicbase : no :info:configure Checking for -lm : yes :info:configure Checking for MinGW : os-win32 not found :info:configure Checking for POSIX environment : yes :info:configure Checking for programming environment : yes :info:configure Checking for internal pthread wrapper for win32 (Vista+) : disabled :info:configure Checking for POSIX threads : yes :info:configure Checking for stdatomic.h : no :info:configure Checking for compiler support for __atomic built-ins : yes :info:configure Checking for compiler support for __sync built-ins : atomic-builtins found :info:configure Checking for compiler support for usable thread synchronization built-ins : yes :info:configure Checking for linking with -lrt : no :info:configure Checking for iconv : yes :info:configure Checking for w32/dos paths : not found any of os-win32, os-cygwin :info:configure Checking for libwaio for win32 : mingw, os-win32 not found :info:configure Checking for termios : yes :info:configure Checking for shm : yes :info:configure Checking for nanosleep : yes :info:configure Checking for POSIX spawnp()/kill() : yes :info:configure Checking for glob() : yes :info:configure Checking for glob() win32 replacement : not found any of os-win32, os-cygwin :info:configure Checking for GLIBC API for setting thread name : no :info:configure Checking for OSX API for setting thread name : yes :info:configure Checking for BSD API for setting thread name : osx-thread-name found :info:configure Checking for NetBSD API for setting thread name : osx-thread-name found :info:configure Checking for BSD's fstatfs() : yes :info:configure Checking for Linux's fstatfs() : os-linux not found :info:configure Checking for libguess support : no ('libguess >= 1.0' not found) :info:configure Checking for Samba support : yes :info:configure Checking for Lua : yes (version found: 52) :info:configure Checking for SSA/ASS support : yes :info:configure Checking for libass OSD support : yes :info:configure Checking for dummy OSD support : libass-osd found :info:configure Checking for zlib : yes :info:configure Checking for Encoding : yes :info:configure Checking for joystick : disabled :info:configure Checking for lirc : disabled :info:configure Checking for Bluray support : yes :info:configure Checking for dvdread support : yes :info:configure Checking for dvdnav support : yes :info:configure Checking for cdda support (libcdio) : yes :info:configure Checking for ENCA support : disabled :info:configure Checking for mpg123 support : yes :info:configure Checking for LADSPA plugin support : no :info:configure Checking for libbs2b audio filter support : no ('libbs2b' not found) :info:configure Checking for LCMS2 support : yes :info:configure Checking for VapourSynth filter bridge (core) : no ('vapoursynth >= 23' not found) :info:configure Checking for VapourSynth filter bridge (Python) : disabled :info:configure Checking for VapourSynth filter bridge (Lazy Lua) : disabled :info:configure Checking for SDL2 : disabled :info:configure Checking for SDL (1.x) : disabled :info:configure Checking for OSS (implementation from opensound.com) : no :info:configure Checking for OSS (platform-specific OSS implementation) : no :info:configure Checking for OSS (emulation on top of SunAudio) : no :info:configure Checking for OSS audio output : not found any of oss-audio-native, oss-audio-4front, oss-audio-sunaudio :info:configure Checking for RSound audio output : no :info:configure Checking for sndio audio input/output : disabled :info:configure Checking for PulseAudio audio output : disabled :info:configure Checking for JACK audio output : disabled :info:configure Checking for OpenAL audio output : disabled :info:configure Checking for ALSA audio output : no ('alsa >= 1.0.18' not found) :info:configure Checking for CoreAudio audio output : yes :info:configure Checking for DirectSound audio output : no :info:configure Checking for WASAPI audio output : no :info:configure Checking for Cocoa : no ''':info:configure You manually enabled the feature 'cocoa', but the autodetection check failed.''' :info:configure Command failed: cd "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.8.3" && /macports/bin/python2.7 ./waf configure --prefix=/macports --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --disable-pdf-build --disable-test --disable-clang-database --disable-debug-build --enable-libsmbclient --disable-lirc --enable-dvdread --enable-dvdnav --enable-cdda --disable-vapoursynth --disable-vapoursynth-lazy --disable-enca --enable-mpg123 --disable-pulse --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xss --disable-xext --disable-xv --disable-gl-x11 --disable-egl-x11 --disable-xinerama --disable-xrandr --disable-caca --disable-jpeg --disable-tv --enable-apple-remote --enable-vda-hwaccel --enable-vda-gl --enable-lua --lua=52 --enable-libass-osd :info:configure Exit code: 1 :'''error:configure org.macports.configure for port mpv returned: configure failure: command execution failed''' :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed while executing "portconfigure::configure_main org.macports.configure" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:configure Warning: targets not executed for mpv: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install :notice:configure Please see the log file for port mpv for details: /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/main.log
Attachments (1)
Change History (13)
Changed 9 years ago by creativecommon@…
Attachment: | mpv0.8.3_main.log added |
---|
comment:1 Changed 9 years ago by Ionic (Mihai Moldovan)
Cc: | ionic@… removed |
---|---|
Keywords: | OSX Lion mpv error removed |
Owner: | changed from macports-tickets@… to ionic@… |
Priority: | Normal → Low |
Status: | new → assigned |
Summary: | mpv @0.8.3 : You manually enabled the feature 'cocoa', but the autodetection check failed. → mpv @0.8.3: build failure on Lion |
Thanks for this great bug report!
Upstream only supports 10.8 and up.
I am aware of the configure failure on Lion, but haven't found out why it's happening in the first place.
If you check $(port work mpv)/mpv-0.8.3/build/config.log
, you'll see that it's failing to link libarclite. However, Xcode should provide libarclite just fine.
I have no machine with 10.7 and no resources for a VM, so debugging this problem is very difficult for me.
comment:2 Changed 9 years ago by creativecommon@…
Thanks for the quick response ionic!, really appreciate it.
Upon seaching I found these links :
Fails to compile on OS X < 10.8 https://github.com/mpv-player/mpv/issues/117
Possible Fix? : https://github.com/mpv-player/mpv/commit/0407869ae3aeea0d015b18bd8a901034ed45e76f
comment:3 Changed 9 years ago by Ionic (Mihai Moldovan)
Nah, that commit is long part of mpv. I guess I can try to force-add the Xcode SDK lib path, but will need to check how other ports are doing that -- if there even are other ports doing that.
Can you find out where exactly on your system libarclite is? All locations if possible.
comment:4 Changed 9 years ago by creativecommon@…
I found the following file :
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
arc $ls total 152 drwxr-xr-x 5 xxxx admin 170 Jun 9 2013 . drwxr-xr-x 9 xxxx admin 306 Jun 9 2013 .. -rw-r--r-- 1 xxxx admin 85728 Jun 9 2013 libarclite_iphoneos.a -rw-r--r-- 1 xxxx admin 43264 Jun 9 2013 libarclite_iphonesimulator.a -rw-r--r-- 1 xxxx admin 48688 Jun 9 2013 libarclite_macosx.a
Please let me know if you need any additional information.
Looks like people were having similar issues with libarclite on Lion --> #36443
Added: Also found one in :
/usr/lib/arc/libarclite_macosx.a
comment:5 Changed 9 years ago by Ionic (Mihai Moldovan)
Okay, thanks.
I guess I understand what's going on now. We'll likely have to compile with the compiler provided by Xcode's command line tools. The only problem is that this will not be possible on 10.6 and below, but I can work around that.
Okay, will try to craft something up "tomorrow".
comment:6 Changed 9 years ago by Ionic (Mihai Moldovan)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The Lion buildslave was happy with my changes, mpv completed successfully. Also on Mavericks and Yosemite.
This should be fixed in r136695.
Please wait half an hour, sync and try it out.
comment:7 Changed 9 years ago by creativecommon@…
Yep, I was able to compile and run mpv successfuly.
Thanks again Ionic, really appreciate it.
PS: I was wondering if I can compile mpv, without the player window (cocoa/Mac window decorator) which popups up when I play a file. As I use dwm (tiling window manager) and love how mplayer fits nicely into a tiled window, with out any new windows opening outside the context of the tiling window manager.
Is the above possible with mpv?, what options should I be passing during compilation to achieve this. TIA
comment:8 Changed 9 years ago by creativecommon@…
Nevermind figured out.
Had to pass -vo=x11 as option ($mpv -vo=x11 blah.mpg )
comment:9 Changed 9 years ago by Ionic (Mihai Moldovan)
Yep, if dwm
is an X11 application, you'll want to
- install mpv with at least the additional
x11
variant (opengl
is already enabled by default), e.g.:sudo port -svt upgrade --enforce-variants mpv +x11
(it looks like you already have that in place, so feel free to skip it) - for the best experience, use something like
mpv -vo=opengl-hq:backend=x11 blargh.mkv
at runtime. The "normal" x11 vo is unaccelerated and very slow.
Does that work as you'd expect it?
comment:10 follow-up: 11 Changed 9 years ago by Ionic (Mihai Moldovan)
If it works fine, you can also hardcode this in ~/.mpv/config
.
Note that I ship an example file, for more information please read:
port notes mpv
comment:11 Changed 9 years ago by creativecommon@…
Replying to ionic@…:
If it works fine, you can also hardcode this in
~/.mpv/config
.Note that I ship an example file, for more information please read:
port notes mpv
Thanks! I made the modifications you suggested, and it works flawlessly. :)
mpv 0.8.3 - main.log