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
build fails after Nov 13 2021 #2777
Comments
Same problem
Manual build and install libsdl by this method which then produces version 2.0.17 works for me. |
Thank you for the report 👍
We need to ifdef the version: Lines 37 to 54 in 65b023a
or even just remove the lines containing Lines 174 to 175 in 65b023a
Will do it soon. |
Could you please uninstall your SDL 2.0.17, confirm that build fails, then apply this patch: diff --git a/app/src/icon.c b/app/src/icon.c
index a3efbb01..e50c5bb2 100644
--- a/app/src/icon.c
+++ b/app/src/icon.c
@@ -172,7 +172,9 @@ to_sdl_pixel_format(enum AVPixelFormat fmt) {
case AV_PIX_FMT_BGR565BE: return SDL_PIXELFORMAT_BGR565;
case AV_PIX_FMT_BGR555BE: return SDL_PIXELFORMAT_BGR555;
case AV_PIX_FMT_RGB444BE: return SDL_PIXELFORMAT_RGB444;
+#if SDL_VERSION_ATLEAST(2, 0, 12)
case AV_PIX_FMT_BGR444BE: return SDL_PIXELFORMAT_BGR444;
+#endif
case AV_PIX_FMT_PAL8: return SDL_PIXELFORMAT_INDEX8;
default: return SDL_PIXELFORMAT_UNKNOWN;
} And confirm that it works? Thank you |
I can confirm this patch fixes the problem about Maybe simply |
SDL_PixelFormatEnum has been introduced in SDL 2.0.10: <libsdl-org/SDL@cc6a8ac> SDL_PIXELFORMAT_BGR444 has been introduced in SDL 2.0.12: <libsdl-org/SDL@a1c1185> Fixes #2777 <#2777>
@npes87184 👍 I opened PR #2781. |
The text was updated successfully, but these errors were encountered: