Here is what I did, to the best of my memory:
- Installed Code::Blocks 12.11.
- In the Code::Blocks settings, set it to use mingw32 which I had installed previously. For some reason I can't find my mingw32 version, but my msys version is 1.0.
- Downloaded the Code::Blocks package from the wiki (
http://ufoai.org/wiki/Code::Blocks)
- Opened the ufo.cbp project.
- In Settings -> Compiler -> Search Directories, added MinGW\include, codeblocks\MinGW\include (from the wiki package) for the compiler and MinGW\lib, codeblocks\MinGW\lib for the linker.
- In the linker settings, added -static-libgcc -static-libstdc++
- Copied the dlls from the Code::Blocks package into MinGW\bin.
When I was trying to use SDL 2, I also did the following:
- Added the paths for the SDL 2 headers to Compiler -> Search Directories for the compiler, and for the .a files to the linker.
- Added -lSDL2main -lSDL2 -lSDL2_mixer -lSDL2_ttf to the linker settings.
- Copied the SDL 2 dlls to MinGW\bin.