Vargol / ffmpeg-apple-arm64-build

Build script for ffmpeg targeting the latest open source video codecs running on macOS using Apple's M1 processor.
235 stars 42 forks source link

fatal error: 'arm_neon_sve_bridge.h' file not found #26

Closed Muvels closed 6 months ago

Muvels commented 7 months ago

The Log says the following:

In file included from vpx_dsp/arm/highbd_vpx_convolve8_sve2.c:20:
./vpx_dsp/arm/vpx_neon_sve_bridge.h:16:10: fatal error: 'arm_neon_sve_bridge.h' file not found
#include <arm_neon_sve_bridge.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
    [CC] vpx_dsp/arm/vpx_convolve8_neon_dotprod.c.o
1 error generated.
Vargol commented 6 months ago

Apple ARM doesn't support SVE2 so it should be enabled. Looks like the configure is 'disabling' it but the make is still trying to compile it anyway.

I seems to have got it working, by changing the configure command in

ffmpeg-apple-arm64-build/build/build-vpx.sh

to add

--disable-sve2 \

works so the whole thing is

./configure --prefix="$3" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --enable-vp8 \
                    --enable-vp9 \
                    --enable-internal-stats \
                    --enable-pic \
                    --enable-postproc \
                    --enable-multithread \
                    --enable-experimental \
                    --disable-sve2 \
                    --disable-install-docs \
                    --disable-debug-libs
Muvels commented 6 months ago

Yeah it works now, thanks