1.zlib
下载zlib
tar xf zlib-1.2.11.tar.gz && cd zlib-1.2.11
CC=arm-linux-gnueabi-gcc ./configure --prefix=$PWD/_install
make && make install
2. libpng
下载libpng
tar xf libpng-1.6.35.tar.gz && cd libpng-1.6.35
export CPPFLAGS="zlib-1.2.11/_install/include"
export LDFLAGS="zlib-1.2.11/_install/lib"
./configure CC=arm-linux-gnueabi-gcc --prefix=$PWD/_install --host=arm-linux
make && make install
网友评论