Closed danicomar closed 3 weeks ago
Thank you for opening this issue!
🔔 @SKaplanOfficial @arronhunt @nakaakist @JUSTIVE @patomos you might want to have a look.
Hi, thanks for the report. It seems that the homebrew formula is failing to build. To confirm this is the same issue, can you check to see if the log file ~/Library/Logs/Homebrew/avifenc/05.ninja
both exists and contains the following error:
FAILED: ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -DPNG_ARM_NEON_CHECK_SUPPORTED -I/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/build/ext/zlib -I/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/build/ext/libpng -I/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/ext/libpng -I/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/ext/zlib -std=gnu99 -arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -MD -MT ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o -MF ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o.d -o ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o -c /tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/ext/libpng/arm/arm_init.c
/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/ext/libpng/arm/arm_init.c:49:4: error: "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
49 | # error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks"
| ^
/tmp/avifenc-20240828-81554-vzi52b/libavif-0.9.3/ext/libpng/arm/arm_init.c:86:27: error: call to undeclared function 'png_have_neon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
86 | no_neon = !png_have_neon(pp);
| ^
2 errors generated.
Assuming this is the same error you're getting, I'll need to explore options to avoid it...
Hi. The file is there, but the error is not. Any other possibilities/actions? Thanks in any case.
There should be a 05.ninja
file without the .cc extension
Oh, my bad. You’re right. Yes, the file is there and I'm getting the same message. How shall I proceed then?
FAILED: ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o /opt/homebrew/Library/Homebrew/shims/mac/super/clang -DPNG_ARM_NEON_CHECK_SUPPORTED -I/tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/build/ext/zlib -I/tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/build/ext/libpng -I/tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/ext/libpng -I/tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/ext/zlib -std=gnu99 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -MD -MT ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o -MF ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o.d -o ext/libpng/CMakeFiles/png_static.dir/arm/arm_init.c.o -c /tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/ext/libpng/arm/arm_init.c /tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/ext/libpng/arm/arm_init.c:49:4: error: "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks" 49 | # error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks" | ^ /tmp/avifenc-20240828-38837-ut2h60/libavif-0.9.3/ext/libpng/arm/arm_init.c:86:27: error: call to undeclared function 'png_have_neon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 86 | no_neon = !png_have_neon(pp); | ^ 2 errors generated.
Hi, try manually running brew install libavif
. It seems that formula actually includes the avifenc binaries, which I don't think it did before.
Will push a general fix for the extension soon when I get a chance.
Understood. Thank you so much!
Extension
https://www.raycast.com/HelloImSteven/sips
Raycast Version
1.81.2
macOS Version
15.0
Description
Hi. I use the Image Modification extension a lot to convert images but recently experienced problems with the AVIF format. When trying to convert .avif to .jpg it prompts me to install the AVIF encoder (fair enough) but then it just shows an error. Any tips on how to get the encoder installation to work and be able to perform the conversion as per usual? Thanks!
Steps To Reproduce
Current Behaviour
Unable to install the encoder and convert .avif images
Expected Behaviour
Able to install AVIF encoder and convert images