Opened 8 years ago

Closed 4 years ago

#53986 closed defect (fixed)

mpv@leopard(10.5.8-powerpc) - build fails

Reported by: mrkapqa Owned by: ionic@…
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: leopard powerpc Cc:
Port: mpv

Description

Hello ,

i tried today to build mpv on powermac g5 via macports.

had to download quite some packages manually , luckily found them all online.

building failed

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27-rubberband+x11

---> Computing dependencies for mpv The following dependencies will be installed:

cmake ffmpeg libcddb libcdio libcdio-paranoia libdvdcss libdvdnav libdvdread lua52 py27-sphinx soxr speex x264 xorg-libXScrnSaver xorg-libXinerama xorg-libXrandr xorg-libXv xorg-randrproto xorg-scrnsaverproto xorg-videoproto xorg-xineramaproto youtube-dl

after downloading and installing these,

---> Attempting to fetch waf-1.8.12 from http://nue.de.distfiles.macports.org/mpv ---> Verifying checksums for mpv ---> Extracting mpv ---> Applying patches to mpv ---> Configuring mpv Error: Failed to configure mpv: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port mpv failed ---> Some of the ports you installed have notes:

ffmpeg has the following notes:

* * This build of ffmpeg includes GPLed code and * is therefore licensed under GPL v2 or later. * * The following modules are GPLed: * * postproc * libx264 * libx265 * libxvid * * To include all nonfree, GPLed and LGPL code use variant +nonfree. * To remove nonfree and GPLed code leaving only LGPL code remove the * +gpl2 variant. *

py27-sphinx has the following notes:

To make the Python 2.7 version of Sphinx the one that is run when you execute the commands without a version suffix, e.g. 'sphinx-build', run:

port select --set sphinx py27-sphinx

then tried with

sudo port select --set sphinx py27-sphinx

but failed again.

please see main.log

Attachments (1)

main.log (184.8 KB) - added by mrkapqa 8 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by mrkapqa

Attachment: main.log added

comment:1 Changed 8 years ago by Schamschula (Marius Schamschula)

Owner: set to ionic@…
Status: newassigned

Here is your problem:

You manually enabled the feature 'coreaudio', but the autodetection check failed.

The configure script is not finding Core Audio (as Core Audio was introduced in Panther/10.3), it should be there. Do you have the correct version of Xcode and the command line tools installed?

In the future please add the port maintainer in the CC field. Use

port info --maintainer port_name

comment:2 Changed 8 years ago by kencu (Ken)

Thought I might try help you with this, but in the end, didn't fix it. It might still be possible, though...

First thing I did was fix rubberband, which took about 30 seconds -- it builds, installs, and runs just fine on ppc if you add ppc to the supported archs ( I just did this via the command line as a quickie sudo port -v install rubberband supported_archs=ppc, but you could also add ppc into the Portfile - or just delete the supported arches line in the Portfile completely), and then delete the Intel-only option flags (anything with sse in it). For expediency, I just edited Makefile.osx in the build directory directly to remove them, but you could override the optflags in the Portfile as well. If I get time, I'll fix this up in the rubberband Portfile. I didn't test how it actually works in practice, but I did confirm that it runs without crashing on 10.5 PPC. I didn't check if rubberband could use any altivec features or other ppc enhancements to work faster.

I then got the same CoreAudio output not found error that you got, so it's not your setup. (BTW I also noticed the chosen compiler - clang-3.4 - was not a good choice for PPC as well. That will have to get fixed up for PPC to work correctly, most likely.)

The CoreAudio test in the the configure script fails because the test program does not compile - the test program calls for a feature called AudioComponentDescription that apparently doesn't exist in the 10.5 SDK. Searching the web, some documentation says this showed up in 10.6, some says 10.10, and this says 10.12 <https://developer.apple.com/reference/audiotoolbox/audiocomponentdescription?language=objc> So it's not trivial to see exactly when this feature showed up.

Now whether mpv really needs that feature or not is another question - you would have to get into the guts of it to find that out, and override the configure script.

SO - it's not a trivial fix. If you're not too skilled at software archeology, I'd suggest you consider rolling back to whichever version of mpv last built on 10.5 and stick with that. That can take some time to find as well, and with the current status of the supporting ports, might not build now.

Another option for PPC might be to disable CoreAudio, and use something else like maybe SDL 1.2 to output the audio. More digging.

In the end, I guess it depends on how badly you would like mpv to work on 10.5 PPC, whether that kind of effort is worthwhile to you.

comment:3 Changed 8 years ago by kencu (Ken)

for a data point, if we're trying to see which Mac SDKs are currently supported, mpv installs and appears to work fine on 10.6

$ port -v installed mpv
The following ports are currently installed:
  mpv @0.22.0_4+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband (active) platform='darwin 10' archs='x86_64' date='2017-04-08T19:40:29-0700'

comment:4 Changed 8 years ago by Ionic (Mihai Moldovan)

PPC won't work. As explained before, mpv uses newer compiler and system library features, that are only available for x84_64. Even newer clang versions can't fix that issue.

There's not much I can do about this, short of patching mpv even more.

I won't close this bug report, but will also likely not act on it. The platform is ancient by now and especially in case of mpv more and more difficult to maintain/support.

comment:5 Changed 8 years ago by kencu (Ken)

Agreed. Even when disabling CoreAudio, disabling Cocoa, disabling OpenGL, and trying clang-3.4 on PPC, you then run into NSEventMask which is a 10.6 thing -- so getting this version onto 10.5 is appearing to be a lost cause.

comment:6 Changed 8 years ago by mrkapqa

hello , thank you very much for your help i tried with mplayer that did work out quite well so i can playback https:// streams , but playback is lagging, even with gtx7800 (flashed, though), so i might try to change some options if someone is knowledgable on this please visit here to see the error output from terminal https://github.com/mpv-player/mpv/issues/4317#issuecomment-294218622

comment:7 Changed 8 years ago by mf2k (Frank Schima)

Keywords: mpv removed
Milestone: MacPorts Future

comment:8 Changed 4 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.