How to build Processing with android mode from source?

I am attempting to track down and resolve the error that prevents OPENGL from working properly on some android devices. What I have learned so far is that some OPENGL functions are not supported properly by all devices (which prefer OPENGL-ES). The offending function appears to be smooth(). In browsing the source I've found that noSmooth() and smooth(0) are now automatically replaced by smooth(2). This is evidently unnecessary and actual throws an error and crashes. While the ultimate solution is probably for android mode to use OPENGL-ES, I'm trying to hack my way around the problem (because JAVA2D looks and runs like garbage).

The road block that I'm running into is I simply can't figure out how to rebuild Processing from the source code including the now separated android mode. I have followed the instructions here: https://github.com/processing/processing/wiki/Build-Instructions

Nothing seems to take. Any help would be greatly appreciated.

~Zach

Answers

  • This is a super old topic but just for other folks: you only need to take the build AndroidMode.jar and drop it in $PROCESSING_HOME/modes/mode to update the Android mode.

Sign In or Register to comment.