M17-Project / m17-tools

A set of M17 tools
GNU General Public License v3.0
29 stars 3 forks source link

m17-mod-gui failing to run on Raspberry Pi (GLXBadFBConfig) #20

Open vk2gpu opened 11 months ago

vk2gpu commented 11 months ago

Hello,

Just tried to build up and run on a Raspberry Pi, since this is what my rig is usually interfaced to. Looks like it doesn't support OpenGL ES. ImGui does have a backend for GLES, so it may just be a case of adding/enabling that, assuming it is the problem here :)

Output on console (--debug and --verbose don't provide any more info):

vk2gpu@vk2gpu:/media/myUSB/Dev/m17-tools$ m17-mod-gui Unable to open file for reading. No default cfg loaded. No encryption. Glfw Error 65543: GLX: Failed to create context: GLXBadFBConfig

73, Rae | VK2GPU

Paulo-D2000 commented 10 months ago

Hi Rae VK2GPU, thanks for the feedback! Interesting, ImGUI should switch to Opengl ES 2 if IMGUI_IMPL_OPENGL_ES2 is defined, the default is GL 3.0...

This could be some driver issue on the pi as it happened on fKMS Issue on DearPyGui

GLES2 check / include on Line 44

GLES2 check on Line 1635

73, Paulo Duarte | PU4THZ

vk2gpu commented 10 months ago

For what it's worth, SDRPlusPlus does appear to run on the same Pi, but I haven't had a look at any differences in the init sequence for clues.

Paulo-D2000 commented 10 months ago

I changed the glsl version to 120 on the latest commit... maybe this will fix it ?