Skip to content

Commit 3fe0662

Browse files
committed
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.: gohai/processing-glvideo#3
1 parent 3771746 commit 3fe0662

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/processing/opengl/PSurfaceJOGL.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ public void initOffscreen(PApplet sketch) {
133133
public void initFrame(PApplet sketch) {
134134
this.sketch = sketch;
135135
initIcons();
136+
137+
// https://jogamp.org/bugzilla/show_bug.cgi?id=1290
138+
File mesaLib = new File("/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2");
139+
if (mesaLib.exists()) {
140+
System.out.println("\nIf you are receiving an error regarding the undefined symbol bcm_host_init, " +
141+
"make sure you have the package libgles2-mesa deinstalled. This can be done " +
142+
"by executing \"sudo aptitude remove libgles2-mesa\" in the terminal, and is " +
143+
"a known issue with the Raspbian distribution.\n");
144+
}
145+
136146
initDisplay();
137147
initGL();
138148
initWindow();

0 commit comments

Comments
 (0)