m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.53k stars 263 forks source link

Any way to build for ARM64 too? #2725

Open SebastianGode opened 3 months ago

SebastianGode commented 3 months ago

With the rise of all those new fancy devices with Snapdragon X Elite and likely some Ampere SoCs on their way I'd like to also compile all the media libraries natively for my Surface. As far as I understand it, currently MingW64 is used which is only compiling for x64, right? Is there any way to change that easily or add support for 64Bit ARM?

Andarwinux commented 3 months ago

native build with an arm64 device shouldn't be a big deal, it's just switch from clang64 to clangarm64.

SebastianGode commented 3 months ago

Where do I need to change this?

Also running the msys in x64 through the compatibility-layer works just fine (I think), but native would also be preferred :)

Andarwinux commented 3 months ago

Replace all clang64 with clangarm64 in the mabs script, and then choose clang instead of gcc when running media-autobuild_suite.bat. There may be a lot of packages that don't work, which will require adjust build options.

Biswa96 commented 3 months ago

If you are not faimilar with compiling stuff for arm64 you can use precompiled arm64 packages in msys2. The installation guide can be found in https://www.msys2.org/. Use the clangarm64 environment there.