This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:software:porting [2012/05/14 08:24] – [MacOS port] 84.181.62.239 | en:software:porting [2016/08/17 21:37] (current) – gelöscht stefan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Porting to other Platforms ====== | ||
- | |||
- | The SDK contains two platform dependent components: the JNI library of libusbJava and the [[en: | ||
- | 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. | ||
- | |||
- | ===== Compiling the JNI library ===== | ||
- | The following description is for Unix-like operating systems. | ||
- | |||
- | - Change to the directory '' | ||
- | - in '' | ||
- | - in '' | ||
- | - in '' | ||
- | - Run '' | ||
- | - Run '' | ||
- | |||
- | After 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. | ||
- | |||
- | |||
- | ===== bmp ===== | ||
- | The [[en: | ||
- | |||
- | - Change to the directory '' | ||
- | - in '' | ||
- | - Run '' | ||
- | - Run '' | ||
- | |||
- | NOTE that FreePascal recently (Jan 1st, 2012) released a major new version, 2.6.0. This includes extensive language changes, and breaks compatibility with the [[en: | ||
- | |||
- | A quick and dirty hack may be possible, but it's sensitive code (recursively parsing using a derived class). I'm not this conservative usually, but my (catfish) advice is simply to use an earlier version of FPC that supports passing derived classes to var- and out-parameters. It is confirmed that bmp will compile on FPC 1.0, 2.0 and 2.2 - these are no longer supported. I can further confirm that FPC 2.4.0 will successfully compile bmp (tested on 32-bit and | ||
- | 64-bit Mac OS X 10.6 Snow Leopard, on both genuine Apple hardware and Hackintosh rigs, and 64-bit Linux). | ||
- | |||
- | ===== MacOS port ===== | ||
- | |||
- | A MacOS port of the JNI library has been made available by a user. In order to run the jar packages generated with the SDK under MacOS the library file [[http:// | ||
- | |||
- | {{indexmenu_n> | ||