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
0answers
78 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
97 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
0answers
45 views

SDL window display on Xming

I'm running the ubuntu app for windows 10 and I am learning about SDL and OpenGl graphics. I have installed Xming onto my machine in order to have a display window appear. I'm having trouble opening a ...
0
votes
1answer
66 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
1answer
168 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 ...
0
votes
0answers
23 views

Anyone know how to get dual trackballs working Ubuntu 18.04 MAME v 0.208?

In Windows one can select "mouse 1 x axis" and assign to a game because it supports multi mouse. I have read early posts that Linux used SDL by default and this is not possible using same. I do see ...
1
vote
1answer
4k 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
817 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
31 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
54 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
263 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
539 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
298 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
943 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
529 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
403 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
552 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
283 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
536 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
454 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 (...
5
votes
2answers
6k 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
243 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 ...
6
votes
3answers
65k 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
3k 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
692 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
5k 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 ...
5
votes
1answer
20k 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
408 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
275 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
56 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 ...
7
votes
1answer
40k 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
2k 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
10k 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
271 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
173 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
90 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....
5
votes
1answer
9k 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
86 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
4k 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
456 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
4k 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 ...
0
votes
1answer
1k 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-...
1
vote
0answers
35 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 ...
10
votes
3answers
29k views

Could not initialize SDL : No available video device Don't move

I have downloaded an indie game Don't move from this link . When I try to run it on Ubuntu 12.04, it gives following error messages. Could not initialize SDL : No available video device AL lib: (EE) ...
2
votes
1answer
561 views

Where are the compiled SDL libraries?

I compiled the SDL 2 libraries as described here What is the general procedure to install development libraries in Ubuntu? What I would like to know, is where are these libraries actually located ...
12
votes
1answer
45k views

How can I leave tty?

So I got a problem here. So I installed SDL 2.0.1, everything worked fine, I installed dependencies of sdl as well, so I saw that it didn't worked, so I rebooted my pc, after that I get to gnome, and ...
0
votes
2answers
741 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
1answer
3k views

ubuntu: can't install sdl1.2-dev due to broken packages [duplicate]

I tried to install libsd1.2-dev, but got an error due to some dependencies that I do not know how to solve. sudo apt-get -f install libsdl1.2-dev Reading package lists... Done Building dependency ...