移植 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://www.jb51.cc/article/p-zlrntfvz-cx.html
http://www.jb51.cc/article/p-knbleffq-dt.html

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...