Forums
Moving over to Raspberry Pi 3B+ - Printable Version

+- Forums (http://www.scratchpadgames.net/forums)
+-- Forum: Main Forums (http://www.scratchpadgames.net/forums/forumdisplay.php?fid=1)
+--- Forum: Raspberry Pi questions (http://www.scratchpadgames.net/forums/forumdisplay.php?fid=4)
+--- Thread: Moving over to Raspberry Pi 3B+ (/showthread.php?tid=122)

Pages: 1 2


RE: Moving over to Raspberry Pi 3B+ - jomoengineer - 10-28-2018

Yeah, I'm seeing a Surface issue with the RasPi 3B+. The code worked with a B+ and older Raspbian, but with the latest and the 3b+ it no worky.

The HelloTriangle example from the book shows the following:
HelloTriangle: ../src/main.cpp:233: void init_ogl(Target_State*, int, int): Assertion `state->surface != ((EGLSurface)0)' failed.

The peepo openGL-RPi-tutorial produces this.

libEGL warning: DRI2: failed to authenticate
tutorial01_first_screen: /home/pi/development/opengles/openGL-RPi-tutorial/common/startScreen.cpp:107: void InitGraphics(): Assertion `GSurface != EGL_NO_SURFACE' failed.

Also, glxgears does not run smooth like on the Beaglebone even when using a monitor via HDMI.


RE: Moving over to Raspberry Pi 3B+ - Brian Beuken - 10-28-2018

did you set it to legacy, so its using OpenGLES2.0?


RE: Moving over to Raspberry Pi 3B+ - jomoengineer - 10-28-2018

Ah, I found setting GL (Full KMS) via raspi-config cleared some of the issue and glxgears looks much better.

I do get new MESA-LOADER errors though.

MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
HelloTriangle: ../src/main.cpp:233: void init_ogl(Target_State*, int, int): Assertion `state->surface != ((EGLSurface)0)' failed.


RE: Moving over to Raspberry Pi 3B+ - jomoengineer - 12-28-2018

I take it that compiling with c++14 eliminated these errors on your RasPi 3 B+ as referenced in the other post you made.
http://www.scratchpadgames.net/forums/showthread.php?tid=301&highlight=glm


RE: Moving over to Raspberry Pi 3B+ - Brian Beuken - 12-29-2018

yeah, same issue.
sorted with the C++14 fix, not something I am totally happy with but there's an open question on the GLM github about it so hopefully they will come up with a better solution.


RE: Moving over to Raspberry Pi 3B+ - Brian Beuken - 01-03-2019

To close this, the fix is to use C++14 not C++ 11, GLM seems to set up now for C++14 and it clashes. There is an open bug on the GLM github so hopefully they will fix it, but moving up to C++14 isn't too bad.