Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2095805
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2011-06-29 15:12:43

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
阅读(2642) | 评论(0) | 转发(0) |
0

上一篇:mjpg-streamer

下一篇:QT/WebKit::OpenCV

给主人留下些什么吧!~~