Hi Adriano
You'll probably need to set up your environment something as follows:
http://www.capefox.com/howto/GoodDevelopmentEnvironment.htm
This will modify your /usr/local/lib to read-write.
You should be able to test this all with the library and the
sqlite3shell application too.
Cheers
Jono
Adriano Pasquali wrote:
Hi everybody,
I'm tryed to insall the SQLITE by the instructions in
http://www.capefox.com/howto/SQLite3_for_FoxBoard.htm
<http://www.capefox.com/howto/SQLite3_for_FoxBoard.htm>.
The library is compiled but when i executing make foxlib the
/usr/local/lib is not find in the fox board. Moreover the /usr/local/
is the read only directory.
Another problem is this:
I compile a my project that use sqlite3, in debian SDK. When i put the
executable file in the fox directory mnt/flash/ and execute it by sh
./ command the file is not find.
What are the problemns in my program.
/*********************************/
library makefile
#----------------------------------------------------
# CapeFox Library Makefile v3.00
# www.capefox.com <http://www.capefox.com>
# Author: Jono Woodhouse
# http://www.capefox.com/howto/FoxBoardMakefiles.htm
<http://www.capefox.com/howto/FoxBoardMakefiles.htm>
#----------------------------------------------------
# ========================== Mandatory Header
AXIS_USABLE_LIBS = GLIBC UCLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
MAKE_INCLUDE = ../../make_include/makefile_include
# ==========================
# -------------- Setup: (PROGRAM & LIBRARY) Choose whether you are
building a Program (0) or a Library (1)
MAKE_LIBRARY= 1
# -------------- Setup: (PROGRAM only) program name
PROGS =
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Object & Header files to
be compiled (Space separated list)
OBJS = sqlite3.o
HEADERS = sqlite3.h
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Library Files (-lusb) -
Tip: to link to libusb use -lusb (note there's no "lib" bit) or
-lusb-0.1 (if you want a specific version) (Space separated list)
LDLIBS += -lpthread
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Optional Custom Compile
Options
CC +=
# --------------
include sqlite3_compile_options
# -------------- Setup: (LIBRARY only) soname (libxxx.so.1), real name
(libxxx.so.v.v.v), link name (for the linker to link from) (libxxx.so)
LIB_SN = libsqlite3.so.1
LIB_RN = libsqlite3.so.3.5.8
LIB_LN = libsqlite3.so
# --------------
# -------------- Setup: (LIBRARY only) Header files (libxxx.h) for
install process (Space separated list)
INSTALL_INCS = sqlite3.h
# --------------
# ========================== Mandatory Footer (don't change this section)
include $(MAKE_INCLUDE)
# ==========================
/*****************************************************/
program makefile
#----------------------------------------------------
# CapeFox Library Makefile v3.00
# www.capefox.com <http://www.capefox.com>
# Author: Jono Woodhouse
# http://www.capefox.com/howto/FoxBoardMakefiles.htm
<http://www.capefox.com/howto/FoxBoardMakefiles.htm>
#----------------------------------------------------
# ========================== Mandatory Header
AXIS_USABLE_LIBS = GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis
MAKE_INCLUDE = ../make_include/makefile_include
# ==========================
# -------------- Setup: (PROGRAM & LIBRARY) Choose whether you are
building a Program (0) or a Library (1)
MAKE_LIBRARY= 0
# -------------- Setup: (PROGRAM only) program name
PROGS = SQL_PROJECT
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Object & Header files to
be compiled (Space separated list)
OBJS = SQL_PROJECT.o
HEADERS =
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Library Files (-lusb) -
LDLIBS += -lsqlite3
# --------------
# -------------- Setup: (PROGRAM & LIBRARY) Optional Custom Compile
Options
CC +=
# --------------
# -------------- Setup: (LIBRARY only) soname (libxxx.so.1), real name
(libxxx.so.v.v.v), link name (for the linker to link from) (libxxx.so)
LIB_SN =
LIB_RN =
LIB_LN =
# --------------
# -------------- Setup: (LIBRARY only) Header files (libxxx.h) for
install process (Space separated list)
INSTALL_INCS =
# --------------
# ========================== Mandatory Footer (don't change this section)
include $(MAKE_INCLUDE)
# ==========================
thanks for all