Matias Torres <[EMAIL PROTECTED]> wrote:
> Hello everyone i need help on compiling sqlite3 from source in linux 
> with mingw. 

That is exactly how I build the windows libraries and executables
that appear on the SQLite website.  What you do is this:

  *  Ignore the configure script.
  *  Make a copy of the Makefile.linux-gcc as just "Makefile".
  *  Edit "Makefile" so that it specified i386-mingw32msvc-gcc
     (or whatever your compiler is called) as the C compiler.
     There are comments in the Makefile that make it clear how
     to do this.
  *  Make similar changes for the linker, archiver, etc.
  *  type "make".

If you really feel like you have to use the configure script,
the just configure for a linux build.  Then type:

  make target_source

The "target_source" target will do all of the preprocessing steps
and put a bunch of source files in a subdirectory named "tsrc".
Change into that subdirectory.  Remove one or two source files that
you do not need (like shell.c for the command-line client or 
tclsqlite.c for the TCL interface) and type:

  for i in *.c; do i386-mingw-gcc $i; done

Maybe add some other options to gcc if you need them.

If you want to build a DLL, there is a script that does that
in the source tree.  See mkdll.sh.

--
D. Richard Hipp   <[EMAIL PROTECTED]>


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to