Closed 1337-sys closed 2 years ago
go get -u -v -x github.com/bakape/thumbnailer
OUTPUT:
TERM='dumb' clang -I . -fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -fno-common -I/usr/local/include/GraphicsMagick -I/usr/local/Cellar/ffmpeg/4.4.1/include -I $WORK/b001/ -g -O2 -std=c11 -std=c11 -D_POSIX_C_SOURCE -std=c11 -o $WORK/b001/_x010.o -c compress_png.c # github.com/bakape/thumbnailer compress_png.c:14:5: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration] compress_png.c:14:5: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
I installed GraphicsMagick with brew. When I got the same error, I compiled it manually, but the result didn't change
Machine: Darwin Kernel Version 20.6.0 - MacBook Pro (Retina, 15-inch, Mid 2014) - MacOS Big Sur
Darwin Kernel Version 20.6.0 - MacBook Pro (Retina, 15-inch, Mid 2014) - MacOS Big Sur
You should be using go get -u github.com/bakape/thumbnailer/v2. This needs to be documented.
go get -u github.com/bakape/thumbnailer/v2
go get -u -v -x github.com/bakape/thumbnailer
OUTPUT:
I installed GraphicsMagick with brew. When I got the same error, I compiled it manually, but the result didn't change
Machine:
Darwin Kernel Version 20.6.0 - MacBook Pro (Retina, 15-inch, Mid 2014) - MacOS Big Sur