Love2D on linux, problems with SDL/OpenGL

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MarvinIT
Prole
Posts: 2
Joined: Mon Jun 06, 2016 7:23 am

Love2D on linux, problems with SDL/OpenGL

Post 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:
User avatar
Linkpy
Party member
Posts: 102
Joined: Fri Aug 29, 2014 6:05 pm
Location: France
Contact:

Re: Love2D on linux, problems with SDL/OpenGL

Post by Linkpy »

This error seems to come from SDL.

Your PC architecture (x86, x64, ...) ?
How did you install Love2D and SDL ?
Founder of NeoShadow Studio. Currently working on the project "Sirami".
github / linkpy
fedkanaut
Prole
Posts: 6
Joined: Fri May 27, 2016 4:44 pm

Re: Love2D on linux, problems with SDL/OpenGL

Post 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?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love2D on linux, problems with SDL/OpenGL

Post 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.
MarvinIT
Prole
Posts: 2
Joined: Mon Jun 06, 2016 7:23 am

Re: Love2D on linux, problems with SDL/OpenGL

Post 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
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love2D on linux, problems with SDL/OpenGL

Post by bartbes »

Sorry to hear about your graphics drivers woes, but at least you got love running. ;)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 3 guests