Questions tagged [sdl]

SDL stands for Simple DirectMedia Layer. It is a cross-platform media library written in C, that allows users to simply access grapics, sound, and other input devices.

Filter by
Sorted by
Tagged with
0 votes
0 answers
280 views

SteamLink fails to fully start due to vague initialization error

I’ve been trying to get SteamLink working on my RPi 4 with Bullseye ‘Lite’/headless installed. I’m able to get steam to startup, download the necessary packages, and even load enough to finishing ...
Wisteso's user avatar
  • 295
1 vote
0 answers
676 views

Raspberry Pi v4, forced VSYNC?

I wrote an emulator and I have a piece of code that syncs audio/video using elapsed time and remaining bytes to play on audio buffer. This works very well. If I remove that piece of code emulator runs ...
Francesco's user avatar
  • 111
0 votes
1 answer
8k views

Could not get EGL Display - Starting RetroPie

I have manually installed RetroPie, using the terminal and some tutorials.. Finally ready to start everything up... and then get this error: Error Creating SDL window! Could not get EGL display ...
Maurice L's user avatar
0 votes
0 answers
81 views

Why can't a Raspi 4 load as big a SDL2 texture as a 3B+?

I've been developing a game in C using SDL2. It works fine on a Raspberry Pi 3B+. On a Raspberry Pi 4 with 4 GB of RAM, it fails to load one of the graphics because "textures are limited to 4096x4096" ...
David Bolton's user avatar
0 votes
0 answers
394 views

"Couldn't find matching render driver" error [LIBVLC][LIBSDL2][RPi3 B]

I am trying the simple libvlc demo with libsdl2 from LibVLC Sample Code SDL but I am having issues when running the compiled binary. I get a "Couldn't find matching render driver" error from ...
Paiku Han's user avatar
  • 101
2 votes
1 answer
479 views

Running SDL 1.2 based code on buster without X

Up to and including Raspbian Stretch, I could use a hacked SDL library called SDL12-kms-dispmanx by a developer called vanfanel to run SDL 1.2 code from the console without X. (See here: https://...
TeaRex's user avatar
  • 23
1 vote
0 answers
100 views

Why I can't get Ruby2D running on Raspberry Pi 3 model B?

I have made quite a lot of games in Ruby2D. I can play them on my PC, laptop. Ruby2D is a lot of fun and works very fast! But for some strange reason I can't get Ruby2D window working on a Raspberry ...
15 Volts's user avatar
  • 147
2 votes
2 answers
442 views

How can I invert the mouse Y axis in Minecraft Pi - followup

Apparently as someone just joining the community, I cannot ask for clarification on answers. There is no way to message a user, so I'm posting a new question relating to the following post. How can I ...
Stettin's user avatar
  • 131
1 vote
1 answer
183 views

Running SDL app via RealVNC with Direct Capture enabled does not accept Keyboard input

I am trying to run and SDL hardware-accelerated app, PICO,-8 over VNC, and thanks to this community I am making progress! One solution is to use RealVNC with the experimental DirectCapture feature ...
Jonathan's user avatar
  • 133
1 vote
1 answer
1k views

Which remote access method allows me to access an SDL-based application

I am trying to run an SDL-based application, PICO-8, on a headless Raspberry Pi 3. When I run it locally, everything works fine as it should. When I try to run it via either RealVNC or SSH X11 ...
Jonathan's user avatar
  • 133
0 votes
1 answer
1k views

Slow pixel drawing with SDL2 & experimental OpenGL driver

The code bellow just polling mouse events and draw lines between the previous and last mouse coordinates in case of left mouse button pressed down, nothing special and its using only fast integer ...
john_who_is_doe's user avatar
0 votes
2 answers
459 views

"avplay audio.wav" generates error: "Could not initialize SDL - Unable to open a console terminal"

When I try to play an audio file using avplay on a raspberry pi3 running raspbian jessie, I get the following error. pi@raspberrypi:~/sounds $ /usr/bin/avplay clip1.wav avplay version 11.9-6:11.9-1~...
Alex Ryan's user avatar
  • 185
1 vote
0 answers
169 views

Emulator launches behind SDL front-end

I'm trying to add RetroFE (using SDL2) to RetroPie as an alternative to EmulationStation. Unfortunately the emulators launch behind the front-end. I've tried hiding the window, minimizing it, etc., ...
Pieter Hulshoff's user avatar
0 votes
1 answer
278 views

Retropie SDL Key not recognized warning

I have a RPi 3B with Retropie 4.1 all updated to the latest binaries. I had installed minecraft from the RetroPie-Setup and since then I am getting SDL warnings logged into the console that read "The ...
AtomicFireball's user avatar
0 votes
1 answer
2k views

Rendering with SDL2

I migrated a small SDL2 project to my raspberry pi and the performance was just awful. On frames with less textures to render, it runs beyond 60fps. Otherwise, the CPU skyrockets to >90% and the ...
user59319's user avatar
0 votes
1 answer
69 views

Mobile Development On A Pi

I've been using a raspberry pi for two years for coding ( mostly in c++, using SDL2 ). Now feeling I have a sufficient grasp of this library, I would like to try out it's mobile utilities to get stuff ...
Yk Cheese's user avatar
1 vote
1 answer
2k views

Video presentation on RPi3 with SDL2

I had successfully followed the LazyFoo tutorials to basic shape/image rendering and am getting over 30 FPS on my RPi3. My next stage is to get video file rendering working. I had used the following ...
Tribmos's user avatar
  • 61
3 votes
1 answer
11k views

Has anyone managed to get SDL 2/3 working, without X, in Raspbian?

I have Raspbian Jessie running on my Pi2. I am currently booting into LXDE. I want to disable X and run my SDL code directly on the framebuffer. Can someone point me to where I can find more ...
sparkymat's user avatar
  • 131
2 votes
1 answer
1k views

How do I set the input focus to my SDL2 app?

I have a pretty simple program. I'm just trying to acknowledge keyboard/mouse events, but I'm getting no log output (inside my SDL_PollEvent loop). I'm running just basic Raspian (no X). #include <...
TheBuzzSaw's user avatar
4 votes
1 answer
3k views

SDL2 performance

Is it possible to use SDL2 with 2D hardware accelerated rendering on Raspberry Pi? If 2D hardware accelerated rendering is possible on the device, how do you check to see that your application is ...
Hop's user avatar
  • 71
1 vote
0 answers
105 views

Keyboard not working after running SDL2 based program [duplicate]

I'm now developing a mini game, using SDL. When I use SDL1.2, the keyboard input event signal is well-caught. However, if I use SDL2.0, the keyboard input event signal doesn't seem to be caught. ...
Rude-Student..'s user avatar
5 votes
2 answers
5k views

How to use OpenGL via SDL2?

I am looking for a "Hello World" type example that makes use of OpenGL-ES2 via SDL2. So far I could gather: SDL2 that ships with Raspbian does not support OpenGL-ES2 out of the box SDL-2.0.3 manually ...
Grumbel's user avatar
  • 191
3 votes
1 answer
1k views

Output SDL to TFT screen from console

I'm trying to make a SDL program (fastdosbox) output to an adafruit TFT screen. The screen is fb1. In the console I tried typing SDL_FBDEV=/dev/fb1 but it still outputs to the HDMI screen. If I startx ...
Synaps3's user avatar
  • 131
5 votes
1 answer
4k views

Why won't SDL 2.0 give me an OpenGL ES 2.0 window?

I have a small SDL 2.0 program (detailed below) that refuses to give me a window, complaining about not being able to initialize its OpenGL ES library. Program: #include "bcm_host.h" #include <...
fouric's user avatar
  • 1,789
1 vote
3 answers
4k views

SDL 1.2 for use with C++ on Raspbian?

Can I get the SDL libraries on Raspbian? I don't actually have a Raspberry Pi, but before I get one I want to know if I can. If I can then: Does it have all the features of SDL 1.2? How long does ...
user avatar
6 votes
1 answer
9k views

SDL: couldn't find matching glx visual

I have compiled my SDL game on the PI. I used apt to install the SDL 1.2 dev package. When I call SDL_SetVideoMode, it fails and this is the SDL error string. couldn't find matching glx visual What ...
ScrollerBlaster's user avatar
9 votes
1 answer
3k views

How can I run Stella (Atari emulator) on the Raspberry Pi?

I am trying to run Stella, the Atari emulator that is in the Debian repository. If I run it from X, it's very slow and I am not able to use OpenGL acceleration. Plus, the full screen doesn't fit the ...
Alessandro Cosentino's user avatar
24 votes
2 answers
2k views

Console unusable after running SDL app

When certain SDL-based programs (e.g. prboom, dosbox) are run from the console (not X) and terminate abruptly for some reason (e.g. killed or segfaults), the screen locks up; It just goes black, and ...
finnw's user avatar
  • 5,800