在arm-linux平台上移植sqlite,Sqlite3.8.1移植到TQ2416(在ARM-Linux平台上移植SQLite).doc...

Sqlite3.8.1移植到TQ2416(在ARM-Linux平台上移植SQLite).doc

Sqlite3.8.1移植到TQ2416(在ARM-Linux平台上移植SQLite)

ARM9开发板TQ2416如何在ARM-Linux平台上移植SQLite,Port SQLite to ARM-Linux Platform  一,交叉编译器:

arm-linux-gcc-4.4.1

二、移植步骤

下载源码

/2013/sqlite-autoconf-3080100.tar.gz

1.解压压缩包并改名进入解压后的目录,如下:

cd sqlite3.8.1

2.创建一个目录_install并进入该目录,用于在这个目录中进行交叉编译,如下:

mkdir _install

cd _install

3.在_install目录中运行sqlite3.8.1中的configure脚本生成Makefile文件,如下:

../configure CC=arm-linux-gcc –host=arm-linux –prefix=/home/gl/e/sqlite3.8.1/_install

选项host指定的是用arm交叉编译器(非交叉环境不用指定)进行编译 选项prefix后面的路径是到时候编译安装后目标存放的目录,

[root@austgl _install]# ../configure CC=arm-linux-gcc –host=arm-linux –prefix=/home/gl/e/sqlite3.8.1/_install/

checking for a BSD-compatible install… /usr/bin/install -c

checking whether build environment is sane… yes

checking for arm-linux-strip… arm-linux-strip

checking for a thread-safe mkdir -p… /usr/bin/mkdir -p

checking for gawk… gawk

checking whether make sets $(MAKE)… yes

checking for style of include used by make… GNU

checking for arm-linux-gcc… arm-linux-gcc

checking whether the C compiler works… yes

checking for C compiler default output file name… a.out

checking for suffix of executables…

checking whether we are cross compiling… yes

checking for suffix of object files… o

checking whether we are using the GNU C compiler… yes

checking whether arm-linux-gcc accepts -g… yes

checking for arm-linux-gcc option to accept ISO C89… none needed

checking dependency style of arm-linux-gcc… gcc3

checking for special C compiler options needed for large files… no

checking for _FILE_OFFSET_BITS value needed for large files… 64

checking for arm-linux-gcc… (cached) arm-linux-gcc

checking whether we are using the GNU C compiler… (cached) yes

checking whether arm-linux-gcc accepts -g… (cached) yes

checking for arm-linux-gcc option to accept ISO C89… (cached) none needed

checking dependency style of arm-linux-gcc… (cached) gcc3

checking for arm-linux-ranlib… arm-linux-ranlib

checking build system

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值