[FFmpeg-devel] Procedure to enable the Windows on ARM64 FFMPEG Libraries
Niranjan Kshatriya (QUIC)
quic_nkshatri at quicinc.com
Thu Oct 3 08:25:24 EEST 2024
Thanks team for the info.
I have used x86_64 toolchain and compiled FFMPEG for windows on ARM, binaries generated are running successfully on my ARM device.
Used tool chain "llvm-mingw-20240917-ucrt-ubuntu-20.04-x86_64" and compiled with command :
./configure --arch=arm64 --target-os=mingw32 --cross-prefix=aarch64-w64-mingw32- --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-version3 --disable-debug --disable-libxcb --disable-xlib --disable-libpulse --disable-libfdk-aac --disable-libdrm --enable-nonfree --enable-schannel --disable-libdrm && PATH="$HOME/bin:$PATH" make -j4
toolchain picked from https://github.com/mstorsjo/llvm-mingw/releases/download/20240917/llvm-mingw-20240917-ucrt-ubuntu-20.04-x86_64.tar.xz
Can we have this procedure been added for generating and FFMPEG ARM binaries being available on target page ?
Regards,
Niranjan
-----Original Message-----
From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Martin Storsjö
Sent: Thursday, September 12, 2024 2:05 PM
To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
Subject: Re: [FFmpeg-devel] Procedure to enable the Windows on ARM64 FFMPEG Libraries
WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.
On Thu, 12 Sep 2024, Niranjan Kshatriya (QUIC) wrote:
> and compiled locally ( on ARM using WSL ) for Arm with tool chain :
> GitHub - Windows-on-ARM-Experiments/mingw-woarm64-build: Workflows and
> build scripts for Windows on Arm64 GNU cross-compiler for
> `aarch64-w64-mingw32`
> target.<https://github.com/Windows-on-ARM-Experiments/mingw-woarm64-bu
> ild?tab=readme-ov-file>
> with below configuration :
>
> ./configure --arch=arm64 --target-os=mingw32
> --cross-prefix=aarch64-w64-mingw32- --prefix=/ffbuild/prefix
> --pkg-config-flags=--static --pkg-config=pkg-config --enable-gpl
> --enable-version3 --disable-debug --disable-w32threads
> --enable-pthreads --disable-libpulse --disable-libxcb
Just as a general headsup/warning - that toolchain is heavily in progress and not very mature yet (plus that it has known ABI discrepancies compared to established aarch64 mingw environments). If you're evaluating the toolchain or planning on working on it, that's of course fine.
If you want an actually mature mingw toolchain for aarch64, grab one from https://github.com/mstorsjo/llvm-mingw/releases.
(This is of course unrelated to what it takes to enable building
windows/arm64 binaries in that third party repo.)
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list