You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to cross compile ffmpeg[openh264] to x86_64 on arm64 on macOS it doesn't correctly build. I believe it broke with this commit. It appears to not be setting the meson host_machine to x86 so it's looping in arm64 code instead of x86 code.
-- Found Python version '3.13.0 at /opt/homebrew/bin/python3'
-- Using meson: /Volumes/Storage/Projects/Mirror/raven/vcpkg/downloads/tools/meson-1.6.1-6779de/meson.py
-- Using cached cisco-openh264-v2.6.0.tar.gz
-- Cleaning sources at /Volumes/Storage/Projects/Mirror/raven/vcpkg/buildtrees/openh264/src/v2.6.0-dec37c638c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Volumes/Storage/Projects/Mirror/raven/vcpkg/downloads/cisco-openh264-v2.6.0.tar.gz
-- Using source at /Volumes/Storage/Projects/Mirror/raven/vcpkg/buildtrees/openh264/src/v2.6.0-dec37c638c.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-osx
-- Configuring x64-osx-dbg
-- Configuring x64-osx-dbg done
-- Configuring x64-osx-rel
-- Configuring x64-osx-rel done
-- Package x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /opt/homebrew/bin/ninja install -v
Working Directory: /Volumes/Storage/Projects/Mirror/raven/vcpkg/buildtrees/openh264/x64-osx-dbg
Error code: 1
See logs for more information:
/Volumes/Storage/Projects/Mirror/raven/vcpkg/buildtrees/openh264/package-x64-osx-dbg-out.log
Call Stack (most recent call first):
installed/arm64-osx/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:33 (vcpkg_execute_required_process)
ports/openh264/portfile.cmake:37 (vcpkg_install_meson)
scripts/ports.cmake:196 (include)
vcpkg@vcpkgs-Virtual-Machine vcpkg % ./vcpkg version
vcpkg package management program version 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
See LICENSE.txt for license information.
Sorry I didn't repro your issue.
vcpkg@vcpkgs-Virtual-Machine vcpkg % uname -m
arm64
vcpkg@vcpkgs-Virtual-Machine vcpkg %
vcpkg@vcpkgs-Virtual-Machine vcpkg %
vcpkg@vcpkgs-Virtual-Machine vcpkg % ./vcpkg install openh264:x64-osx --binarysource=clear
Computing installation plan...
The following packages will be built and installed:
openh264:[email protected]
Detecting compiler hash for triplet x64-osx...
Compiler found: /Library/Developer/CommandLineTools/usr/bin/c++
Installing 1/1 openh264:[email protected]...
Building openh264:[email protected]...
-- Found Python version '3.13.1 at /opt/homebrew/bin/python3'
-- Using meson: /Users/vcpkg/vcpkg/downloads/tools/meson-1.6.1-6779de/meson.py
-- Using cached cisco-openh264-v2.6.0.tar.gz
-- Cleaning sources at /Users/vcpkg/vcpkg/buildtrees/openh264/src/v2.6.0-dec37c638c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/vcpkg/vcpkg/downloads/cisco-openh264-v2.6.0.tar.gz
-- Using source at /Users/vcpkg/vcpkg/buildtrees/openh264/src/v2.6.0-dec37c638c.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-osx
-- Configuring x64-osx-dbg
-- Configuring x64-osx-dbg done
-- Configuring x64-osx-rel
-- Configuring x64-osx-rel done
-- Package x64-osx-dbg
-- Package x64-osx-rel
-- Fixing pkgconfig file: /Users/vcpkg/vcpkg/packages/openh264_x64-osx/lib/pkgconfig/openh264.pc
-- Fixing pkgconfig file: /Users/vcpkg/vcpkg/packages/openh264_x64-osx/debug/lib/pkgconfig/openh264.pc
-- Installing: /Users/vcpkg/vcpkg/packages/openh264_x64-osx/share/openh264/copyright
-- Performing post-build validation
Elapsed time to handle openh264:x64-osx: 8.9 s
openh264:x64-osx package ABI: a6c086bd9fce59b273926f0864a6dd1d47846de2f7b4f86624bca23b610542f3
Total install time: 8.9 s
openh264 provides pkg-config modules:
# OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC.
openh264
When attempting to cross compile ffmpeg[openh264] to x86_64 on arm64 on macOS it doesn't correctly build. I believe it broke with this commit. It appears to not be setting the meson
host_machine
to x86 so it's looping in arm64 code instead of x86 code.Package: openh264:[email protected]
Host Environment
vcpkg-scripts version: 418da99 2025-03-05 (24 hours ago)
To Reproduce
vcpkg install --recurse --allow-unsupported ffmpeg[openh264]:x64-osx
Failure logs
/Volumes/Storage/Projects/Mirror/raven/vcpkg/buildtrees/openh264/package-x64-osx-dbg-out.log
The text was updated successfully, but these errors were encountered: