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
1
vote
0answers
28 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
1answer
104 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 ...
0
votes
0answers
24 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
0answers
240 views

How to install sdl2 to ubuntu20?

From my previous question, where I installed the sdl2 from source (manually), because I was unable to install it via dpkg: https://stackoverflow.com/questions/64727695/error-while-loading-shared-...
1
vote
1answer
53 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 ...
0
votes
0answers
104 views

Can't init SDL unless running as root?

I finally replaced my nine-year-old Linux computer and am trying to get the new one set up. I installed both Tile World, which I compiled from source, and Dosbox which I installed through apt-get. ...
2
votes
0answers
39 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 ...
0
votes
1answer
195 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
1answer
254 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
0answers
1k 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 ...
1
vote
0answers
1k 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 ...
0
votes
1answer
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 ...
1
vote
2answers
886 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 ...
1
vote
1answer
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 ...
0
votes
0answers
1k 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
0answers
50 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
0answers
71 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-...
3
votes
0answers
412 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 ...
1
vote
1answer
896 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 ...
2
votes
1answer
509 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
0answers
1k 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" )...
0
votes
1answer
728 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 ...
1
vote
1answer
480 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
312 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 ...
1
vote
1answer
766 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 ...
1
vote
0answers
854 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 (...
9
votes
2answers
11k 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 ...
2
votes
1answer
314 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 ...
9
votes
3answers
92k 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 ...
1
vote
0answers
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:~$ ...
3
votes
1answer
803 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 ...
1
vote
2answers
8k 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 ...
6
votes
1answer
26k 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 ...
3
votes
1answer
570 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 ...
1
vote
2answers
282 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 ...
1
vote
1answer
70 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 ...
9
votes
1answer
52k 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 ...
1
vote
2answers
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... ...
4
votes
1answer
14k 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 ...
2
votes
0answers
332 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//...
3
votes
1answer
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
0answers
262 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 ...
0
votes
1answer
92 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: ...
4
votes
1answer
2k 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....
7
votes
2answers
13k 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 ??
1
vote
0answers
99 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
2answers
5k views

I can I install a 32 bit version of libsdl1.2debian on a 64 bit machine?

I'm trying to install a 32 bit version of libsdl1.2debian as a program I'm trying to run, Powder Toy, returns this when launched: /home/kyle/golly/powder-89.2-lin32/powder: error while loading shared ...
1
vote
1answer
617 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
votes
2answers
8k 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 ...