1. 当然就是解压啥的,然后cdsqlite-3.3.5;
2. ./configure --host=arm-hisiv200-linux,出错:
configure: error: unable to find a compiler for building build tools
二话不说,直接baidu了,居然说要看configure.ac 或者configure,拿来主义,解决:
./configure --host=arm-hisiv200-linux config_TARGET_CC=arm-hisiv200-linux-gcc config_BUILD_CC=gcc
config_TARGET_CC:指定目标编译器;
config_BUILD_CC:上位机的编译器;
3. 还是会出现checking for /usr/include/readline.h... configure: error: cannot check for file existence when cross compiling 错误;
还是百度:大牛说什么欺骗configure 什么的;
到 /usr 下find readline.h ,的确没有这个头文件,于是:
yum install readline*
4. 再次执行./configure --host=arm-hisiv200-linux config_TARGET_CC=arm-hisiv200-linux-gcc config_BUILD_CC=gcc
很不幸,错误仍在,但我看能生成Makefile,于是先不欺骗什么的了,直接执行:
make
原文链接:https://www.f2er.com/sqlite/198556.html