BtbN / FFmpeg-Builds

MIT License
7.38k stars 1.02k forks source link

linuxarm32 build help #389

Closed harishreddy50552 closed 1 month ago

harishreddy50552 commented 2 months ago

Hi all, I'm trying to get a linux arm32 build working and i need a bit of help on that front. I'm following the linuxarm64 as reference point and working on it and i see that it has a crosstool-ng config file.

https://github.com/BtbN/FFmpeg-Builds/blob/master/images/base-linuxarm64/ct-ng-config

  1. Wanted to understand what all flags/toolchain was set for linuxarm64. I tried to use the same version of crosstool-ng and was not getting the same config as mentioned in the ct-ng-config file present in the repo.
  2. I tried setting the basic config for arm32 and it is unable to find the compiler and hence would appreciate it a lot if someone can share me the config/script file which sets it for linuxarm64.
BtbN commented 2 months ago

You will have to fire up ct-ng menuconfig, and adjust the config for your desired 32 bit arm flavour. Be warned though, that a multitude of dependencies and ffmpeg itself have limited or no arm32 support.

I don't know what you mean by "getting the same config". I made those configs myself for the desired minimum targets.

In the most simple case, you can just switch to non-aarch64 arm in ct-ng, and it should figure the rest out. But you will then run into a multitude of build failures in all the packages, which you will need to deal with individually.

harishreddy50552 commented 2 months ago

Thank you.

So, this file ct-ng-config (for linuxarm64) was edited manually post getting config from the menu by adjusting target architecture/operating system and other parameters via UI?

sorry, i was under the impression that it is autogenerated fully :/

BtbN commented 2 months ago

No, you edit it with menuconfig.

harishreddy50552 commented 2 months ago

right, can you please share the options/flags which was set for linuxarm64 in the menuconfig.

BtbN commented 2 months ago

The options are stored in the resulting config file: https://github.com/BtbN/FFmpeg-Builds/blob/master/images/base-linuxarm64/ct-ng-config

harishreddy50552 commented 1 month ago

Thanks!