*** 117,127 **** 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. --- 117,143 ---- The sqlite.lib can then be used to link your programs against the SQLite DLL. + ===== + + *Crosscompiling on linux x86 for linux arm* + + 1. Make sure you have installed your favorite toolchain and that arm-linux-gcc's location is part of your PATH + + 2. Find out where the toolchain keeps it's own includes like math.h, you'll need them in step 4; if you get this wrong, the make step will fail on some missing header (likely to be math.h) + 3. Switch to the unpacked sqlite sources' location + + 4. Configure sqlite by executing: + _:CC=arm-linux-gcc CXX=arm-linux-g++ CFLAGS=-I<TOOLCHAIN/INCLUDE> BUILD_CC=gcc \ + _::./configure --host=i686-linux --target=arm-linux --disable-shared --disable-tcl --prefix=$MY_INSTALL + + 5. After configure has finished, the generated Makefile will contain a wrong reference to the compiler used to build the tools; you can correct this with something like sed 's/^BCC.*/BCC = gcc/', in other words BCC should be defined as the regular compiler on your host machine, not as the crosscompiler + + 6. You can now run make ===== ! *Crosscompile linux x86 -> linux arm*, older version 1. Install skiff toolchain or similar, make shure you have arm-linux-gcc in your PATH. *************** *** 185,190 **** --- 201,207 ---- Source (somewhat altered): http://www.kecher.de/howtos/SQLite-JDBC-Howto.html ===== + *Win32 recompile with mingw32/msys* For a makefile which works with 3.0.7, see ticket #931. No need for MSYS.