Hello Cross-compiling SQLite3, and then including it to LuaSQL seems to have created sqlite3.so successfully, but after copying sqlite3.so in the directory where the Lua interpreter is located and trying to load it I get the following error:
appliance:/var/tmp> ls -al -rwxr-xr-x 1 root root 186942 Jan 23 16:33 lua -rw-r--r-- 1 root root 487848 Jan 24 15:24 sqlite3.so appliance:/var/tmp> ./lua -lsqlite3 ./lua: error loading module 'sqlite3' from file 'sqlite3.so': File not found There was no error during the compiling/linking. Should sqlite3.so be located in a specific directory, or does it require other files to work? Here's the config/makefiles I used to compile SQLite3 and then LuaSQL: =================== workstation# cat /var/tmp/sqlite-amalgamation-3070400/Makefile export PATH:=$(PATH):/usr/src/baps/opt/uClinux/bfin-linux-uclibc/bin TARGET_CROSS=bfin-linux-uclibc- export CC=$(TARGET_CROSS)gcc export STRIP=$(TARGET_CROSS)strip export AR=$(TARGET_CROSS)ar rcu export RANLIB=$(TARGET_CROSS)ranlib export CFLAGS=-O2 -Wall libsqlite3.o: $(CC) $(CFLAGS) -DSQLITE_THREADSAFE=0 -o $@ -c sqlite3.c =================== workstation# cat /var/tmp/luasql-2.1.1/config T=sqlite3 LUA_INC= /var/tmp/lua-5.1.4/src DRIVER_LIBS= /var/tmp/sqlite-amalgamation-3070400/libsqlite3.o DRIVER_INCS= -I/var/tmp/sqlite-amalgamation-3070400 WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic INCS= -I$(LUA_INC) CFLAGS= -O2 $(WARN) -I$(COMPAT_DIR) $(DRIVER_INCS) $(INCS) $(DEFS) CC= gcc CC=/usr/src/baps/opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc =================== Any help appreciated, thank you. _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/