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 binaries (32 and 64 bit) for Linux and Windows.
In order to add support for other platform the two platform dependent components need to be rebuild.
The following description is for Unix-like operating systems.
libusbJava-src
in the SDKMakefile
: set JAVAPREFIX
(around line 16) to the base directory of the JAVA JDK. ($JAVAPREFIX/include
should contain jni.h
)Makefile
: replace $(JAVAPREFIX)/include/linux
in LIBINCS
(around line 35) by the system specific directoryMakefile
: Apply other system specific modifications if necessarymake
, this compiles the JNI librarymake install2
, this copies the library to ../libusbJavaAfter a new JNI library has been compiled and installed the jar archives need to be repacked. This can be done by removing the jar file and by running make in the same directory.
The macro processor bmp is written in Freespascal. A Freepascal installation is required in order to compile the bmp.
bmp
in the SDKMakefile
: Apply system specific modifications if necessarymake
, this compiles the binarymake install2
, this copies the library to ../bin