We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have just completed a Processing sketch that I would like to share online for users of Windows, Linux, and Mac. The Windows and Linux builds were a piece of cake, but the Mac export does not work on Windows because of the nature of the operating system. Even though I cannot export my sketch for Mac using the traditional methods that Processing offers, could I perhaps do it some other way? I have the libraries that are specific to Mac accessible to me. Now all I need to do is combine them in such a way that the sketch will run. Does anyone have any suggestions for how to go about doing something like this?
Answers
I assume that you are using a contributed library - if so which one(s)?
If you are using OS specific binaries then the following code will detect which OS the sketch is running on
then you could use
System.loadLibrary("library name");
to load the correct library.
BTW their maybe a Processing method to report the OS but I couldn't find it.
You could use SvgExe to package up the natives you need. It's available right from the Processing IDE, in the "tools" menu.
(Disclaimer: I am the creator of SvgExe.)