Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent FFMPEG build warning from causing compilation error #1314

Merged

Conversation

bluebandit21
Copy link
Member

The specific error was

/Users/runner/work/etterna/etterna/main/build/ffmpeg_dl/ffmpeg-2.1.3-src/libavcodec/flvenc.c:96:23: error: incompatible function pointer types initializing 'int (*)(AVCodecContext *, AVPacket *, const AVFrame *, int *)' (aka 'int (*)(struct AVCodecContext *, struct AVPacket *, const struct AVFrame *, int *)') with an expression of type 'int (AVCodecContext *, AVPacket *, AVFrame *, int *)' (aka 'int (struct AVCodecContext *, struct AVPacket *, struct AVFrame *, int *)') [-Wincompatible-function-pointer-types]
    .encode2        = ff_MPV_encode_picture,
                      ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [libavcodec/flvenc.o] Error 1

when trying to build for aarch64 on the Sonoma Github M1 runner

I believe this ffmpeg warning was likely fixed a long, long time
ago; we're running an ancient version right now.

The specific error was
```
/Users/runner/work/etterna/etterna/main/build/ffmpeg_dl/ffmpeg-2.1.3-src/libavcodec/flvenc.c:96:23: error: incompatible function pointer types initializing 'int (*)(AVCodecContext *, AVPacket *, const AVFrame *, int *)' (aka 'int (*)(struct AVCodecContext *, struct AVPacket *, const struct AVFrame *, int *)') with an expression of type 'int (AVCodecContext *, AVPacket *, AVFrame *, int *)' (aka 'int (struct AVCodecContext *, struct AVPacket *, struct AVFrame *, int *)') [-Wincompatible-function-pointer-types]
    .encode2        = ff_MPV_encode_picture,
                      ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [libavcodec/flvenc.o] Error 1
```

when trying to build for aarch64 on the Sonoma Github M1 runner

I believe this ffmpeg warning was likely fixed a long, long time
 ago; we're running an ancient version right now.
@poco0317 poco0317 merged commit 6d2d413 into etternagame:develop Jul 30, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants