OK Richard,
I've follow your steps and all is fine.
I've created libsqlite3.a, but how i create .so files?
Another question....when i compile a program using cross compile and the
libsqlite3.a lib, the executable file (in my case .cgi file) is too big!! Why?
If i strip it the size decrease a bit.
My compile command is :
mipsel-linux-gcc -o xxx.cgi xxx.c -lsqlite3
Mystrip command is:
mipsel-linux-strip xxx.cgi
Thank a lot.
Regards
-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: martedì 2 gennaio 2007 17.25
A: [email protected]
Oggetto: Re: [sqlite] Cross compile error!
"Francesco Andrisani" <[EMAIL PROTECTED]> wrote:
> Hi comunity,
> i've a problem when i try to cross compile sqlite-3.3.8 for mipsel
> architecture.
Suggested approach.
1. Configure for the host.
2. Type "make target_source". This puts a bugs of C source files
in a subdirectory named "tsrc".
3. Remove tclsqlite.c and possibly also shell.c from tsrc.
4. Compile all the other C files in tsrc using your cross-compiler.
for i in *.c; do xcc -c $i.c; done
ar r libsqlite3.a *.o
The key step is to do "make target_source" on your host machine.
There is a lot of generated code in SQLite. That step will do all the
automatic code generation and leave you with a batch of ordinary C source code
files, which are much easier to deal with using a cross-compiler.
--
D. Richard Hipp <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------