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