[MacPorts] #71427: ffmpeg7 - Fails to Build on El Capitan - error: must use 'enum' tag to refer to type 'AVMediaType'
MacPorts
noreply at macports.org
Sat Nov 30 16:42:51 UTC 2024
#71427: ffmpeg7 - Fails to Build on El Capitan - error: must use 'enum' tag to
refer to type 'AVMediaType'
----------------------+-----------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: elcapitan
Port: ffmpeg7 |
----------------------+-----------------------
Comment (by RobK88):
Here is the workaround. Use a newer compiler such as `clang-11`. See
below:
{{{
grinch$ sudo port clean ffmpeg7
---> Cleaning ffmpeg7
grinch$ sudo port install ffmpeg7 configure.compiler=macports-clang-11
---> Computing dependencies for ffmpeg7
---> Fetching archive for ffmpeg7
---> Attempting to fetch ffmpeg7-7.1_0+gpl2.darwin_15.x86_64.tbz2 from
http://packages.macports.org/ffmpeg7
---> Attempting to fetch ffmpeg7-7.1_0+gpl2.darwin_15.x86_64.tbz2 from
http://ywg.ca.packages.macports.org/mirror/macports/packages/ffmpeg7
---> Attempting to fetch ffmpeg7-7.1_0+gpl2.darwin_15.x86_64.tbz2 from
https://mirrors.mit.edu/macports/packages/ffmpeg7
---> Fetching distfiles for ffmpeg7
---> Verifying checksums for ffmpeg7
---> Extracting ffmpeg7
---> Applying patches to ffmpeg7
---> Configuring ffmpeg7
---> Building ffmpeg7
---> Staging ffmpeg7 into destroot
---> Installing ffmpeg7 @7.1_0+gpl2
---> Activating ffmpeg7 @7.1_0+gpl2
---> Cleaning ffmpeg7
---> Updating database of binaries
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
---> Some of the ports you installed have notes:
ffmpeg7 has the following notes:
Support for rav1e now disabled by default; enable via +rav1e
This build of ffmpeg7 includes GPLed code and is therefore licensed
under GPL v2 or later.
The following modules are GPLed:
libvidstab libx264 libx265 libxvid postproc
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.
To compile and link with ffmpeg7, add
-I/opt/local/libexec/ffmpeg7/include and
-L/opt/local/libexec/ffmpeg7/lib to your compile command.
For builds using pkg-config, add
/opt/local/libexec/ffmpeg7/lib/pkgconfig to
$PKG_CONFIG_PATH.
grinch$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71427#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list