Build WebP Server Go #
Install latest version of golang, enable go module, install libaom
and clone the repo, then…
make
(
libaom
is for AVIF support, you can install it byapt install libaom-dev
on Ubuntu,yum install libaom-devel
on CentOS)If you are using Intel Mac, you can install it by
brew install aom
If you are using Apple Silicon, you need to
brew install aom && export CPATH=/opt/homebrew/opt/aom/include/;LIBRARY_PATH=/opt/homebrew/opt/aom/lib/
, more references can be found at 在M1 Mac下开发WebP Server Go | 土豆不好吃.
Due to the limitations of webp module, you can’t cross compile this tool. But the binary will work instantly on your platform and arch