JeZxLee
#1
Hi,
We want to use Code::Blocks C++ IDE on our Linux to build our SDL2 game.
Does anyone know how to setup:
- SDL2
- SDL2_Image
- SDL2_Mixer
- SDL2_TTF
in Linux Code::Blocks C++ IDE?
The above libraries are installed on our Linux and the game builds fine with a makefile.
Let us know, thanks in advance!
Jesse
JeZxLee
#2
Still stuck on the above…
Please look at screenshot below:
JeZxLee
#3
Ok, adding:
/usr/include/SDL2/
to Search Directories/Compiler allows the SDL2 app to compile,
but it still won’t link?
What do we put in Search Directories/Linker ?
Let us know, thanks!
Jesse
JeZxLee
#4
Ok, we got it working:
Add to Project built options/Linker settings/Other linker options:
-lSDL2_image
-lSDL2_mixer
-lSDL2_ttf
-lSDL2
then to Search directories/Compiler:
/usr/include/SDL2/
Thanks!
Jesse