lighttpd及pcre的交叉编译(不成熟)
A.环境说明
- 编译环境
ubuntu12.04
i686-pc-linux - 运行环境
openwrt - 交叉编译工具
mips-openwrt-linux
B.交叉编译思路
- 在 lighttpd与相关依赖库的安装 基础下进行本次交叉编译
- 通过config脚本配置编译环境中的编译工具为交叉编译工具
- 安装目录设置为最终运行目录,使得移植之后能够正确匹配
- 将需要的环境配置在运行设备上
C.编译pcre
1.配置脚本(设置编译工具等)
vim configure-opw.sh
#! /bin/sh
CXX=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-g++ CC=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc AR=/home/jeff/extfs/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.

本文档介绍了在Ubuntu 12.04环境下,如何使用mips-openwrt-linux交叉编译工具链,对lighttpd和pcre进行交叉编译,并详细阐述了编译过程中的配置步骤、库文件导入以及环境变量设置,旨在在OpenWrt系统上部署lighttpd服务器。
最低0.47元/天 解锁文章
813

被折叠的 条评论
为什么被折叠?



