According to
issue #1361 and
pull #1731 on github, there is now a command line utility to run processing in Android mode. Apparently this new utility has been merged into the latest version of Processing, but I can't figure out where in 2.0.1 it may be lurking. I've found the source code for the bash script
here. However, when I run it in terminal, I get the following error:
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- f
usage: readlink [-n] [file ...]
readlink: illegal option -- e
usage: readlink [-n] [file ...]
Error: Could not find or load main class processing.mode.android.Commander
I can't find any documentation of the new command. Does anyone have any ideas how to use it?
In P2D mode, everything runs fine. In P3D mode, the applet window is mostly blank, and the graphics area seems to be compressed into the lower left corner of the window. I noticed in Console.app that I am seeing "kernel: IOSurface: buffer allocation size is zero" errors that occur when the sketch is run. Just wondering if anyone has any ideas about this. I'm running OSX 10.7.4 on a 2011 MacMini with an AMD Radeon HD 6630M.
On some sketches, this doesn't happen, on others, it happens sometimes (close and run will fix it) and on others it happens consistently.