Raylib: [core] GLFW can not initialize requested OpenGL 3.3 context

Created on 10 Apr 2019  路  10Comments  路  Source: raysan5/raylib

Os: Lubuntu 18.10 32-bit

./light_my_ritual 
INFO: Initializing raylib 2.5-dev
WARNING: [GLFW3 Error] Code: 65543 Decription: GLX: Failed to create context: GLXBadFBConfig
WARNING: GLFW Failed to initialize Window
INFO: Audio device initialized successfully
INFO: Audio backend: miniaudio / PulseAudio
INFO: Audio format: 32-bit IEEE Floating Point -> 16-bit Signed Integer
INFO: Audio channels: 2 -> 2
INFO: Audio sample rate: 44100 -> 48000
INFO: Audio buffer size: 1440
INFO: [resources/lights_map.png] Image loaded successfully (128x72)
INFO: [resources/font_arcadian.png] Image loaded successfully (512x512)
Segmentation fault (core dumped)

All 10 comments

It seems OpenGL context can not be created... are you using an old device? Does your GPU support OpenGL 3.3? did you update GPU drivers?

I'ts an really old IBM x60s laptop, it don't support opengl 3.3.

glxinfo | grep "OpenGL version"
OpenGL version string: 2.1 Mesa 18.2.2

That's what I thought... then you should recompile raylib for OpenGL 1.1 or OpenGL 2.1, those options are available to run raylib on old devices.

How do that on Linux? Only found this link, that uses a Notepad++ script: https://github.com/raysan5/raylib/wiki/FAQ

@Yzubi you can do it with provided Makefile on raylib/src directory. From shell just execute:

raylib/src/> make PLATFORM=PLATFORM_DESKTOP GRAPHICS=GRAPHICS_API_OPENGL_21 -B

libraylib.a should be generated on the same directory, maybe you need to copy it on system libraries path... not sure if examples compilation Makefile looks for it directly on raylib/src, it's possible.

Thanks! It worked! :)

It dosent work for me i have opengl2.1 @raysan5
ihaved tryed i get this error
INFO: Initializing raylib 3.1-dev WARNING: GLFW: Error: 65543 Description: GLX: Failed to create context: GLXBadFBConfig WARNING: GLFW: Failed to initialize Window INFO: TIMER: Target time per frame: 16.667 milliseconds buildlinux.bash: line 2: 16202 Segmentation fault (core dumped)

@arydevy did you recompile raylib for OpenGL 2.1? Maybe your system does not support some OPenGL 2.1 features... You can also try recompiling for OpenGL 1.1.

@arydevy did you recompile raylib for OpenGL 2.1? Maybe your system does not support some OPenGL 2.1 features... You can also try recompiling for OpenGL 1.1.

i tryed your command @raysan5 an on other linux distro it worked perfctrly (manjaro) now i use linux
mint

i also tried 11 ant it dosent work
@raysan5

Was this page helpful?
0 / 5 - 0 ratings