移植 libqrencode(包含zlib、libpng)

1 . 系统环境:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

2 . 移植 zlib
由于libpng依赖于zlib,所以先得移植zlib
下载地址:http://www.zlib.net/

2.1 解压编译

 tar xzvf zlib-1.2.8.tar.gz  
 cd zlib-1.2.8  
CC=arm-linux-gnueabi-gcc ./configure --prefix=/home/xiao/test/123/zlib  
make  
make install  

3 . 移植 libpng
下载地址:http://www.libpng.org/pub/png/libpng.html

3.1 解压编译

tar xJvf libpng-1.6.26.tar.xz  
cd libpng-1.6.26  
export CPPFLAGS="-I/home/xiao/test/123/zlib/include"
export LDFLAGS="-L/home/xiao/test/123/zlib/lib"
./configure --host=arm-linux-gnueabi --prefix=/home/xiao/test/123/libpng  
make
make install

4 . 移植 libqrencode
下载地址:http://fukuchi.org/works/qrencode/

4.1 解压编译

tar xzvf qrencode-3.4.4.tar.gz
cd qrencode-3.4.4
export png_CFLAGS="-I/home/xiao/test/123/libpng/include/libpng16 -I/home/xiao/test/123/libpng/include -I/home/xiao/test/123/zlib/include"
export png_LIBS="-L/home/xiao/test/123/libpng/lib -lpng16 -I/home/xiao/test/123/zlib -lz"
./configure --host=arm-linux-gnueabi --prefix=/home/xiao/test/123/qrencode
make
make install

参考网址:
http://blog.csdn.net/xiexingshishu/article/details/46901379
http://blog.csdn.net/gaobobo138968/article/details/38149421

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值