zlib mips移植
cd /root
tar xvf zlib-1.2.3.tar.bz2
cd zlib-1.2.3
mkdir target
./configure --shared --prefix=/root/zlib-1.2.3/target
vi Makefile
将CC=gcc改CC=mipsel-linux-gcc
将LDSHARED=gcc -shared -Wl,-soname,libz.so.1改为LDSHARED=mipsel-linux-gcc -shared -Wl,-soname,libz.so
make
make install
libpng mips移植
cd /root
tar xvf libpng-1.5.2.tar.gz
cd libpng-1.5.2
mkdir target
./configure --host=mipsel-linux CFLAGS=-I/root/zlib-1.2.3/target/include LDFLAGS=-L/root/zlib-1.2.3/target/lib --prefix=/root/libpng-1.5.2/target
make check
make install
Build QT with -system-libpng
./configure -system-libpng -system-zlib -I/root/libpng-1.5.2/target/include -I/root/zlib-1.2.3/target/include -L/root/libpng-1.5.2/target/lib -L/root/zlib-1.2.3/target/lib
阅读(2709) | 评论(0) | 转发(0) |