[Libav-user] How to build for Apple M1 with neon enabled?

drwho drwho at infidigm.net
Fri Nov 18 18:24:25 EET 2022


I also tried a raspberry pi build with --arch=armel and neon was enabled....

configure --enable-cross-compile 
--cross-prefix=/tk/raspberrypi/cross-pi-gcc-10.3.0-2/bin/arm-linux-gnueabihf- 
--arch=armel --target-os=linux --disable-everything --enable-pic 
--enable-neon --enable-optimizations --enable-fft

ARCH                      arm (generic)
big-endian                no
runtime cpu detection     yes
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
VFP enabled               yes
NEON enabled              yes

but when I switch to --arch=arm64 neon gets disabled.

configure --enable-cross-compile 
--cross-prefix=/tk/raspberrypi/cross-pi-gcc-10.3.0-2/bin/arm-linux-gnueabihf- 
--arch=arm64 --target-os=linux --disable-everything --enable-pic 
--enable-neon --enable-optimizations --enable-fft


ARCH                      aarch64 (generic)
big-endian                no
runtime cpu detection     yes
NEON enabled              no
VFP enabled               no

Jon

On 2022-11-17 22:36, drwho wrote:
>
> Hello, I am trying to build ffmpeg for the Apple M1 with neon 
> optimizations turned on.  This configure fails to enable neon or VFP.  
> MacOS / sdk 12.3.  I've tried the release 5.1 branch and master.
>
> ./configure --arch=arm64 --disable-everything --enable-pic 
> --enable-neon --enable-optimizations --cpu=cortex-a8 --cc=/usr/bin/clang
>
>
> C compiler                /usr/bin/clang
> C library
> host C compiler           gcc
> host C library
> ARCH                      aarch64 (cortex-a8)
> big-endian                no
> runtime cpu detection     yes
> NEON enabled              no
> VFP enabled               no
> debug symbols             yes
> strip symbols             yes
> optimize for size         no
> optimizations             yes
> static                    yes
> shared                    no
> postprocessing support    no
> network support           yes
> threading support         pthreads
> safe bitstream reader     yes
> texi2html enabled         no
> perl enabled              yes
> pod2man enabled           yes
> makeinfo enabled          yes
> makeinfo supports HTML    no
> xmllint enabled           yes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20221118/c972350e/attachment.htm>


More information about the Libav-user mailing list