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

Xcode project fails to build libavif #471

Open
madebr opened this issue Oct 4, 2024 · 0 comments
Open

Xcode project fails to build libavif #471

madebr opened this issue Oct 4, 2024 · 0 comments

Comments

@madebr
Copy link
Contributor

madebr commented Oct 4, 2024

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.

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

No branches or pull requests

1 participant