[MacPorts] #53986: mpv at leopard(10.5.8-powerpc) - build fails

MacPorts noreply at macports.org
Sat Apr 15 22:20:12 UTC 2017


#53986: mpv at leopard(10.5.8-powerpc) - build fails
----------------------+---------------------------------
  Reporter:  mrkapqa  |      Owner:  ionic@…
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:  MacPorts Future
 Component:  ports    |    Version:  2.4.1
Resolution:           |   Keywords:  mpv leopard powerpc
      Port:  mpv      |
----------------------+---------------------------------

Comment (by kencu):

 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.

--
Ticket URL: <https://trac.macports.org/ticket/53986#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list