Hi I run a headless Slackware 14.2 box and I wanted to develop a program in C using SDL 1.2. I don’t want to use X11. So I took a look at the available modules for video and ended up using svgalib. Now I understand that I need to be using one of the console ttys(tty1-6) to be able to see graphics instead of being logged in via ssh on a ptty. In any case I compiled sdl 1.2 with svga support. I also set the env var SDL_VIDEODRIVER to svgalib.
I’m just learning SDL and have some questions.
- Do any video modules in SDL 2 work in console or does it require X11?
- I created a basic program that called SDL_GetVideoInfo() and SDL_VideoDriverName() but both return NULL. I don’t get an error upon SDL_Init(). Feels like SDL isn’t able to initialize video yet I don’t get any errors. Perhaps svgalib module isn’t compatible with my OS, however it is listed in the output of lsmod.