GLAD related error in RPi4 build (GstPlayer.cpp)

Hey all,

I’m trying to build Cinder on an RPi 400 following the guide in the docs and a few notes from some posts here on the forums. Seems to do alright until it hits GstPlayer.cpp wherein it throws this error:

error: ‘void glad_glClearColor(GLclampf, GLclampf, GLclampf, GLclampf)’ redeclared as different kind of entity

I’ve found a few notes online about making sure the include order for the gl related headers is correct, which it looks like they are after a quick glance at the indicated source files. I also tried defining GLFW_INCLUDE_NONE per the glfw docs, but still got the error.

This is a pretty fresh image I’m working with (about a week old), so I did try rpi-update, I also went looking for a spot to change the GL driver in raspi-config, per some other suggestions, but apparently that’s not there anymore.

My workaround for now is just to disable video, since I don’t think I’ll need it for my work here anyway, but I’m imagining this could rear its head in other ways.

Hi Seth - thanks for flagging this.

I believe it’s addressed by this PR: Raspberry Pi updates by andrewfb · Pull Request #2398 · cinder/Cinder · GitHub

Would leave to hear if that’s true for you too.

1 Like

Awesome! I did a bunch of googling and it seemed like a pretty specific bug so I didn’t want to log an issue with it as I figured it had something to do with my setup, but I’ll test this PR this week, thanks!