How to Install SDL2?
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?
12 Replies
It may be in the X11 package repository
where's the X11 package repo?
Open termux and read what it says there
This? i already install it tho
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 grabGitHub
Release 2.30.9 · libsdl-org/SDL
This is a stable bugfix release, with the following changes:
Fixed audio issues on Android 15
Fixed rare audio distortion and crash when audio devices are changed on Windows
Fixed the PS5 controll...
@RandomGuy 🏓
there is a sdl2 package in termux x11-repo
apt install sdl2
It gives
SDL.h
... I fucking hate case sensitivitySolution
@RandomGuy close the issue
apt install sdl2
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đź—żđź’€