How do I setup SDL in Linux?

preview_player
Показать описание
Help setting up SDL in LinuxMint/Ubuntu you can cut and paste the console code below tested with Linux Mint 20 as shown. If you are just getting into programming following lazy foos guides or trying to compile you're code in linux for the first time this might help you .

(Install Code::Blocks)
sudo apt-get install codeblocks

(Install C++ and SDL core)
sudo apt-get install build-essential libsdl2-dev

(Install any extra libs you want)
sudo apt-get install libsdl2-image-dev libsdl2-gfx-dev libsdl2-ttf-dev libsdl2-mixer-dev
Рекомендации по теме
Комментарии
Автор

when i try i get


Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libegl-mesa0 : Depends: libgbm1 (= 22.0.1-1ubuntu2) but 22.0.5-0ubuntu0.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

goge
Автор

"Other link options" space is blank for me, what should I do?

golfinhoanonimo