webpmux编译更新
1)github repos:
https://github.com/webmproject/libwebp.git
2)编译依赖工具:
gcc make autoconf automake libtool
sudo apt-get install gcc make autoconf automake libtool
Mac下面,参考http://www.cnblogs.com/hurricane2011/articles/2503582.html
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure --prefix=/usr/local# ironic, isn't it?
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure --prefix=/usr/local
make
sudo make install
3)依赖的库:参考
# To install libraries on Mac OS X:
# 1. Install MacPorts (http://www.macports.org/install.php)
# 2. Run "sudo port install jpeg"
# 3. Run "sudo port install libpng"
# 4. Run "sudo port install tiff"
# 5. Run "sudo port install giflib"
# To install libraries on Linux:
# 1. Run "sudo apt-get install libjpeg62-dev"
# 2. Run "sudo apt-get install libpng12-dev"
# 3. Run "sudo apt-get install libtiff4-dev"
# 4. Run "sudo apt-get install libgif-dev"
4)编译:
./autogen.sh生成配置文件configure
./configure prefix=/usr/local --enable-libwebpmux --enable-libwebpdemux生成Makefile
make/make install编译安装webpmux
5)验证webpmux是否正常解析图像
webpmux –get frame1Input.webp –o output.png