Questions tagged [sdl]
Simple DirectMedia Layer (SDL); a crossplatform library that provides a simple interface to graphics, sound and input devices.
37
questions with no upvoted or accepted answers
4
votes
0
answers
957
views
Unable to start QEMU VM with SDL display due to Apparmor: cannot load AppArmor profile 'libvirt-32963ecb-fd2f-454c-93a6-c818af618ba4'
I am trying to run my virtual machines in virt-manager using SDL as my display, rather than a spice server.
The VMs boot flawlessly with spice but when I switch its display to SDL I get the following ...
3
votes
0
answers
894
views
SDL cannot find video device within an Xvfb
I want to run a program that is dependent on SDL 1.2 as a graphics backend within an X virtual frame buffer. I'm using the xvfb-run command like so:
xvfb-run --auto-servernum --server-num=1 -s 'fbdir ...
3
votes
1
answer
1k
views
apt-get install is removing a LOT of packages when installing libsdl2-dev, 14.04.2 with HWE
I have a 14.04.2 x86_64 system with HWE installed.
I am wanting to install the package libsdl2-dev.
Initially I got the following error:
$:~/programming/SMD/dgen/dgen-sdl-1.33$ sudo apt-get ...
2
votes
0
answers
80
views
How to include in my snap package two fonts for sdl2-based program
I'm trying to make a snap package to my sdl2-based program,the program works perfectly and it uses two fonts: cruft.ttf and GraffitiPaintBrush.tff. My problem is that I don't know how to pack/include ...
2
votes
1
answer
678
views
Keyboard problem, related to SDL
I'm having a problem with my keyboard and SDL (and some other things too).
Basically, whenever I press a key in say the pong clone I made (or anything using SDL really), that key is either ...
2
votes
0
answers
2k
views
SDL not found by CMake
I am building cmake app that uses SDL. But this code says that SDL not found:
find_package(SDL)
find_package(SDL_mixer)
find_package(SDL_image)
find_package(SDL_ttf)
...
if( SDL_FOUND STREQUAL "YES" )...
2
votes
0
answers
388
views
Error in statically linking libSDL
I am trying to statically link libsdl on a test I wrote.
What I did is:
g++ test.cpp -Wl,-Bstatic $(sdl-config --static-libs) -Wl,-Bdynamic
which gave me the error:
/usr/lib/x86_64-linux-gnu//...
2
votes
0
answers
381
views
How to invoke a X Session and a VM instead of login prompt
The system is Ubuntu 12.04 but the OEM requirement is to make it appear as if it is a Windows system to the end user. Other VMs and daemons will be active in the system but it is controlled from ...
1
vote
0
answers
767
views
Ubuntu 22.04.1 LTS SDL2 wl_proxy_marshal_flags error
I'm a beginner at using Linux, so I'm following a couple of forum threads I've read so far.
I'm trying to compile a C++ program using g++ version 11.3.1, where I have installed SDL2 using the command ...
1
vote
0
answers
201
views
Computer with Nvidia crashes after installing libsdl2-dev
I just bought an Acer Nitro 5 (an515-44-r5yz) laptop with a NVIDIA GTX 1650 card. I installed Ubuntu 22.04 on it, and the first thing I did was install Nvidia's recommended driver (520-open). After ...
1
vote
0
answers
177
views
How to run binary at Linux startup with sound?
I have a C++ program where I use the SDL2_Mixer module (which is based on Pulsesink, I think) to output audio. I want to run it on startup, but it does not want to work out very well. I set my default ...
1
vote
0
answers
2k
views
Processing triggers for libc-bin (2.28-0ubuntu1) ... /sbin/ldconfig.real: /usr/lib/libgraph.so.1 is not a symbolic link
Can someone help me with this problem i have been facing this problem since i have installed libgraph-1.0.2 in my Ubuntu 18.10. Actually i was trying to use graphics.h library in my program so while ...
1
vote
0
answers
1k
views
QEMU SDL_Init failed: No available video device
Total Linux NOOB looking for advice:
I'm trying to run a 64bit application on a 32bit PC using QEMU user mode. I have compiled qemu from source, all good, but when I want to start the application (...
1
vote
0
answers
6k
views
Can't install libSDL2-2.0-0:i386
I'm trying to run Star Conflict. It had troubles with libcurl, but I fixed that. Now, it wants the 32-bit version of libSDL2-2.0-0. No problem right? Well, this is what it says:
dirk@SUBNETDEFENSE:~$ ...
1
vote
0
answers
116
views
Video scaling using sdlvideosink
how can I do video scaling using playbin2 and sdlvideosink.
Actually videoscale is not a property of playbin2. So how can I do it.
Can you help me
1
vote
1
answer
784
views
SDL app code arm linaro cannot find -lSDL
I'm using gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux to cross compile the following SDL code. usingubuntu-14.04
#include "SDL/SDL.h"
int main( int argc, char* args[] ) {
//The images
...
1
vote
0
answers
43
views
X.Org and Xserver development headers issue
Trying to install SDL2, following the guide here.
I've tried this before, and it's destroyed my laptop several times already, because one of the packages (x.org-dev) replaces a lot of packages, and ...
1
vote
1
answer
376
views
Editor with Code Completion for SDL
Is there a code editor that offers code completion and shows the function prototype for SDL?
I ask for an automatic completion like in Notepad++, that shows functions list after like 3 characters ...
0
votes
0
answers
631
views
The sdl2-config script installed by SDL could not be found
I had tried to install archive.tar.gz file, on fresh installed linux OS and it give me this error message.
after i had apply
lm@debian:/$ sudo apt-get install libsdl2-dev
Reading package lists... Done
...
0
votes
1
answer
875
views
How to make a .desktop file work on Ubuntu 22.04 where the executable file has a dependency on a folder?
I tried to create a .desktop file for my 2D shooting game made with sdl2.
the .desktop file looks like this
[Desktop Entry]
Version=1.0
Name=The Hunt For Red October
Comment=2D shooting game
Exec=/...
0
votes
0
answers
706
views
Is Ubuntu's libsdl2-dev package missing dependencies or have I made a mistake?
I am trying to compile the transport simulation Simutrans-Extended. I have built it many times on Focal Fossa.
Today I tried to build it on Kubuntu Jammy Jellyfish. The build failed with the following ...
0
votes
0
answers
3k
views
Unable to install SDL2
I'm trying to install a piece of software that require SDL2 first but I'm having trouble installing SDL2 on Ubuntu. Most sites I've searched have said to do:
sudo apt-get install libsdl2-2.0
or
sudo ...
0
votes
0
answers
263
views
After compiling and installing SDL, something happened to OpenGL and Vulkan
I tried to compile and install SDL2 from https://wiki.libsdl.org/Installation. Then I tried to test a program, I got a program file missing error for libsdl2-2.0.so.0: Program file cannot be opened. ...
0
votes
0
answers
61
views
Shipping SDL2 C Project in Ubuntu
everyone! I have created a SDL2 project in Ubuntu using C and the terminal as compiler.
I want to ship the project in order to send it to my friends.
Does anybody know how to achieve that without ...
0
votes
2
answers
2k
views
SDL_mixer audio problem
When I try to initialize SDL_mixer sound
if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 2048) < 0)
{
printf("SDL_mixer could not initialize! SDL_mixer Error: %s\n", ...
0
votes
1
answer
2k
views
What and where is SDL2_image?
I am trying to compile QEMU. When issuing
../qemu/configure --disable-werror --enable-debug \ --target-list="arm-softmmu,i386-softmmu"
it outputs
-D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lX11
-...
0
votes
0
answers
3k
views
Undefined reference when using SDL_ttf
I am having issues with SDL_ttf, I am new in this type of library so the code below is from https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz -> showfont.c
/*
showfont: An ...
0
votes
0
answers
2k
views
Can't install libsdl2-dev:i386 on Ubuntu 17.04 64 bit alongside libsdl2-dev:amd64
Output when I try to install libsdl2-dev:i386
tony@tony-ubuntu:/$ sudo apt-get install libsdl2-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
0
votes
0
answers
76
views
find the game SDL ball to download
i have just been able to reinstall linux as duel boot and again my very favorite game sdlball has disappeared from the software list.
last time i reinstalled ubuntu someone here gave me usable steps ...
0
votes
0
answers
103
views
Trying to compile SDL1.2.14 but make fails
~/SDL-1.2.14/ $ make
/bin/bash config.status Makefile
config.status: creating Makefile
Warning, configure.in is out of date
#(cd . && sh autogen.sh && sh configure)
/bin/bash build-...
0
votes
1
answer
888
views
No OpenGL support in video driver
I am working on an SDL2.0 library on my Ubuntu 16.04 desktop inside VMware and came across an error today that I cannot fix. It took me a bit to find it. I ended up just going through the code and ...
0
votes
1
answer
340
views
Unable to install Cryengine 5 in ubuntu 16.04
I am trying to install cryengine 5 on ubuntu 16.04. I am using the source code and sdk provided on their github repo. This is the compilation command I am using :
./cry_waf.sh ...
0
votes
1
answer
2k
views
SDL libraries are missing
~/vidmodel/wvsn-model-omnetpp-v4/geometry/Triangle.o ~/vidmodel/wvsn-model-omnetpp-v4/geometry/Polygon.o ~/vidmodel/wvsn-model-omnetpp-v4/geometry/triangulation.o -Wl,--no-as-needed -Wl,--whole-...
0
votes
2
answers
1k
views
ld error while linking to SDL2
i'm struggling in the attept to compile c++ with SDL2.
I've done as always:
checkout the code (both from mercurial and libsdl.org)
./configure, make, sudo make install
But it keeps to say:
/usr/bin/...
0
votes
1
answer
2k
views
using SDL in eclipse
I have downloaded a c++ program. So I decided to run it but it says no such files or directories for SDL.h and SDL_ttf.h files. I installed the libsdl2 package from terminal as well as downloaded it ...
0
votes
1
answer
496
views
Compile fail. SDL problem
When I try to compile this program using make command, it fails. I think I have all the neccessary libraries for this. Here is the screen shot of the trerminal with the compile fail.
And here is a ...
-1
votes
4
answers
13k
views
Unable to locate package libsdl1.2-dev
I'm having issues trying to install sdl to run some applications. I used a string given by the FAQ of the app I was trying to run, but this is the result.
devlin@DiningRoomHP:~$ sudo apt-get install ...