Temporarily add warning to PSurfaceJOGL for Raspbian issue

Installing Processing on a recent Raspbian distribution won't work without changes, due to a change they made, which is incompatible with JOGL. Put in this warning until this gets fixed.

User hitting this is e.g.:
https://github.com/gohai/processing-glvideo/issues/3
This commit is contained in:
gohai
2016-05-27 11:04:31 +02:00
parent 629c8de141
commit da02a33e68
@@ -133,6 +133,16 @@ public class PSurfaceJOGL implements PSurface {
public void initFrame(PApplet sketch) {
this.sketch = sketch;
initIcons();
// https://jogamp.org/bugzilla/show_bug.cgi?id=1290
File mesaLib = new File("/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2");
if (mesaLib.exists()) {
System.out.println("\nIf you are receiving an error regarding the undefined symbol bcm_host_init, " +
"make sure you have the package libgles2-mesa deinstalled. This can be done " +
"by executing \"sudo aptitude remove libgles2-mesa\" in the terminal, and is " +
"a known issue with the Raspbian distribution.\n");
}
initDisplay();
initGL();
initWindow();