This is an old revision of the document!
The SDK contains two platform dependent components: the JNI library of libusbJava and the macro processor bmp. The package contains 32 bit Linux and Windows versions of this components. 64 bit Windows is fully downward compatible, i.e. users should not need to recompile anything. Users of 32 bit Linux usually only need to recompile the JNI library.
Users who ported any component are asked to send me the libraries / binaries in order that I can include them into the SDK and make them usable for other users.
The following description is for Unix-like operating systems.
libusbJava-src
in the SDKJAVAPREFIX
(around line 16) to the base directory of the JAVA JDK. ($JAVAPREFIX/include
should contain jni.h
)$(JAVAPREFIX)/include/linux
in LIBINCS
(around line 35) by the system specific directorymake
, this compiles the JNI librarymake install2
, this copies the library to ../libusbJava
make
tries to build two versions of the library, a statical linked one (libusbJavaSt) and a shared linked one (libusbJavaSh).
When libusbJava starts it first tries to load the shared version which uses the libusb of the system. If this fails the statical
version is tried which also runs on computers where no libusb is installed.
The macro processor bmp is written in Freespascal. A Freepascal installation is required in order to compile the bmp.
bmp
in the SDKmake
, this compiles the binarymake install2
, this copies the library to ../bin