How can i get .so file of sdl2?

i need .so file of sdl2, i don’t know how to get it
please help.

Hello @olegharput, welcome.

First of all, which Linux Distribution are you using? Often is available as a system package.

In debian like distributions you can call

sudo apt install libsdl2-dev

Anyhow, you can follow up Lazyfoo’s tutorial http://lazyfoo.net/tutorials/SDL/index.php, in first lesson heexplains how to get SDL working in your system.