libsdl-org/SDL_image

Xcode project fails to build libavif

Opened this issue · 0 comments

madebr commented

When copying build.xcconfig from here into the Xcode folder, building libavif fails.
link

     cd /Users/runner/work/SDL_image/SDL_image/tardir/SDL2_image-2.9.0/Xcode/avif
    /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/runner/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.5-23F73-370e46e0f02e54db71bc6d75e3f2cef2.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/runner/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wquoted-include-in-framework-header -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability @/Users/runner/Library/Developer/Xcode/DerivedData/SDL_image-aqtkfoqgljspzfhhcgybdjpgmnud/Build/Intermediates.noindex/avif.build/Release/avif.build/Objects-normal/x86_64/7187679823f38a2a940e0043cdf9d637-common-args.resp -MMD -MT dependencies -MF /Users/runner/Library/Developer/Xcode/DerivedData/SDL_image-aqtkfoqgljspzfhhcgybdjpgmnud/Build/Intermediates.noindex/avif.build/Release/avif.build/Objects-normal/x86_64/scale.d --serialize-diagnostics /Users/runner/Library/Developer/Xcode/DerivedData/SDL_image-aqtkfoqgljspzfhhcgybdjpgmnud/Build/Intermediates.noindex/avif.build/Release/avif.build/Objects-normal/x86_64/scale.dia -c /Users/runner/work/SDL_image/SDL_image/tardir/SDL2_image-2.9.0/external/libavif/src/scale.c -o /Users/runner/Library/Developer/Xcode/DerivedData/SDL_image-aqtkfoqgljspzfhhcgybdjpgmnud/Build/Intermediates.noindex/avif.build/Release/avif.build/Objects-normal/x86_64/scale.o
/Users/runner/work/SDL_image/SDL_image/tardir/SDL2_image-2.9.0/external/libavif/src/scale.c:17:10: fatal error: 'libyuv.h' file not found
#include <libyuv.h>
         ^~~~~~~~~~
1 error generated.

This is with SDL2_image.
SDL3_image might have the same issue.