Thanks Joe!! It works now!!
Daniel.
On Sun, 2007-08-12 at 09:56 -0700, Joe Wilson wrote:
> You probably have another shared sqlite library in your path somewhere.
>
> Explicitly link with /absolute/directory/to/your/libsqlite.a rather than
> -lsqlite.
>
> --- Daniel Berenguer <[EMAIL PROTECTED]> wrote:
> > I've downloaded the sqlite-2.8.17 source code in order to create my own
> > static library for my embedded platform (OpenSlug)
> >
> > source code package:
> > sqlite-source-2_8_17.zip
> >
> > Ok, I get to cross-compile the static library (libsqlite.a) using this
> > simple makefile:
> >
> >
> > include ../Makefile_opnode.in
> >
> > all: libsqlite.a copy_files
> >
> > libsqlite.a:: attach.o auth.o btree.o btree_rb.o build.o copy.o date.o
> > delete.o encode.o expr.o func.o hash.o insert.o \
> > main.o opcodes.o os.o pager.o parse.o pragma.o printf.o
> > random.o select.o table.o tokenize.o trigger.o update.o \
> > util.o vacuum.o vdbe.o vdbeaux.o where.o
> > $(AR) crv $@ $^
> > copy_files:
> > cp libsqlite.a $(OPENSLUG_LIB_PATH)/
> > cp sqlite.h $(OPENSLUG_INCL_PATH)/opnode/
> >
> > .PHONY: clean
> >
> > clean:
> > rm -f *.o *~
> >
> >
> > The library seems to be correctly built and my app gets linked to the
> > static library without problems.
> >
> > The problem comes when I run the application. Then I get this error:
> >
> > "error while loading shared libraries: libsqlite.so.0: cannot open
> > shared object file: No such file or directory"
> >
> > But I don't want to dinamically load the library... Any idea out there?
>
>
>
>
>
> Shape Yahoo! in your own image. Join our Network Research Panel today!
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
>
> -
> To unsubscribe, send email to [EMAIL PROTECTED]
> -
>
-
To unsubscribe, send email to [EMAIL PROTECTED]
-