Let me do this again without this confanged EXTERNAL thing our email server 
puts on everything...
 
You're linking your two .o into the shared library instead of sqlite3.o


1.     
2.     
        OBJS=src/luasql.o src/ls_$T.o
3.     
4.     
        
5.     
        src/$(LIBNAME): $(OBJS)
6.     
                $(CC) $(CFLAGS) $(LIB_OPTION) $(DRIVER_LIBS) -o $@ $(OBJS)
7.     
        

Change to

1.     
2.     
        src/$(LIBNAME): $(OBJS)
3.     
4.     
                $(CC) $(CFLAGS) $(LIB_OPTION) $(DRIVER_LIBS) -o $@ sqlite3.o


 
Michael D. Black
Senior Scientist
Advanced Analytics Directorate
Northrop Grumman Information Systems
 

________________________________

From: sqlite-users-boun...@sqlite.org on behalf of Gilles Ganault
Sent: Thu 12/2/2010 7:24 AM
To: sqlite-users@sqlite.org
Subject: EXTERNAL:Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?



On Wed, 1 Dec 2010 11:10:54 -0600, "Black, Michael (IS)"
<michael.bla...@ngc.com> wrote:

>I don't think you need to do the LDFLAGS thing...
>
>gcc -O2 -fpic -shared -Wl,-soname,sqlite3.so -o sqlite3.so sqlite3.c
>
>Works fine for me.  Though I'm not using the Blackfin compiler...

Thanks Michael for the tip. The compiling seems to work... but the
final sqlite3.so is not usable: "./lua: can't resolve symbol
'_sqlite3_open'"

Here's what I did:

http://pastebin.com/NeW7vW62

The LuaSQL for Sqlite3 with SQLite statically compiled is only 38.172
bytes, and when I try to "require "luasql.sqlite3"", I get "can't
resolve symbol '_sqlite3_open'".

Obviously, I'm doing something wrong here.

Any tip much appreciated.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to