I do the following to compile SDL version under Windows:
- Include to CodeBlocks/MinGW files from SDL-devel-1.2.15-VC.zip. Note: we don’t need Win32: SDL-devel-1.2.15-mingw32.tar.gz (Mingw32), it don’t contain librires.
- Include to CodeBlocks/MinGW files from SDL_ttf-devel-2.0.11-VC.zip.
- In CodeBlocks menu Project->Build Options->Linker Settings->Link Libriries->Add “mingw32” and path to SDL.lib, SDLmain.lib, SDL_ttf.lib from CodeBlocks/MinGW/lib/x86
- In CodeBlocks menu Project->Build Options->Compiler Settings->#defines add string “TILES”
Theoretically it all, but I had to do the following:
5) Add files to project directory: libfreetype-6.dll, zlib1.dll, SDL_ttf.dll, from \SDL_ttf-devel-2.0.11-VC.zip\SDL_ttf-2.0.11\lib\x86
6) Add attachments file to CodeBlocks/MinGW/include/iconv.h
7) When the error occurred “#include <alloca.h>” in SDL_… header file, change this string to “#include <malloc.h>”
I had to do so, I cannot guarantee that the path is correct. I hope I have not forgotten anything.
iconv.h (5.44 KB)