Questions tagged [sdl]

Simple DirectMedia Layer (SDL); a crossplatform library that provides a simple interface to graphics, sound and input devices.

Filter by
Sorted by
Tagged with
0 votes
0 answers
575 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 ...
antondroid's user avatar
1 vote
1 answer
73 views

cannot import sdl2.sdlgfx: ImportError: found ['libSDL2_gfx-1.0.so.0'], but it's not usable for the library SDL2_gfx

I've succeeded to import sdl2.sdlgfx with the latest upstream release. When I going to import sdl2.sdlgfx, it fails. If you succeed to import, please comment how to do this. I tried like below. $ ...
mkiuchi's user avatar
  • 11
4 votes
0 answers
912 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 ...
Kiko's user avatar
  • 41
0 votes
1 answer
832 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=/...
Mahmud Araf's user avatar
1 vote
0 answers
744 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 ...
spaL's user avatar
  • 159
1 vote
0 answers
200 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 ...
Raphael's user avatar
  • 169
0 votes
0 answers
79 views

Can't install libsdl2-dev without downgrading SDL2 [duplicate]

I am trying to install the SDL2 development headers to compile a program that imports SDL2. Here is the output when I run the command $sudo apt-get install libsdl2-dev: Reading package lists... Done ...
firstname gklsodascb's user avatar
0 votes
0 answers
670 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 ...
Matthew's user avatar
  • 515
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 ...
Blue Ice's user avatar
0 votes
0 answers
179 views

why it is impossible to install libsdl2-dev on ubuntu 20.04? Or is there some way to fix that problem? [duplicate]

[I have absolutely no idea how focal-updates got removed, but following the dup question directions, I just added this line deb http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted ...
Aquarius Power's user avatar
-1 votes
1 answer
616 views

Dependency errors while installing SDL2

I want use SDL2 in my project. For that I need lib and include SDL2 files. I was trying to install SDL2 with apt-get install libsdl2-dev but get an errors: The following packages have unmet ...
mejay48's user avatar
0 votes
0 answers
256 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. ...
Shambhav's user avatar
  • 111
1 vote
0 answers
171 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 ...
Totemi1324's user avatar
1 vote
1 answer
958 views

How to build SDL2 from source and making a debian package and install the debian package?

I want to build SDL2 from source so I can use a newer version, that prefers dlopen instead of linking to libraries like the package that comes from ubuntu package manager, but also because I want to ...
eri0o's user avatar
  • 756
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 ...
Onofrei Tudor's user avatar
1 vote
1 answer
1k views

Cannot locate libsdl2-2.o.so file

I'm following an SDL C++ tutorial and they advised me to copy that file (libsdl2-2.o.so) into my project file to remove any errors occurring if the code was on a different computer. I have installed ...
Netsu's user avatar
  • 11
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 ...
isocppforbids's user avatar
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", ...
Borislav L's user avatar
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 -...
M. Keith's user avatar
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 ...
Diogo Fernandes's user avatar
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 ...
bhagya731's user avatar
0 votes
1 answer
2k views

Installing SDL game in Ubuntu

I'm trying to install 2Pong on Ubuntu for doing an experiment but I cannot figure out how to get it running. I installed all the requirements and followed the instructions in the README file but after ...
Max's user avatar
  • 3
1 vote
2 answers
2k views

QEMU warning SDL 1.2 is deprecated

Starting QEMU in a terminal with qemu-system-x86_64 -enable-kvm -m 6G -smp cores=3 -cpu host -drive file=... produces the following warning: Running QEMU with SDL 1.2 is deprecated, and will ...
mgw's user avatar
  • 134
1 vote
1 answer
9k views

How do I use graphics.h with libgraph in Ubuntu 18.04?

How do I use graphics.h in Ubuntu 18.04? I am getting the following error message when trying to follow the instructions in this answer to compile and install libgraph in order to use graphics.h on ...
nilopy's user avatar
  • 11
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 ...
Tony Park's user avatar
  • 101
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 ...
user726874's user avatar
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-...
Rahul Singh's user avatar
3 votes
0 answers
890 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 ...
brucei's user avatar
  • 31
1 vote
1 answer
1k views

Wrong PS4 controller button mapping

My PS4 controller mapping strangely changed a week ago (ex : R2 trigger is now Start button). I tried to change the mapping manually with jstest it work for one game : Hollow Knight. But this method ...
Sam's user avatar
  • 33
2 votes
1 answer
670 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 ...
Max's user avatar
  • 81
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" )...
val - disappointed in SE's user avatar
0 votes
1 answer
887 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 ...
Dave's user avatar
  • 131
1 vote
1 answer
518 views

Broken packages on 16.10 yakkety trying to install libsdl2-dev

When trying to install libsdl2-dev I'm getting this: The following packages have unmet dependencies. libsdl2-dev : Depends: libegl1-mesa-dev but it is not going to be installed ...
admg's user avatar
  • 13
1 vote
1 answer
5k views

How do I install an old version of SDL (1.2) for development?

I'm working on a project for which I will have to use SDL. I installed it as described here, but when I tried to cmake the project I needed it for, I ran into problems. I found out that cmake does not ...
LMS's user avatar
  • 23
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 ...
kneelb4darth's user avatar
2 votes
1 answer
982 views

gcc error libSDL missing while using "make"

I'm trying to compile a program. I first found out I needed the SDL1.2-devel package so I installed them all (manually, probably didn't do it right). Before I installed SDL-dev packages, I couldn't ...
mauroc8's user avatar
  • 133
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 (...
Emil Borconi's user avatar
9 votes
2 answers
19k views

Missing SDL_ttf.h

I am trying to install Marathon on my laptop. Been following along with the instructions at: https://github.com/Aleph-One-Marathon/alephone/wiki/Linux%20Install%20Instructions#ubuntu. I installed the ...
Grant Moore's user avatar
2 votes
1 answer
384 views

Develop a Snap package for project using SDL2

I am currently developing an application that uses joystick input and generates different wave sounds using SDL. While the implementation works without any issues, once I package my application using ...
Alex Spataru's user avatar
11 votes
4 answers
108k views

How to install all SDL libraries in Ubuntu 14.04?

dpkg -l | grep sdl This command gives me the following detail: ii libsdl1.2debian:i386 1.2.15-8ubuntu1.1 i386 Simple ...
dlpsankhla's user avatar
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:~$ ...
foxite's user avatar
  • 451
3 votes
1 answer
952 views

Ubuntu 14.04.3 libsdl2-2.0-0:i386 wants to downgrade xorg

Ubuntu 14.04.4 LTS kernel 3.19, xorg 1.17 (vivid HWE stack) sudo apt-get install libsdl2-2.0-0:i386 gives the following output. This can't be right! I need this for pcsx2 1.4.0 Reading package ...
philsegeler's user avatar
2 votes
2 answers
10k views

error in downloading graphics.h

I am trying to download graphics.h header file but after 1.sudo apt-get install build-essential, there is no upgrade in my pc 2.download of libgraph-1.0.2.tar.gz file. 3../configure it not working ...
ajit gawali's user avatar
6 votes
1 answer
28k views

Ubuntu 15.10 Installing SDL2

I have ubuntu 15.10 running as a virtual machine I would like to install and use SDL2, I followed this process What is the general procedure to install development libraries in Ubuntu? as well as the ...
Ueffes's user avatar
  • 63
3 votes
1 answer
798 views

How to compile code without having the needed library 'installed' in your system?

In one of my projects in working with the SDL 2.0 libraries. My computer went kaput last night and at my uni my profile doesn't have sudo powers. Is there a way to compile and run my code without ...
Ferndinand Ursa's user avatar
1 vote
2 answers
351 views

It's possible to develop ubuntu touch app in C++ without using QML?

I am looking for way to develop ubuntu touch app using only C/C++. I want to know what are other options, maybe GTK+ can be used ? or QT Widget ? without sacrificing display touch capabilities ? And ...
QIZI94's user avatar
  • 23
1 vote
1 answer
85 views

Help following instructions (stuck at editing a file)

I'm following these instructions. This is what I've done so far: Installed JDK Downloaded NDK & SDK, extracted them and MOVED them to usr/src Configured my $PATH Ran android and now I'm ...
Alex Wolf's user avatar
12 votes
1 answer
62k views

fatal error: SDL/SDL.h: No such file or directory [closed]

I am trying to practice lesson_1 at https://tutorialsplay.com/opengl/2014/04/23/textured-cube/ When I run the code named cube.c I got cube.c:16:21: fatal error: SDL/SDL.h: No such file or directory ...
Evan S's user avatar
  • 377
1 vote
2 answers
4k views

Compile error /usr/bin/ld: cannot find -lSDL collect2

When I do $ gcc cube.c -lglut -lGL -lGLU -lSDL /usr/bin/ld: cannot find -lSDL collect2: error: ld returned 1 exit status When I do $ sudo apt-get install libsdl* Reading package lists... ...
Evan S's user avatar
  • 377
5 votes
1 answer
17k views

Issues finding the location of package: libsdl2-image-2.0-0

Recently I've been playing around with the SDL library and wanted to start using libsdl2-image-2.0-0 along with SDL. I have been trying to get this working with Ubuntu 15.04. I have installed the ...
A_Sandwich's user avatar