File: scnotes.txt

package info (click to toggle)
db5.3 5.3.28%2Bdfsg1-0.5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 158,360 kB
  • sloc: ansic: 448,411; java: 111,824; tcl: 80,544; sh: 44,326; cs: 33,697; cpp: 21,604; perl: 14,557; xml: 10,799; makefile: 4,077; yacc: 1,003; awk: 965; sql: 801; erlang: 342; python: 216; php: 24; asm: 14
file content (24 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2007-08-29

Hi,

I've just compiled javasqlite-20070823 on MacOS X. The procedure is as follows:

1) ./configure --with-jdk=/System/Library/Frameworks/JavaVM.framework/Home
2) Edit Makefile and change:
   JNIINCLUDE = -I/System/Library/Frameworks/JavaVM.framework/Headers 
3) Add a target
   libsqlite_jni.jnilib: native/sqlite_jni.h native/sqlite_jni.c
   $(CC) -c $(CFLAGS) native/sqlite_jni.c -o native/sqlite_jni.o
   $(CC) -dynamiclib -o libsqlite_jni.jnilib native/sqlite_jni.o \
     -framework JavaVM -L/usr/local/lib -lsqlite3 

This is Mac OS specific: libtool which is used in the Makefile produces
a "common" dylib which is not so simple to load under java environment.
/usr/local/lib is path to libsqlite3.dylib in my configuration, other
paths are standard for this OS. 

Till now I've tested test, test3 and shell. All work.

Hope that helps and best regards,
Stanislaw Ciszewski