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
49 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 ...
user avatar
0 votes
0 answers
68 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 ...
user avatar
0 votes
0 answers
67 views

SDL2 can not initialize sound driver

|Distributor ID:|Ubuntu| |Description:|Ubuntu 21.04| |Release:|21.04| |Codename:|hirsute| I tried to initialize the sound driver but it didn't work. Here's the code: std::cout << ...
user avatar
-1 votes
1 answer
178 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 ...
user avatar
0 votes
0 answers
120 views

How to open .sdl file

I'd like to check the .sdl file. I find the sdl installation. But, the page doesn't says that sdl file can be opend. https://wiki.libsdl.org/Installation So could you tell me how to open .sdl file
user avatar
  • 1
0 votes
0 answers
154 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. ...
user avatar
1 vote
0 answers
63 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 ...
user avatar
1 vote
1 answer
415 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 ...
user avatar
  • 636
0 votes
0 answers
43 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 ...
user avatar
1 vote
1 answer
214 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 ...
user avatar
  • 11
2 votes
0 answers
49 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 ...
user avatar
0 votes
1 answer
617 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", ...
user avatar
0 votes
1 answer
695 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 -...
user avatar
0 votes
0 answers
2k 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 ...
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 ...
user avatar
  • 11
0 votes
1 answer
1k 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 ...
user avatar
  • 3
1 vote
2 answers
1k 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 ...
user avatar
  • 75
1 vote
1 answer
8k 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 ...
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 ...
user avatar
  • 101
0 votes
0 answers
59 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 ...
user avatar
0 votes
0 answers
84 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-...
user avatar
3 votes
0 answers
597 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 ...
user avatar
  • 31
1 vote
1 answer
967 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 ...
user avatar
  • 33
2 votes
1 answer
588 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 ...
user avatar
  • 71
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" )...
user avatar
0 votes
1 answer
796 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 ...
user avatar
  • 131
1 vote
1 answer
507 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 ...
user avatar
  • 13
1 vote
1 answer
2k 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 ...
user avatar
  • 23
0 votes
1 answer
323 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 ...
user avatar
2 votes
1 answer
843 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 ...
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 (...
user avatar
9 votes
2 answers
14k 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 ...
user avatar
2 votes
1 answer
357 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 ...
user avatar
11 votes
4 answers
100k 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 ...
user avatar
1 vote
0 answers
5k 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:~$ ...
user avatar
  • 361
3 votes
1 answer
881 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 ...
user avatar
2 votes
2 answers
9k 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 ...
user avatar
  • 151
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 ...
user avatar
  • 63
3 votes
1 answer
674 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 ...
user avatar
1 vote
2 answers
304 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 ...
user avatar
  • 23
1 vote
1 answer
77 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 ...
user avatar
10 votes
1 answer
56k 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 ...
user avatar
  • 337
1 vote
2 answers
3k 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... ...
user avatar
  • 337
5 votes
1 answer
15k 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 ...
user avatar
2 votes
0 answers
355 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//...
user avatar
  • 121
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 ...
user avatar
  • 41
2 votes
0 answers
308 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 ...
user avatar
0 votes
1 answer
93 views

Why am I getting this error message when searching for a library?

I'm trying to install a custom Mightex software and at some point I get the following error message: configure: error: Cannot find required SDL library. So after googling I found this page I typed: ...
user avatar
  • 695
4 votes
1 answer
3k views

Do I have to compile SDL2_mixer myself?

I want to get the package SDL_mixer to use in a game I am making, but from what I've seen there are only versions compatible with SDL 1.2. Did I overlook something or will I have to compile the SDL 2....
user avatar
7 votes
2 answers
16k views

How to see what SDL version I have on my ubuntu

I am want to know what SDL version I have installed on my ubuntu Is there a terminal commend I can run to find out ??
user avatar
  • 10.2k