#How to Install SDL2?

15 messages · Page 1 of 1 (latest)

unborn horizon
#

So, I'm really interested in C++, but, the thing is, C++ itself doesn't have built-in tool/utility/library for 2D Graphics, which is kinda disappointing compared to Java, which has its own Library for 2D graphics such as Java Swing.

But, C++ has a library called SDL2, Simple DirectMedia Layer, but, the library itself doesn't available in Termux Packages, so, how do i install it?

edgy wrenBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

lavish gyro
unborn horizon
#

where's the X11 package repo?

lavish gyro
unborn horizon
#

This? i already install it tho

lavish gyro
#

Huh, I couldn't find sdl.h from Termux, x11 repo nor tur repo.

You can grab the source code from their git with git clone https://github.com/libsdl-org/SDL.git and hope that you don't need to patch their build processes or you can see if they give releases which you can grab

#

@unborn horizon 🏓

modern isle
#

there is a sdl2 package in termux x11-repo

#

apt install sdl2

lavish gyro
#

It gives SDL.h... I fucking hate case sensitivity

tall basin
#

@unborn horizon close the issue

apt install sdl2

unborn horizon
#

let me try it first k

#

yep, it was there

also, I don't know but, i didn't realize i already install the package, i purely don't know🗿💀