ok so yes... I got this to build, and run(I had to cast win to a NativeWindowType but otherwise it was as you provided it.) ... but here's the thing... only with Mesa Libs in place.... and glxinfo already informed me that as soon as I installed mesa libs I lost acceleration
I also got this
libEGL warning: DRI2: failed to authenticate
Even running locally, via ssh, or on target terminal... same result, btw frame rate is 25ish FPS...for one quad!!!
I note in the other thread, that as soon as do apt-get install libgles2-mesa-dev
glxinfo reports that I lose my acceleration and revert to emulation modes.
So indeed I can get any project to run, with mesa libs installed, but not accelerated.
Very old computer game programmer, now teaching very young computer game programmers, some very bad habits.
Wrote some book about coding Pi's and SBC's, it's out now...go get it!