Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / lang / sql / jdbc / doc / scnotes.txt
1 2007-08-29
2
3 Hi,
4
5 I've just compiled javasqlite-20070823 on MacOS X. The procedure is as follows:
6
7 1) ./configure --with-jdk=/System/Library/Frameworks/JavaVM.framework/Home
8 2) Edit Makefile and change:
9    JNIINCLUDE = -I/System/Library/Frameworks/JavaVM.framework/Headers 
10 3) Add a target
11    libsqlite_jni.jnilib: native/sqlite_jni.h native/sqlite_jni.c
12    $(CC) -c $(CFLAGS) native/sqlite_jni.c -o native/sqlite_jni.o
13    $(CC) -dynamiclib -o libsqlite_jni.jnilib native/sqlite_jni.o \
14      -framework JavaVM -L/usr/local/lib -lsqlite3 
15
16 This is Mac OS specific: libtool which is used in the Makefile produces
17 a "common" dylib which is not so simple to load under java environment.
18 /usr/local/lib is path to libsqlite3.dylib in my configuration, other
19 paths are standard for this OS. 
20
21 Till now I've tested test, test3 and shell. All work.
22
23 Hope that helps and best regards,
24 Stanislaw Ciszewski