路径说明
~ -> /home/tian
sqlite-3.6.23.1 -> /home/tian/sqlite-3.6.23.1
sqlite-dis-> /home/tian/sqlite-dis
交叉编译链:arm-none-linux-gnueabi
[tian@fedora sqlite-3.6.23.1]$ mkdir bld
[tian@fedora sqlite-3.6.23.1]$ cd bld/
[tian@fedora bld]$which arm-none-linux-gnueabi-gcc
[tian@fedora bld]$ ../configure --host=arm-none-linux-gnueabi --prefix=/home/tian/sqlite-dis --disable-tcl
[tian@fedora bld]$make && make install
[tian@fedora bld]$ cd ~
[tian@fedora ~]$ cd sqlite-dis/
[tian@fedora sqlite-dis]$ ls
bin include lib
[tian@fedora bin]$arm-none-linux-gnueabi-readelf -d sqlite3
[tian@fedora bin]$arm-none-linux-gnueabi-strip libsqlite3.so.0.8.6
[tian@fedora lib]$cp libsqlite3.so.0 ~/nfs/lib
[tian@fedora lib]$cp /home/tian/arm-2007q1/arm-none-linux-gnueabi/lib/libgcc_s.so* ~/nfs/lib
arm-none-linux-gnueabi-gcc testsql.c -L/home/tian/sqlite-dis/lib -l sqlite3 -o testsql
arm-none-linux-gnueabi-gcc testsql.c -L./lib -I./include -lsqlite3 -o testsql
阅读(861) | 评论(0) | 转发(0) |