Page 1 of 1

Love2D on linux, problems with SDL/OpenGL

Posted: Mon Jun 06, 2016 7:29 am
by MarvinIT
Hi everyone, I had to reinstall debian on my laptop because... well, I broke the previous installation :roll:

In the previous installation Love was working perfectly with no problem at all, but now after compiling and installing all the required packages, when I try to run a simple

Code: Select all

function love.draw(){
	love.graphics.print("Hello world!", 100, 100)
}
SDL print me this:

Code: Select all

Unable to create OpenGL window
This program requires a graphics card and video drivers which support OpenGL 2.1 or OpenGL ES 2.

SDL window creation error: SDL not configured with OpenGL/GLX support
I think it has to do with some settings I made for some overheating problem I had, but I have no clue about where to start to troubleshoot this, as I never worked directly with SDL and/or OpenGL.

Thanks for the answer! :awesome:

Re: Love2D on linux, problems with SDL/OpenGL

Posted: Mon Jun 06, 2016 12:52 pm
by Linkpy
This error seems to come from SDL.

Your PC architecture (x86, x64, ...) ?
How did you install Love2D and SDL ?

Re: Love2D on linux, problems with SDL/OpenGL

Posted: Mon Jun 06, 2016 3:26 pm
by fedkanaut
Is it possible that your old installation was using proprietary drivers for the graphics card and your new one is using open source ones?

Re: Love2D on linux, problems with SDL/OpenGL

Posted: Mon Jun 06, 2016 5:43 pm
by bartbes
It looks like either you have not installed your graphics drivers (and/or mesa), or you did not have them installed when you compiled SDL2. Sadly SDL likes to autodetect available features, so if you don't pay close attention to its output it might lack important features, in this case, OpenGL support.

Re: Love2D on linux, problems with SDL/OpenGL

Posted: Fri Jun 10, 2016 5:46 pm
by MarvinIT
A little update:

I tried to install catalyst official driver for the GPU and on reboot Linux stopped on TTY 1 telling me that cpu was in stall.

I've tried two times (I have reinstalled debian twice) and now I'm running archlinux where everything is working fine, but I'm not using the official AMD driver, I think I'm using the open source ones because I didn't install anything regarding my GPU

Re: Love2D on linux, problems with SDL/OpenGL

Posted: Fri Jun 10, 2016 5:48 pm
by bartbes
Sorry to hear about your graphics drivers woes, but at least you got love running. ;)