deps.ffmpeg: Switch Windows builds to native build toolchain: PR#186

qcvndemo01

New Member
Hi, I'm testing this pull request (https://github.com/obsproject/obs-deps/pull/186) but failed to build. Please help to guide me. Here is the detailed info:

  1. Goal
    • Confirm that PR is for building and running ffmpeg and its dependencies natively on Windows on ARM64 devices.
  2. Environment
    • Windows on ARM64-based device
    • Windows 11 Pro 22H2
    • MSYS2, zsh, and ohmyzsh installed. I know that MSYS2 can be used to run zsh script on Windows, it will generate native windows apps/libs.
    • MSVC toolchain (visual studio 2022, etc.)
  3. Build
  • clone the source code: git clone https://github.com/PatTheMav/obs-deps.git -b ffmpeg-on-windows
  • Open MSYS2 MSYS, which run zsh shell by default
  • cd <root_dir>
  • ./build-ffmpeg.zsh
  • It shows the error:
    [OBS-DEPS] - configuration Release, target msys_nt-10.0-22621-x86_64, shared libraries: No
    => Checking for ccache...
    => No ccache found on the system
    setup_target:9: project_root: parameter not set
  • Try another command: ./build-ffmpeg.zsh windows-arm64
    It shows:
    [OBS-DEPS] - configuration Release, target msys_nt-10.0-22621-x86_64, shared libraries: No
    Dependencies: windows-arm64
    => Checking for ccache...
    => No ccache found on the system
    setup_target:9: project_root: parameter not set
I've asked the same question on that PR, and the author of PR said that I need to use Build-Dependencies.ps1 (".\Build-Dependencies.ps1 RelWithDebInfo ffmpeg" is the command I run. With this command, the target will be x64 by default). The zsh is for MacOS only.

Anyone can help me on this query?

Thank you in advance!
 
Top