#36793: mplayer2 @ 2.0-20120815_2 build error ----------------------------+------------------- Reporter: notinmyhead@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: mplayer2 | ----------------------------+------------------- Comment (by mike.c.wilding@…): I had a similar error with compiling mplayer 2. The error relates to a change in the struct AVCodec in header libavcodec/aavcodec.h. This header comes from ffmpeg (which is missing from the Portfile as a compile time dependency). Digging around the ffmpeg releases and I can see that the struct changed sometime between ffmpeg release 0.11.x and 1.0. It appears mplayer2 is not compatible with ffmpeg version 1.0. As a workaround you can install an old version of ffmpeg-devel port 20120917. Download the old ffmpeg-devel port file r97854 from svn or https://trac.macports.org/browser/trunk/dports/multimedia/ffmpeg- devel/Portfile?rev=97854 and add to a local macport repository or install manually. See http://guide.macports.org/#development.local-repositories or https://trac.macports.org/wiki/howto/InstallingOlderPort for more detailed instructions on installing custom and old ports respectively. The long term solution would be to update mplayer2 source to compile/link against ffmpeg 1.0; a job for its developers. In the short term one could create an ffmpeg-old port that is marked as conflicting with ffmpeg/ffmpeg-devel and add it as a compile/runtime dependency to mplayer2. Alternatively modify the port file to warn the user if an incompatible version of ffmpeg is installed. -- Ticket URL: <https://trac.macports.org/ticket/36793#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS