Skip to content

Instantly share code, notes, and snippets.

@rmcat
Last active March 18, 2017 06:18
Show Gist options
  • Save rmcat/e141b808ecb85a2324d89590b3fef181 to your computer and use it in GitHub Desktop.
Save rmcat/e141b808ecb85a2324d89590b3fef181 to your computer and use it in GitHub Desktop.

Downloads

Files Description
Code::Blocks codeblocks-16.01mingw-setup.exe
SFML 2.4.2 GCC 4.9.2 TDM(SJLJ) - 32-bit
TGUI 0.7.3 MinGW 4.9.2 TDM (SJLJ) - 32-bit
Boost C++ boost_1_63_0.7z

Get source

git clone https://github.com/kroyee/SpeedBlocks C:/dev/SpeedBlocks

Extract libraries

Extract SFML, TGUI, Boost C++ libraries to some location like C:\dev\SFML-2.4.2, C:\dev\TGUI-0.7, C:\dev\boost_1_63_0.

Code::Blocks

  1. Install Code::Blocks. MinGW should be included if installed with the mingw-setup.exe file.
  2. Create a new empty project.
  3. Add files to the project.
  4. Set project build options.

Project build options

Apply folowing options for both Debug and Release configurations. (Click SpeedBlocks in the tree to apply to Debug and Release.)

Search directories / Compiler

  • C:\dev\SFML-2.4.2\include
  • C:\dev\TGUI-0.7\include
  • C:\dev\boost_1_63_0

Compiler settings / Compiler flags

  • -std=c++11

Linker settings / Link libraries

Linker settings should be set separately for Debug and Release configurations. (Click Debug or Release in the tree.) Don't add any files with -s (static libraries?) in the filename. Add link libraries from SFML (C:\dev\SFML-2.4.2\lib) and TGUI (C:\dev\TGUI-0.7\lib). For the debug configuration, add files with -d in the filename. For the release configuration, add files without -d in the filename.

Running SpeedBlocks

  1. Copy SFML DLLs (C:\dev\SFML-2.4.2\bin) and TGUI DLLs (C:\dev\TGUI-0.7\lib) into the output directory (depending on configuration, either C:\dev\SpeedBlocks\bin\Debug or C:\dev\SpeedBlocks\bin\Release).
  2. Run from IDE or .exe file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment