*** 129,131 **** --- 129,196 ---- This makes the files sqlite.lib and sqlite.exp files. The sqlite.lib can then be used to link your programs against the SQLite DLL. + + + + ===== + + + *Crosscompile linux x86 -> linux arm* + + 1. Install skiff toolchain or similar, make shure you have arm-linux-gcc in your PATH. + + 2. Unpack sqlite sources and create a directory _sqlite-arm_ in the same dir. + + 3. Edit _configure_ script in the sqlite dir and comment following lines out as shown - have fun finding them ;-) + + #if test "$cross_compiling" = "yes"; then + # { { echo "$as_me:12710: error: unable to find a compiler for building build tools" >&5 + #echo "$as_me: error: unable to find a compiler for building build tools" >&2;} + # { (exit 1); exit 1; }; } + #fi + + . . . + + #else + # test "$cross_compiling" = yes && + # { { echo "$as_me:13264: error: cannot check for file existence when cross compiling" >&5 + #echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + # { (exit 1); exit 1; }; } + + . . . + + #else + # test "$cross_compiling" = yes && + # { { echo "$as_me:13464: error: cannot check for file existence when cross compiling" >&5 + #echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + # { (exit 1); exit 1; }; } + + . . . + + #else + # test "$cross_compiling" = yes && + # { { echo "$as_me:13490: error: cannot check for file existence when cross compiling" >&5 + #echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + # { (exit 1); exit 1; }; } + + + 4. Save the configure script, change into the build directory you created and call the edited configure script from the sqlite directory by using the following option: + + ../sqlite/configure --host=arm-linux + + 5. + After that configure should have created a Makefile and a libtool script in your build directory. + Open the Makefile using your favorite text editor and edit the following line: + + + BCC = arm-linux-gcc -g -O2 + + to see: + + BCC = gcc -g -O2 + + + 6. run _make_ + Now you should find a “.libs” directory in your build directory containing sqlite shared object files, like libsqlite.so. + + Source (somwhat altered): http://www.kecher.de/howtos/SQLite-JDBC-Howto.html